minor fixes
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Thu, 21 Apr 2005 12:19:04 +0000 (12:19 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:41 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-577

htdocs.net/css/xnet.css
include/xnet/smarty.plugins.inc.php
plugins/function.rel.php

index a0fdbc7..338635a 100644 (file)
@@ -81,9 +81,10 @@ td#credits {
     font-weight: bold;
 }
 
-td#perso ul {
+td#perso div {
     font-weight: bold;
     font-size: 90%;
+    padding: 2px 1em;
 }
 
 td#perso a.gp {
index 1144fe5..cd55390 100644 (file)
@@ -21,6 +21,8 @@
 
 // {{{  function list_all_my_groups
 
+require_once $globals->spoolroot.'/plugins/function.rel.php';
+
 function list_all_my_groups($params)
 {
     if (!logged()) {
@@ -32,9 +34,9 @@ function list_all_my_groups($params)
                FROM  groupex.asso    AS a
          INNER JOIN  groupex.membres AS m ON m.asso_id = a.id
               WHERE  m.uid={?}", Session::getInt('uid'));
-    $html = '';
+    $html = '<div>Mes groupes :</div>';
     while (list($nom, $mini) = $res->next()) {
-        $html .= "<a class='gp' href='$mini'>&bull; $nom</a>";
+        $html .= "<a class='gp' href='".smarty_function_rel()."/$mini/asso.php'>&bull; $nom</a>";
     }
     return $html;
 }
index 91a2689..2deb44f 100644 (file)
@@ -19,7 +19,7 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************/
 
-function smarty_function_rel($string)
+function smarty_function_rel()
 {
     static $rel;
     if (empty($rel)) {