[vhffs-dev] [1196] Fixing (partially but can't do more for now) #238.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1196
Author:   beuss
Date:     2008-05-19 13:32:58 +0200 (Mon, 19 May 2008)

Log Message:
-----------
Fixing (partially but can't do more for now) #238.

Modified Paths:
--------------
    trunk/vhffs-public/group.pl
    trunk/vhffs-public/templates/group.tmpl


Modified: trunk/vhffs-public/group.pl
===================================================================
--- trunk/vhffs-public/group.pl	2008-05-18 19:04:08 UTC (rev 1195)
+++ trunk/vhffs-public/group.pl	2008-05-19 11:32:58 UTC (rev 1196)
@@ -39,11 +39,12 @@
 use CGI::Session;
 
 use lib '%VHFFS_LIB_DIR%';
+use Vhffs::Constants;
+use Vhffs::Functions;
 use Vhffs::Main;
-use Vhffs::Constants;
 use Vhffs::Panel::Main;
 use Vhffs::Panel::Template;
-use Vhffs::Functions;
+use Vhffs::Tag;
 
 my $panel = new Vhffs::Panel::Main();
 exit 0 unless $panel;
@@ -93,6 +94,7 @@
     $template->param( VALUE_GROUPNAME => $group->get_groupname );
     $template->param( VALUE_DESCRIPTION => Vhffs::Panel::Main::format_description($group->get_description));
     $template->param( USERS => $group->get_users );
+    $template->param( TAG_CATEGORIES => $group->get_tags(Vhffs::Constants::TAG_VISIBILITY_PUBLIC) );
 
     if( $vhffs->get_config->get_service_availability('web') == 1 ) {
         use Vhffs::Panel::Web;

Modified: trunk/vhffs-public/templates/group.tmpl
===================================================================
--- trunk/vhffs-public/templates/group.tmpl	2008-05-18 19:04:08 UTC (rev 1195)
+++ trunk/vhffs-public/templates/group.tmpl	2008-05-19 11:32:58 UTC (rev 1196)
@@ -34,4 +34,17 @@
 <TMPL_INCLUDE NAME="misc/list-part.tmpl">
 </TMPL_IF>
 
+<TMPL_IF NAME="TAG_CATEGORIES">
+<h2><TMPL_I18N KEY="Tags"></h2>
+<ul>
+<TMPL_LOOP NAME="TAG_CATEGORIES">
+<li><TMPL_VAR NAME="LABEL" ESCAPE="1">:
+<TMPL_LOOP NAME="TAGS">
+<TMPL_VAR NAME="LABEL" ESCAPE="1">
+</TMPL_LOOP>
+</li>
+</TMPL_LOOP>
+</ul>
+</TMPL_IF>
+
 </div>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/