[Cpan-forum-commit] rev 238 - in trunk: . lib/CPAN/Forum/RM templates
svn at pti.co.il
svn at pti.co.il
Wed Jul 4 00:02:21 IDT 2007
Author: gabor
Date: 2007-07-04 00:02:20 +0300 (Wed, 04 Jul 2007)
New Revision: 238
Modified:
trunk/
trunk/lib/CPAN/Forum/RM/Dist.pm
trunk/templates/groups.tmpl
Log:
show tags only to logged in users
Property changes on: trunk
___________________________________________________________________
Name: svk:merge
- 7bc34947-122d-0410-bc5a-f898d2bb5f81:/local/cpan-forum:4097
8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:12752
+ 7bc34947-122d-0410-bc5a-f898d2bb5f81:/local/cpan-forum:4098
8c4c90e1-83eb-0310-96eb-e7cb62807872:/local/cpan-forum:12752
Modified: trunk/lib/CPAN/Forum/RM/Dist.pm
===================================================================
--- trunk/lib/CPAN/Forum/RM/Dist.pm 2007-07-03 21:01:50 UTC (rev 237)
+++ trunk/lib/CPAN/Forum/RM/Dist.pm 2007-07-03 21:02:20 UTC (rev 238)
@@ -64,8 +64,11 @@
}
my $uid = $self->session->param('uid');
- my $tags = CPAN::Forum::DB::Tags->get_tags_of($gid, $uid);
- $t->param(tags => $tags);
+ if ($uid) {
+ my $tags = CPAN::Forum::DB::Tags->get_tags_of($gid, $uid);
+ $t->param(tags => $tags);
+ $t->param(show_tags => 1);
+ }
$t->param(group_id => $gid);
return $t->output;
Modified: trunk/templates/groups.tmpl
===================================================================
--- trunk/templates/groups.tmpl 2007-07-03 21:01:50 UTC (rev 237)
+++ trunk/templates/groups.tmpl 2007-07-03 21:02:20 UTC (rev 238)
@@ -11,6 +11,7 @@
All the posts related to modules of <a href="/author/<TMPL_VAR pauseid_name>"><TMPL_VAR pauseid_name></a>.
</p>
+<TMPL_IF show_tags>
<p>
<TMPL_IF tags>
My Tags: <TMPL_LOOP tags><TMPL_VAR name>, </TMPL_LOOP>
@@ -22,6 +23,7 @@
<input type="submit" value="Update tags" />
</form>
</p>
+</TMPL_IF>
<TMPL_IF messages>
<p>
More information about the Cpan-forum-commit
mailing list