Browse files

make the main page look ok

  • Loading branch information...
1 parent 46ed835 commit b29a2692ba4618d55fb86360f16cebd58220dd28 @szabgab committed Feb 19, 2010
Showing with 95 additions and 40 deletions.
  1. +1 −0 lib/CPAN/Forum.pm
  2. +15 −13 tt/incl/footer.tt
  3. +9 −3 tt/incl/header.tt
  4. +0 −3 tt/incl/listing.tt
  5. +1 −1 tt/incl/navigation.tt
  6. +16 −1 tt/pages/home.tt
  7. +53 −19 www/style.css
View
1 lib/CPAN/Forum.pm
@@ -632,6 +632,7 @@ sub tt_pre_process {
$params->{loggedin} = $self->session->param("loggedin") || "";
$params->{username} = $self->session->param("username") || "anonymous";
$params->{admin} = $self->session->param('admin');
+ $params->{language_hu} = 1;
return;
}
View
28 tt/incl/footer.tt
@@ -1,19 +1,21 @@
[% INCLUDE incl/navigation.tt %]
-
-<div class="left_footer">
- Service launched on 2nd of February 2005.<br />
- Comments, and other submissions on CPAN Forum are Copyright 2005-2010, their respective owners.<br />
- Site maintainer is not responsible for content.
- <a href="/privacy_policy">Privacy Policy</a>
-</div>
-<div class="right_footer">
-Maintained by <a href="http://szabgab.com/">Gabor Szabo</a> and hosted on the
-servers of <a href="http://m5hosting.com/">M5 hosting</a>.<br />
-<a href="http://pti.co.il/"><img src="/img/pti-round-80.jpg" alt="Perl Training Israel" /></a>
-See also <a href="http://perltraining.org/">World Wide Perl Training</a>
+<div id="footer">
+ <div id="left_footer">
+ Service launched on 2nd of February 2005.<br />
+ Comments, and other submissions on CPAN Forum are Copyright 2005-2010, their respective owners.<br />
+ Site maintainer is not responsible for content.
+ <a href="/privacy_policy">Privacy Policy</a>
+ </div>
+ <div id="right_footer">
+ Maintained by <a href="http://szabgab.com/">Gabor Szabo</a> and hosted on the
+ servers of <a href="http://m5hosting.com/">M5 hosting</a>.<br />
+ <a href="http://pti.co.il/"><img src="/img/pti-round-80.jpg" alt="Perl Training Israel" /></a>
+ See also <a href="http://perltraining.org/">World Wide Perl Training</a>
+ </div>
</div>
-</div>
+</div> <!-- container -->
+
[% UNLESS dev_server %]
<!-- Google Analytics -->
<script type="text/javascript">
View
12 tt/incl/header.tt
@@ -12,9 +12,6 @@
<body>
-<div id="notify-container">
-</div>
-
<div class="container">
<div id="header">
<div id="topbar">
@@ -42,6 +39,14 @@
</div>
</form>
</div>
+ <div id="toplanguage">
+ <form id="language" method="post" action="/language">
+ <select name="lang">
+ <option value="en" [%IF language_en %]selected="SELECTED"[% END %] >English</option>
+<!-- <option value="hu" [%IF language_hu %]selected="SELECTED"[% END %] >Magyar</option>-->
+ </select>
+ </form>
+ </div>
</div>
<div id="homelink">
<a href="/">CPAN::Forum</a>
@@ -69,3 +74,4 @@
</div>
</div>
+
View
3 tt/incl/listing.tt
@@ -1,5 +1,4 @@
[% IF messages %]
-<div id="posts">
[% FOR m IN messages %]
<div class="post">
<div class="subject"><a href="/posts/[% m.id %]">[% m.subject %]</a></div>
@@ -17,6 +16,4 @@
[% IF next_page %] | <a href="?page=[% next_page %]">next page</a>[% END %]
[% IF last_page %] | <a href="?page=[% last_page %]">last page</a>[% END %]
</div>
-</div>
-
[% END %]
View
2 tt/incl/navigation.tt
@@ -9,7 +9,7 @@
<div class="perlads">
<!-- <a href="http://padre.perlide.org/">Download Padre, the Perl IDE</a> | -->
-<a href="http://m5hosting.com/"> Recommended web hosting by M5 hosting</a>
+<!--<a href="http://m5hosting.com/"> Recommended web hosting by M5 hosting</a>-->
<!-- | Ask for help on the Perl community IRC channel <a href="http://webchat.freenode.net/?channels=perl">#perl on irc.freenode.net</a> -->
</div>
View
17 tt/pages/home.tt
@@ -6,9 +6,24 @@
%]
[% INCLUDE incl/header.tt %]
+<div id="content_body">
+<div id="left_column">
[% INCLUDE incl/listing.tt %]
-<p><a href="[% rss_href %]"><img src="/img/rss1.gif" alt="[% rss_title %]" /></a></p>
+<div id="rss"><a href="[% rss_href %]"><img src="/img/rss1.gif" alt="[% rss_title %]" /></a></div>
+
+</div>
+
+<div id="right_column">
+<!--
+This place was intentionally left empty.
+-->
+</div>
+
+
+</div>
+
[% INCLUDE incl/footer.tt %]
+
View
72 www/style.css
@@ -70,6 +70,13 @@ a:visited {
float: left;
}
+#header #topbar #toplanguage {
+ float: left;
+}
+#toplanguage select {
+ width: 120px;
+}
+
#header #homelink {
height: 61px;
width: 250px;
@@ -125,35 +132,64 @@ a:visited {
text-decoration:none;
}
-#posts .post {
- width: 600px;
+#content_body {
+/* background-color: #00ff00;*/
+ margin-top:12px;
+ margin-bottom: 12px;
+/* height: 100%; */
+/* display: block; */
+/* float: bottom; */
+/* width: 100%; */
+}
+
+#left_column {
+/* background-color: #eeeeee; */
+ width: 798px;
+ float: left;
+}
+#right_column {
+ width: 160px;
+ float: right;
+}
+
+#left_column .post {
+/* width: 600px; */
+ width: 100%;
border-bottom:1px
dotted #999;
overflow:hidden;
padding:11px 0;
float:left;
}
-#posts .post .subject {
+#left_column .post .subject {
color: yellow;
font-size:130%;
font-weight:bold;
}
-#posts .post .group {
+#left_column .post .group {
color: yellow;
padding:6px 12px 6px 12px;
font-weight:bold;
}
-#posts .post .ellapsed {
+#left_column .post .ellapsed {
float:right;
}
-#posts .post .username {
+#left_column .post .username {
padding:0px 12px 6px 12px;
float:right;
}
+#pager {
+ padding: 12px;
+ float: left;
+}
+#rss {
+ paddinx: 12px;
+ float: left;
+}
/* start old css */
@@ -163,6 +199,7 @@ a:visited {
font-size: 10pt;
text-align: center;
padding-bottom:1px;
+ float: bottom;
/* width: 780px;*/
}
.perlads li {
@@ -202,16 +239,6 @@ TABLE.message {
font-size: 10pt;
}
-/*
-A {
- color: #003399;
-}
-
-A:visited {
- color: #663399;
-}
-*/
-
TABLE.posts {
margin: 5px 0px 5px 0px;
border: solid thin;
@@ -343,13 +370,20 @@ INPUT {
font-size: 9pt;
}
-.left_footer {
+#footer {
+ padding-top: 12px;
+ float: left;
+}
+
+#left_footer {
font-size: 8pt;
+ float: left;
}
-.right_footer {
+#right_footer {
font-size: 8pt;
- text-align: right;
+/* text-align: right;*/
+ float: right;
}
.error {

0 comments on commit b29a269

Please sign in to comment.