Permalink
Browse files

regoragnzie the tags page

  • Loading branch information...
1 parent b29a269 commit 513508055f94c09b26460b9b6494075250618324 @szabgab committed Feb 20, 2010
Showing with 59 additions and 73 deletions.
  1. +1 −1 lib/CPAN/Forum/DB/Tags.pm
  2. +2 −2 tt/incl/header.tt
  3. +1 −1 tt/incl/listing.tt
  4. +2 −2 tt/pages/home.tt
  5. +12 −3 tt/pages/tags.tt
  6. +41 −64 www/style.css
@@ -93,7 +93,7 @@ sub get_all_tags {
FROM tags, tag_cloud
WHERE tag_cloud.tag_id=tags.id
GROUP BY name
- ORDER BY name ASC
+ ORDER BY total DESC
";
return $self->_fetch_arrayref_of_hashes($sql);
}
View
@@ -54,10 +54,10 @@
<div id="topmenu">
<div class="nav">
<ul> <!-- home should show recently opened or recently active threads? -->
- <li><a href="/threads/">Threads</a></li> <!-- show all the threads -->
+<!-- <li><a href="/threads/">Threads</a></li> --><!-- show all the threads -->
<li><a href="/tags/">Tags</a></li>
<!-- <li><a href="/credits/">Credits</a></li> --><!-- credit system, or tuits system -->
- <li><a href="/users/">Users</a></li> <!-- list of top users -->
+<!-- <li><a href="/users/">Users</a></li> --><!-- list of top users -->
<!-- <li><a href="/unanswered">Unanswered</a></li> --><!-- list of threads without a response -->
<!--
[% IF loggedin %]
View
@@ -2,7 +2,7 @@
[% FOR m IN messages %]
<div class="post">
<div class="subject"><a href="/posts/[% m.id %]">[% m.subject %]</a></div>
- [% UNLESS hide_group %]<div class="group"><a href="/dist/[% m.group %]">[% m.group %]</a></div>[% END %]
+ [% UNLESS hide_group %]<div class="post-dist-tag"><a href="/dist/[% m.group %]">[% m.group %]</a></div>[% END %]
<div class="ellapsed">[% m.seconds %]</div>
<!-- <div class="date">[% m.date %]</div> -->
[% UNLESS hide_username %]<div class="username"><a href="/users/[% m.postername %]">[% m.postername %]</a></div>[% END %]
View
@@ -1,6 +1,6 @@
[% DEFAULT
- title="Discuss any issue related to Perl or specific CPAN modules"
- description="The place where you can ask anythng about Perl and CPAN that you were afraid to ask elsewhere."
+ title="Discuss any issue related to any CPAN module or to Perl in general"
+ description="The place where you can ask anything about Perl and CPAN that you were afraid to ask elsewhere."
rss_href = "/rss/all"
rss_title = "CPAN::Fourm rss"
%]
View
@@ -1,17 +1,26 @@
[% DEFAULT
- title="Tags"
+ title="Tags - CPAN::Forum"
description=""
%]
[% INCLUDE incl/header.tt %]
+<div id="content_body">
+<div id="left_column">
+
[% IF user_name %]
Tags of user <a href="/user/[% user_name %]">[% user_name %]</a>
[% END %]
+
<!--Number of tags: [% tag_count %]<br />-->
-<div id="htmltagcloud">
+<div id="tags">
+<ul>
[% FOREACH t IN tags %]
-<span class="tagcloud[% t.total %]"><a href="/tags/name/[% t.name %]">[% t.name %]</a></span>[% UNLESS loop.last %],[% END %]
+<li><a href="/tags/name/[% t.name %]">[% t.name %]</a> x [% t.total %]
[% END %]
+</ul>
+</div>
+
+</div>
</div>
[% INCLUDE incl/footer.tt %]
View
@@ -16,6 +16,7 @@ body {
line-height: 1;
}
+
a {
color:#0077CC;
cursor:pointer;
@@ -106,23 +107,24 @@ a:visited {
margin:0;
}
.nav li {
- background:#777;
- display:block;
- float:left;
- margin-right:7px;
+ background: #707070;
+ display: block;
+ float: left;
+ margin-right: 7px;
}
+
#topmenu a {
color: #ffffff;
}
.nav .youarehere {
- background:#f90;
+ background:#f09000;
}
.youarehere a {
color:#fffffff;
}
.nav li:hover {
- background-color:#f90;
+ background-color:#f09000;
}
.nav a {
color:#fffffff;
@@ -168,10 +170,13 @@ a:visited {
font-weight:bold;
}
-#left_column .post .group {
+#left_column .post .post-dist-tag {
+ border: medium none;
+ margin: 0;
color: yellow;
padding:6px 12px 6px 12px;
font-weight:bold;
+ display: block;
}
#left_column .post .ellapsed {
@@ -427,62 +432,34 @@ INPUT {
}
+/*
+#tags {
+}
+*/
-/* From HTML::TagCloud (C) Leon Brocard */
-
-#htmltagcloud {
- text-align: center;
- line-height: 1;
-}
-
-span.tagcloud0 {font-size: 12px;}
-span.tagcloud0 a {text-decoration: none;}
-span.tagcloud1 {font-size: 13px;}
-span.tagcloud1 a {text-decoration: none;}
-span.tagcloud2 {font-size: 14px;}
-span.tagcloud2 a {text-decoration: none;}
-span.tagcloud3 {font-size: 15px;}
-span.tagcloud3 a {text-decoration: none;}
-span.tagcloud4 {font-size: 16px;}
-span.tagcloud4 a {text-decoration: none;}
-span.tagcloud5 {font-size: 17px;}
-span.tagcloud5 a {text-decoration: none;}
-span.tagcloud6 {font-size: 18px;}
-span.tagcloud6 a {text-decoration: none;}
-span.tagcloud7 {font-size: 19px;}
-span.tagcloud7 a {text-decoration: none;}
-span.tagcloud8 {font-size: 20px;}
-span.tagcloud8 a {text-decoration: none;}
-span.tagcloud9 {font-size: 21px;}
-span.tagcloud9 a {text-decoration: none;}
-span.tagcloud10 {font-size: 22px;}
-span.tagcloud10 a {text-decoration: none;}
-span.tagcloud11 {font-size: 23px;}
-span.tagcloud11 a {text-decoration: none;}
-span.tagcloud12 {font-size: 24px;}
-span.tagcloud12 a {text-decoration: none;}
-span.tagcloud13 {font-size: 25px;}
-span.tagcloud13 a {text-decoration: none;}
-span.tagcloud14 {font-size: 26px;}
-span.tagcloud14 a {text-decoration: none;}
-span.tagcloud15 {font-size: 27px;}
-span.tagcloud15 a {text-decoration: none;}
-span.tagcloud16 {font-size: 28px;}
-span.tagcloud16 a {text-decoration: none;}
-span.tagcloud17 {font-size: 29px;}
-span.tagcloud17 a {text-decoration: none;}
-span.tagcloud18 {font-size: 30px;}
-span.tagcloud18 a {text-decoration: none;}
-span.tagcloud19 {font-size: 31px;}
-span.tagcloud19 a {text-decoration: none;}
-span.tagcloud20 {font-size: 32px;}
-span.tagcloud20 a {text-decoration: none;}
-span.tagcloud21 {font-size: 33px;}
-span.tagcloud21 a {text-decoration: none;}
-span.tagcloud22 {font-size: 34px;}
-span.tagcloud22 a {text-decoration: none;}
-span.tagcloud23 {font-size: 35px;}
-span.tagcloud23 a {text-decoration: none;}
-span.tagcloud24 {font-size: 36px;}
-span.tagcloud24 a {text-decoration: none;}
+.#tags ul {
+ margin: 0;
+}
+#tags li {
+ display: block;
+ float: left;
+ margin-right: 7px;
+ margin-top: 2px;
+ height: 30px;
+}
+#tags a {
+ background: #777777;
+ color: #ffffff;
+ display: inline;
+ font-weight: bold;
+ padding: 6px 4px 6px 4px;
+ text-decoration: none;
+}
+
+#tags a:visited {
+ color: #ffffff;
+}
+#tags a:hover {
+ background-color:#f09000;
+}

0 comments on commit 5135080

Please sign in to comment.