[Svn] r5457 - in trunk/roundcubemail: config program/localization/de_CH program/localization/en_US program/localization/pl_PL program/steps/settings skins/default skins/default/templates

trac at roundcube.net trac at roundcube.net
Mon Nov 21 15:10:29 CET 2011


Author: thomasb
Date: 2011-11-21 08:10:29 -0600 (Mon, 21 Nov 2011)
New Revision: 5457

Modified:
   trunk/roundcubemail/config/main.inc.php.dist
   trunk/roundcubemail/program/localization/de_CH/labels.inc
   trunk/roundcubemail/program/localization/en_US/labels.inc
   trunk/roundcubemail/program/localization/pl_PL/labels.inc
   trunk/roundcubemail/program/steps/settings/about.inc
   trunk/roundcubemail/skins/default/settings.css
   trunk/roundcubemail/skins/default/templates/about.html
Log:
Show configurable support link in about page; refer on <srcuri> for download link; no link to roundcube.net to avoid tons of support requests

Modified: trunk/roundcubemail/config/main.inc.php.dist
===================================================================
--- trunk/roundcubemail/config/main.inc.php.dist	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/config/main.inc.php.dist	2011-11-21 14:10:29 UTC (rev 5457)
@@ -208,6 +208,10 @@
 // set to false if only registered users can use this service
 $rcmail_config['auto_create_user'] = true;
 
+// provide an URL where a user can get support for this Roundcube installation
+// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
+$rcmail_config['support_url'] = '';
+
 // replace Roundcube logo with this image
 // specify an URL relative to the document root of this Roundcube installation
 $rcmail_config['skin_logo'] = null;

Modified: trunk/roundcubemail/program/localization/de_CH/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/de_CH/labels.inc	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/program/localization/de_CH/labels.inc	2011-11-21 14:10:29 UTC (rev 5457)
@@ -285,6 +285,7 @@
 $labels['importtext'] = 'Sie können Kontakte aus einem bestehenden Adressbuch hochladen.<br/>Es können Adressbücher im <a href="http://de.wikipedia.org/wiki/VCard">vCard-Format</a> importiert werden.';
 $labels['done'] = 'Fertig';
 $labels['settingsfor'] = 'Einstellungen für';
+$labels['about'] = 'Über';
 $labels['preferences'] = 'Einstellungen';
 $labels['userpreferences'] = 'Benutzereinstellungen';
 $labels['editpreferences'] = 'Einstellungen bearbeiten';
@@ -394,6 +395,11 @@
 $labels['sortasc'] = 'aufsteigend sortieren';
 $labels['sortdesc'] = 'absteigend sortieren';
 $labels['undo'] = 'Rückgängig';
+$labels['plugin'] = 'Plugin';
+$labels['version'] = 'Version';
+$labels['source'] = 'Quellcode';
+$labels['license'] = 'Lizenz';
+$labels['support'] = 'Support';
 $labels['B'] = 'B';
 $labels['KB'] = 'KB';
 $labels['MB'] = 'MB';

Modified: trunk/roundcubemail/program/localization/en_US/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/en_US/labels.inc	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/program/localization/en_US/labels.inc	2011-11-21 14:10:29 UTC (rev 5457)
@@ -469,7 +469,7 @@
 $labels['version'] = 'Version';
 $labels['source'] = 'Source';
 $labels['license'] = 'License';
-$labels['webpage'] = 'Webpage';
+$labels['support'] = 'Get support';
 
 // units
 $labels['B'] = 'B';

Modified: trunk/roundcubemail/program/localization/pl_PL/labels.inc
===================================================================
--- trunk/roundcubemail/program/localization/pl_PL/labels.inc	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/program/localization/pl_PL/labels.inc	2011-11-21 14:10:29 UTC (rev 5457)
@@ -438,7 +438,6 @@
 $labels['version'] = 'Wersja';
 $labels['source'] = 'Źródła';
 $labels['license'] = 'Licencja';
-$labels['webpage'] = 'Strona internetowa';
 $labels['about'] = 'O programie';
 
 ?>

Modified: trunk/roundcubemail/program/steps/settings/about.inc
===================================================================
--- trunk/roundcubemail/program/steps/settings/about.inc	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/program/steps/settings/about.inc	2011-11-21 14:10:29 UTC (rev 5457)
@@ -20,6 +20,18 @@
 
 */
 
