From 2dab9254e1da14db38c0862c44bace2ad4993bda Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 12 Mar 2012 01:45:07 +0100 Subject: Add seperate page per post --- static/main.css | 29 ++++++--- templates/aggregator/base.html | 24 ++++++++ templates/aggregator/post_content.html | 28 +++++++++ templates/aggregator/post_detail.html | 24 ++++++++ templates/aggregator/posts.html | 105 ++++++++++++--------------------- urls.py | 6 +- 6 files changed, 140 insertions(+), 76 deletions(-) create mode 100644 templates/aggregator/base.html create mode 100644 templates/aggregator/post_content.html create mode 100644 templates/aggregator/post_detail.html diff --git a/static/main.css b/static/main.css index c040cbf..8a7f2b5 100644 --- a/static/main.css +++ b/static/main.css @@ -18,6 +18,10 @@ body { font-family: "DejaVu Sans", sans-serif; } +.clear { + clear: both; +} + .post { background-color: #808080; padding: 5px; @@ -27,7 +31,18 @@ body { } .post h3 { - margin-bottom: 10px; + float: left; +} + +.post .postsubtitle { + margin-left: 50px; + text-align: right; + font-size: 75%; +} + +.post .postcontent { + margin-top: 17px; + clear: left; } #logo { @@ -70,7 +85,7 @@ body { } #content h2 { - margin-bottom: 3px; + margin-bottom: 5px; } #feeds { @@ -97,15 +112,13 @@ body { position: relative; } -#pager #previous { - position: absolute; - left: 5px; +#pager .nav-prev { + float: left; } -#pager #next { +#pager .nav-next { float: right; - position: absolute; - right: 5px; + text-align: right; } #pager #current { diff --git a/templates/aggregator/base.html b/templates/aggregator/base.html new file mode 100644 index 0000000..1f3ec37 --- /dev/null +++ b/templates/aggregator/base.html @@ -0,0 +1,24 @@ + + + +
+