[Cpan-forum-commit] rev 100 - in trunk: lib/CPAN templates www
svn at pti.co.il
svn at pti.co.il
Sun Feb 6 18:41:32 IST 2005
Author: gabor
Date: 2005-02-06 18:41:31 +0200 (Sun, 06 Feb 2005)
New Revision: 100
Modified:
trunk/lib/CPAN/Forum.pm
trunk/templates/groups.tmpl
trunk/templates/links.tmpl
trunk/templates/listing.tmpl
trunk/templates/users.tmpl
trunk/www/style.css
Log:
hide the dist names when showing posting of one distribution, hide username when showing postings of one user
Modified: trunk/lib/CPAN/Forum.pm
===================================================================
--- trunk/lib/CPAN/Forum.pm 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/lib/CPAN/Forum.pm 2005-02-06 16:41:31 UTC (rev 100)
@@ -880,7 +880,7 @@
sub load_tmpl {
my $self = shift;
- my $t = $self->SUPER::load_tmpl(@_,
+ my $t = $self->SUPER::load_tmpl(@_, global_vars => 1
# die_on_bad_params => -e ($self->param("ROOT") . "/die_on_bad_param") ? 1 : 0
);
$t->param("loggedin" => $self->session->param("loggedin") || "");
@@ -1535,6 +1535,7 @@
my $t = $self->load_tmpl("groups.tmpl",
loop_context_vars => 1,
);
+ $t->param(hide_group => 1);
# $t->param(dashgroup => $dashgroup);
$t->param(group => $group);
@@ -1593,6 +1594,7 @@
loop_context_vars => 1,
);
+ $t->param(hide_username => 1);
my ($user) = CPAN::Forum::Users->search(username => $username);
Modified: trunk/templates/groups.tmpl
===================================================================
--- trunk/templates/groups.tmpl 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/templates/groups.tmpl 2005-02-06 16:41:31 UTC (rev 100)
@@ -1,11 +1,11 @@
<TMPL_INCLUDE NAME="head.tmpl">
-<p id="pageTitle"><TMPL_VAR group></p>
+<p id="pageTitle"><b><TMPL_VAR group></b></p>
<TMPL_INCLUDE NAME="navigation.tmpl">
<TMPL_INCLUDE NAME="links.tmpl">
<p>
-This section of the site is for discussing the <TMPL_VAR group> CPAN distribution.
+This section of the site is for discussing the <b><TMPL_VAR group></b> CPAN distribution.
</p>
<TMPL_UNLESS messages>
<p>
Modified: trunk/templates/links.tmpl
===================================================================
--- trunk/templates/links.tmpl 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/templates/links.tmpl 2005-02-06 16:41:31 UTC (rev 100)
@@ -1,5 +1,5 @@
<div class="links">
- <a href="/dist/<TMPL_VAR group>"><TMPL_VAR group></a>
+ <b><TMPL_VAR group></b>
[<a href="http://search.cpan.org/dist/<TMPL_VAR group>">search.cpan.org</a>]
[<a href="http://cpan.uwinnipeg.ca/dist/<TMPL_VAR group>">Kobes search</a>]
[<a href="http://rt.cpan.org/NoAuth/Bugs.html?Dist=<TMPL_VAR group>">View and report bugs</a>]
Modified: trunk/templates/listing.tmpl
===================================================================
--- trunk/templates/listing.tmpl 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/templates/listing.tmpl 2005-02-06 16:41:31 UTC (rev 100)
@@ -1,19 +1,19 @@
<TMPL_IF messages>
<table class="posts">
<tr class="posts_head">
- <th class="col1">Module</th>
+ <TMPL_UNLESS hide_group><th class="col1">Module</th></TMPL_UNLESS>
<th class="col2">Title</th>
<th class="col3">Thread</th>
<th class="col4">Date</th>
- <th class="col5">Posted by</th>
+ <TMPL_UNLESS hide_username><th class="col5">Posted by</th></TMPL_UNLESS>
</tr>
<TMPL_LOOP messages>
<tr class="<TMPL_IF NAME="__odd__">odd<TMPL_ELSE>even</TMPL_IF>">
- <td class="col1"><a href="/dist/<TMPL_VAR group>"><TMPL_VAR group></a></td>
+ <TMPL_UNLESS hide_group><td class="col1"><a href="/dist/<TMPL_VAR group>"><TMPL_VAR group></a></td></TMPL_UNLESS>
<td class="col2"><a href="/posts/<TMPL_VAR id>"><TMPL_VAR subject></a></td>
<td class="col3"><TMPL_IF thread><a href="/threads/<TMPL_VAR thread_id>">(+<TMPL_VAR thread_count>)</a></TMPL_IF></td>
<td class="col4"><TMPL_VAR date></td>
- <td class="col5"><a href="/users/<TMPL_VAR postername>"><TMPL_VAR postername></a></td>
+ <TMPL_UNLESS hide_username><td class="col5"><a href="/users/<TMPL_VAR postername>"><TMPL_VAR postername></a></td></TMPL_UNLESS>
</tr>
</TMPL_LOOP>
</table>
Modified: trunk/templates/users.tmpl
===================================================================
--- trunk/templates/users.tmpl 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/templates/users.tmpl 2005-02-06 16:41:31 UTC (rev 100)
@@ -1,5 +1,5 @@
<TMPL_INCLUDE NAME="head.tmpl">
-<p id="pageTitle">Recent postings by <TMPL_VAR this_fullname> (<TMPL_VAR this_username>)</p>
+<p id="pageTitle">Recent postings by <b><TMPL_VAR this_fullname> (<TMPL_VAR this_username>)</b></p>
<!--
First name: <TMPL_VAR fname><br />
Last name: <TMPL_VAR lname><br />
Modified: trunk/www/style.css
===================================================================
--- trunk/www/style.css 2005-02-06 15:47:45 UTC (rev 99)
+++ trunk/www/style.css 2005-02-06 16:41:31 UTC (rev 100)
@@ -28,6 +28,7 @@
height: 18px;
padding: 0px 0px 0px 20px;
font-size: 12pt;
+ /*font-weight: bold;*/
color: #333333;
border: solid thin;
border-color: #333333;
@@ -221,6 +222,7 @@
.links {
/* background: lightyellow; */
background: #eeeeee;
+ text-align: center;
}
More information about the Cpan-forum-commit
mailing list