Skip to content

Commit

Permalink
make the main page look ok
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Feb 19, 2010
1 parent 46ed835 commit b29a269
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 40 deletions.
1 change: 1 addition & 0 deletions lib/CPAN/Forum.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
28 changes: 15 additions & 13 deletions tt/incl/footer.tt
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
12 changes: 9 additions & 3 deletions tt/incl/header.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

<body>

<div id="notify-container">
</div>

<div class="container">
<div id="header">
<div id="topbar">
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -69,3 +74,4 @@
</div>
</div>


3 changes: 0 additions & 3 deletions tt/incl/listing.tt
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -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 %]
2 changes: 1 addition & 1 deletion tt/incl/navigation.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
17 changes: 16 additions & 1 deletion tt/pages/home.tt
Original file line number Diff line number Diff line change
Expand Up @@ -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 %]


72 changes: 53 additions & 19 deletions www/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ a:visited {
float: left;
}

#header #topbar #toplanguage {
float: left;
}
#toplanguage select {
width: 120px;
}

#header #homelink {
height: 61px;
width: 250px;
Expand Down Expand Up @@ -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 */

Expand All @@ -163,6 +199,7 @@ a:visited {
font-size: 10pt;
text-align: center;
padding-bottom:1px;
float: bottom;
/* width: 780px;*/
}
.perlads li {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit b29a269

Please sign in to comment.