+
+function rcmail_supportlink($attrib)
+{
+  global $RCMAIL;
+  
+  if ($url = $RCMAIL->config->get('support_url')) {
+    $label = $attrub['label'] ? $attrub['label'] : 'support';
+    $attrib['href'] = $url;
+    return html::a($attrib, rcube_label($label));
+  }
+}
+
 function rcmail_plugins_list($attrib)
 {
   global $RCMAIL;
@@ -49,18 +61,18 @@
   $table->add_header('source', rcube_label('source'));
 
   foreach ($plugins as $name => $data) {
-    $uri = $data['uri'] ? $data['uri'] : $data['channel'];
+    $uri = $data['srcuri'];
     if ($uri && stripos($uri, 'http') !== 0) {
       $uri = 'http://' . $uri;
     }
-
+    
     $table->add_row();
     $table->add('name', Q($data['name'] ? $data['name'] : $name));
     $table->add('version', Q($data['version']));
     $table->add('license', $data['license_uri'] ? html::a(array('target' => '_blank', href=> Q($data['license_uri'])),
         Q($data['license'])) : $data['license']);
     $table->add('source', $uri ? html::a(array('target' => '_blank', href=> Q($uri)),
-        Q(rcube_label('source'))) : '');
+        Q(rcube_label('download'))) : '');
   }
 
   return $table->show();
@@ -74,8 +86,7 @@
     'version' => 'string(//rc:package/rc:version/rc:release)',
     'license' => 'string(//rc:package/rc:license)',
     'license_uri' => 'string(//rc:package/rc:license/@uri)',
-    'uri' => 'string(//rc:package/rc:uri)',
-    'channel' => 'string(//rc:package/rc:channel)',
+    'srcuri' => 'string(//rc:package/rc:srcuri)',
   );
 
   $package = INSTALL_PATH . "/plugins/$name/package.xml";
@@ -111,6 +122,7 @@
 
 $OUTPUT->set_pagetitle(rcube_label('about'));
 
+$OUTPUT->add_handler('supportlink', 'rcmail_supportlink');
 $OUTPUT->add_handler('pluginlist', 'rcmail_plugins_list');
 
 $OUTPUT->send('about');

Modified: trunk/roundcubemail/skins/default/settings.css
===================================================================
--- trunk/roundcubemail/skins/default/settings.css	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/skins/default/settings.css	2011-11-21 14:10:29 UTC (rev 5457)
@@ -171,12 +171,16 @@
   font-family: monospace;
 }
 
+div.readtext
+{
+  width: 42em;
+  padding: 20px;
+}
+
 #license
 {
-  margin-left: 20px;
-  left: 20px;
   width: 500px;
-  height: 250px;
+  padding-bottom: 2em;
   background: url(images/watermark.gif) no-repeat center;
 }
 
@@ -194,20 +198,15 @@
 #license .license,
 #license .links
 {
-  margin-top: 30px;
+  margin-top: 1.5em;
 }
 
 #pluginlist
 {
   border: 1px solid #999;
-  margin-left: 20px;
-  top: 300px;
-  left: 20px;
   width: 500px;
 }
 
-#pluginlist td.source,
-#pluginlist td.license,
 #pluginlist td.version
 {
   text-align: center;

Modified: trunk/roundcubemail/skins/default/templates/about.html
===================================================================
--- trunk/roundcubemail/skins/default/templates/about.html	2011-11-21 13:34:42 UTC (rev 5456)
+++ trunk/roundcubemail/skins/default/templates/about.html	2011-11-21 14:10:29 UTC (rev 5457)
@@ -12,24 +12,23 @@
 <roundcube:include file="/includes/settingstabs.html" />
 
 <div id="mainscreen" class="box darkbg crop">
-
+<div class="readtext">
 <div id="license">
-<p class="sysname">Roundcube Webmail <roundcube:object name="version" /></p>
+<h2 class="sysname">Roundcube Webmail <roundcube:object name="version" /></h2>
 <p class="copyright">Copyright © 2005-2011, The Roundcube Dev Team</p>
 <p class="license">This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License version 2
+it under the terms of the <a href="http://www.gnu.org/licenses/gpl-2.0.html" target="_blank">GNU General Public License version 2</a>
 as published by the Free Software Foundation.
 </p>
 <p class="links">
-  <roundcube:label name="license" />: <a href="http://www.gnu.org/licenses/gpl-2.0.html" target="_blank">GNU GPLv2</a>
-  <br />
-  <roundcube:label name="webpage" />: <a href="http://roundcube.net" target="_blank">www.roundcube.net</a>
-</p>
+  <roundcube:object name="supportlink" label="suport" target="_blank" />
 </div>
 
+<h4>Installed plugins</h4>
 <roundcube:object name="pluginlist" id="pluginlist" class="records-table" cellspacing="0" />
 
 </div>
+</div>
 
 </body>
 </html>

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn


More information about the Svn mailing list