View Issue Details

IDProjectCategoryView StatusLast Update
0001054SOGoWeb Calendarpublic2018-03-13 20:01
Reporterpaubry Assigned Toludovic  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version1.3.4 
Summary0001054: Added a link in the main banner to an external URL for support
Description

The link is shown only when SOGoSupportURL is set, see patch attached.
Best,
PA

TagsNo tags attached.

Activities

2010-12-15 11:00

 

patch-1.3.4-SupportURL.txt (3,480 bytes)   
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.h	2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.h	2010-12-15 10:59:35.000000000 +0100
@@ -67,6 +69,9 @@
 - (NSString *) CASServiceURL;
 - (BOOL) CASLogoutEnabled;
 - (NSString *) CASProxyCallbackURL;
+
+- (NSString *) supportURL;
 
 - (BOOL) enablePublicAccess;
 
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m
--- SOGo-1.3.4-dist/SoObjects/SOGo/SOGoSystemDefaults.m	2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/SoObjects/SOGo/SOGoSystemDefaults.m	2010-12-15 11:00:09.000000000 +0100
@@ -311,6 +316,16 @@
   return [self boolForKey: @"SOGoCASLogoutEnabled"];
 }
 
+- (NSString *) supportURL
+{
+  return [self stringForKey: @"SOGoSupportURL"];
+}
+
 - (BOOL) enablePublicAccess
 {
   return [self boolForKey: @"SOGoEnablePublicAccess"];
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.h SOGo-1.3.4/UI/Common/UIxPageFrame.h
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.h	2010-11-17 17:30:03.000000000 +0100
@@ -62,6 +63,9 @@
 - (BOOL) hasPageSpecificCSS;
 - (BOOL) hasProductSpecificCSS;
 
+- (NSString *) supportURL;
+- (BOOL) hasSupportURL;
+
 - (void) setPopup: (BOOL) popup;
 - (BOOL) isPopup;
 
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m SOGo-1.3.4/UI/Common/UIxPageFrame.m
--- SOGo-1.3.4-dist/UI/Common/UIxPageFrame.m	2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Common/UIxPageFrame.m	2010-12-15 11:18:43.000000000 +0100
@@ -384,6 +397,24 @@
   return ([[self productCSSURL] length] > 0);
 }
 
+- (BOOL) hasSupportURL
+{
+  SOGoSystemDefaults *sd;
+  NSString *supportURL;
+
+  sd = [SOGoSystemDefaults sharedSystemDefaults];
+  supportURL = [sd supportURL];
+  return [supportURL length];
+}
+
+- (NSString *) supportURL
+{
+  SOGoSystemDefaults *sd;
+
+  sd = [SOGoSystemDefaults sharedSystemDefaults];
+  return [sd supportURL];
+}
+
 - (BOOL) _moduleIs: (NSString *) moduleName
 {
   NSString *frameworkName;
diff -Nbaur --exclude=config.make --exclude=configure --exclude='SOGoCASSession.*' --exclude='LDAPSource.*' --exclude='SOGoUserManager.*' --exclude='*.css' SOGo-1.3.4-dist/UI/Templates/UIxPageFrame.wox SOGo-1.3.4/UI/Templates/UIxPageFrame.wox
--- SOGo-1.3.4-dist/UI/Templates/UIxPageFrame.wox	2010-11-17 17:30:03.000000000 +0100
+++ SOGo-1.3.4/UI/Templates/UIxPageFrame.wox	2010-12-15 11:33:26.000000000 +0100
@@ -115,6 +115,11 @@
 		  href="#"><var:string
 		    label:value="Log Console (dev.)" /></a
 		  ></var:if>
+	      <var:if condition="hasSupportURL"
+		>| <a id="supportBannerLink"
+		  var:href="supportURL" target="_blank"><var:string
+		    label:value="Support" /></a
+		  ></var:if>
 	    </div>
 	  </var:if
 	    ><var:component className="UIxToolbar" var:toolbar="toolbar"
patch-1.3.4-SupportURL.txt (3,480 bytes)   
ludovic

ludovic

2018-03-13 20:01

administrator   ~0012684

No longer relevant - SOGo has "SOGoHelpURL".

Issue History

Date Modified Username Field Change
2010-12-15 11:00 paubry New Issue
2010-12-15 11:00 paubry File Added: patch-1.3.4-SupportURL.txt
2018-03-13 20:01 ludovic Note Added: 0012684
2018-03-13 20:01 ludovic Status new => closed
2018-03-13 20:01 ludovic Assigned To => ludovic
2018-03-13 20:01 ludovic Resolution open => fixed