]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Optimisation of the interface: moved toolbar, search menu, sort menu and right profil...
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 11 Jan 2008 08:08:33 +0000 (08:08 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Fri, 11 Jan 2008 08:08:33 +0000 (08:08 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@6 b3834d28-1941-0410-a4f8-b48e95affb8f

scuttle.css
search.inc.php
templates/sidebar.block.profile.php
templates/toolbar.inc.php

index c2baa8f87a7d395f9107e85e4adbb883334eb2e8..e22914036b97a30c4a03d4cc81e8437a593dc2f1 100644 (file)
@@ -346,10 +346,14 @@ form {
        margin: 0;
 }
 form#search {
-       background: #FFF;
-       color: #555;
-       font-size: small;
-       margin-bottom: 1em;
+       margin-right: 0.75em;
+       color: #CCC;
+       font-size: small;
+       float: right;
+       margin: 0;
+       position: absolute;
+       right: 0;
+       top: 6.4em;
 }
 form label,
 form td,
@@ -376,16 +380,16 @@ p {
     margin: 1em;
 }
 p#sort {
-    color: #CCC;
+    /*color: #CCC;*/
     font-size: small;
-    float: right;
-    margin: 0;
-    position: absolute;
+    /*float: right;*/
+    /*margin: 0;*/
+    /*position: absolute;*/
     right: 0;
     top: 7em;
 }
 html > body p#sort {
-    margin-right: 0.75em;
+    /*margin-right: 0.75em;*/
 }
 p#sort a {
     background: #AAA;
index 1c2cbc33f2e84fd98a5a38b3578c750a9eb8e5c6..3900535be5ab16045b9dd10258fdd4720f44f78d 100644 (file)
@@ -37,7 +37,7 @@
         <?php
         }
         ?>
-        <td><input type="text" name="terms" size="50" value="<?php echo filter($terms); ?>" /></td>
+        <td><input type="text" name="terms" size="30" value="<?php echo filter($terms); ?>" /></td>
         <td><input type="submit" value="<?php echo T_('Search' /* Submit button */); ?>" /></td>
     </tr>
     </table>
index 1b8e915032a7d9605a1a4478bf1c2b5f583b7c45..4fd61ff364b50efe10259c627b5e5c16a2ebfd74 100644 (file)
@@ -1,11 +1,15 @@
 <?php
+// Menu moved to toolbar.inc.php
+
+/*
 $userservice =& ServiceFactory::getServiceInstance('UserService');
 if (utf8_strlen($userinfo['name']) > 0) {
     $name = $userinfo['name'];
 } else {
     $name = $userinfo['username'];
 }
-?>
+
+
 <h2><?php echo $name; ?></h2>
 <div id="profile">
     <ul>
@@ -14,3 +18,6 @@ if (utf8_strlen($userinfo['name']) > 0) {
         <li><a href="<?php echo createURL('watchlist', $user); ?>"><?php echo T_('Watchlist'); ?></a> &rarr;</li>
     </ul>
 </div>
+
+*/
+?>
index 2eb56ac60e50e133d56545ca7cefefc4b570d7e0..916897c47b62f69d2df4ee47b4e6863b572b51eb 100644 (file)
@@ -2,14 +2,17 @@
 $userservice =& ServiceFactory::getServiceInstance('UserService');
 if ($userservice->isLoggedOn()) {
     $cUser = $userservice->getCurrentUser();
+    $cUserId = $userservice->getCurrentUserId();
     $cUsername = $cUser[$userservice->getFieldName('username')];
 ?>
 
     <ul id="navigation">
         <li><a href="<?php echo createURL('bookmarks', $cUsername); ?>"><?php echo T_('Bookmarks'); ?></a></li>
+       <li><a href="<?php echo createURL('alltags', $cUsername); ?>"><?php echo T_('Tags'); ?></a></li>
         <li><a href="<?php echo createURL('watchlist', $cUsername); ?>"><?php echo T_('Watchlist'); ?></a></li>
+       <li><a href="<?php echo $userservice->getProfileUrl($cUserId, $cUsername); ?>"><?php echo T_('Profile'); ?></a></li>
         <li><a href="<?php echo createURL('bookmarks', $cUsername . '?action=add'); ?>"><?php echo T_('Add a Bookmark'); ?></a></li>
-        <li class="access"><a href="<?php echo $GLOBALS['root']; ?>?action=logout"><?php echo T_('Log Out'); ?></a></li>
+        <li class="access"><?php echo $cUsername?><a href="<?php echo $GLOBALS['root']; ?>?action=logout">(<?php echo T_('Log Out'); ?>)</a></li>
     </ul>
 
 <?php