]> source.dussan.org Git - nextcloud-server.git/commitdiff
a bit more polish. We are getting there.
authorFrank Karlitschek <frank@owncloud.org>
Thu, 13 Dec 2012 08:26:25 +0000 (09:26 +0100)
committerFrank Karlitschek <frank@owncloud.org>
Thu, 13 Dec 2012 08:26:25 +0000 (09:26 +0100)
settings/css/settings.css
settings/help.php
settings/templates/help.php

index 560862fa12f23c0c1ec86f20d09540699452105a..36457481911199f792da9d255103fe6538dd24b3 100644 (file)
@@ -68,3 +68,6 @@ span.securitywarning {color:#C33; font-weight:bold; }
 span.connectionwarning {color:#933; font-weight:bold; }
 input[type=radio] { width:1em; }
 table.shareAPI td { padding-bottom: 0.8em; }
+
+/* HELP */
+.pressed {background-color:#DDD;}
index 6f99596b2badfcca785ab91a3a3e9e8d5600d549..cdf0c549e449a3c3f992c7469de4e845890293cd 100644 (file)
@@ -15,8 +15,12 @@ OC_App::setActiveNavigationEntry( "help" );
 
 if(isset($_GET['mode']) and $_GET['mode']=='admin') {
        $url=OC_Helper::linkToAbsolute( 'core', 'docu/admin' );
+       $style1='';
+       $style2=' pressed';
 }else{
        $url=OC_Helper::linkToAbsolute( 'core', 'docu/user' );
+       $style1=' pressed';
+       $style2='';
 }
 
 $url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user';
@@ -27,4 +31,6 @@ $tmpl->assign( "admin", OC_Group::inGroup(OC_User::getUser(), 'admin') );
 $tmpl->assign( "url", $url );
 $tmpl->assign( "url1", $url1 );
 $tmpl->assign( "url2", $url2 );
+$tmpl->assign( "style1", $style1 );
+$tmpl->assign( "style2", $style2 );
 $tmpl->printPage();
index 5ed99420cf494db702935ae874070e8627b9d944..06f53746c29c434200e967c8ddaebdba3618b71f 100644 (file)
@@ -1,9 +1,10 @@
 <div id="controls">
-        <a class="button newquestion" href="<?php echo($_['url1']); ?>"><?php echo $l->t( 'User Documentation' ); ?></a>
-        <?php if($_['admin']) { ?><a class="button newquestion" href="<?php echo($_['url2']); ?>"><?php echo $l->t( 'Administrator Documentation' ); ?></a><?php } ?>
+        <?php if($_['admin']) { ?><a class="button newquestion <?php echo($_['style1']); ?>" href="<?php echo($_['url1']); ?>"><?php echo $l->t( 'User Documentation' ); ?></a><?php } ?>
+        <?php if($_['admin']) { ?><a class="button newquestion <?php echo($_['style2']); ?>" href="<?php echo($_['url2']); ?>"><?php echo $l->t( 'Administrator Documentation' ); ?></a><?php } ?>
         <a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php echo $l->t( 'Online Documentation' ); ?></a>
         <a class="button newquestion" href="http://forum.owncloud.org" target="_blank"><?php echo $l->t( 'Forum' ); ?></a>
         <a class="button newquestion" href="https://github.com/owncloud/core/issues" target="_blank"><?php echo $l->t( 'Bugtracker' ); ?></a>
+        <a class="button newquestion" href="http://owncloud.com" target="_blank"><?php echo $l->t( 'Commercial Support' ); ?></a>
 </div>
 <br /><br />
 <iframe src="<?php echo($_['url']); ?>" width="100%" id="ifm" ></iframe>