diff options
Diffstat (limited to 'templates/aggregator/posts.html')
-rw-r--r-- | templates/aggregator/posts.html | 105 |
1 files changed, 38 insertions, 67 deletions
diff --git a/templates/aggregator/posts.html b/templates/aggregator/posts.html index 5b8bc1c..2a5b8a1 100644 --- a/templates/aggregator/posts.html +++ b/templates/aggregator/posts.html @@ -1,70 +1,41 @@ -<!DOCTYPE html> - -<html> - <head> - <title>ryuslash</title> - <link href="/static/main.css" type="text/css" rel="stylesheet" /> - <link rel="shortcut icon" href="/static/favicon.png" /> - </head> - <body> - - <img src="/static/logo.png" id="logo"> - - <h1 id="sitetitle"><span id="blue">ryu</span><span id="orange">slash</span></h1> - <div id="sitesubtitle">Will this ever really be my website?</div> - - <div id="feeds"> - {% for feed in feeds %} - <a href="{{ feed.get_profile_url }}"> - <img src="{{ feed.get_favicon_url }}"> - {{ feed.name }} - </a> - {% endfor %} +{% extends "aggregator/base.html" %} + +{% block menu %} +<div id="feeds"> + {% for feed in feeds %} + <a href="{{ feed.get_profile_url }}"> + <img src="{{ feed.get_favicon_url }}"> + {{ feed.name }} + </a> + {% endfor %} +</div> +{% endblock %} + +{% block content %} +{% regroup list.object_list by updated.date as grouped_list %} +{% for group in grouped_list %} + <h2>{{ group.grouper }}</h2> + + {% for post in group.list %} + {% include "aggregator/post_content.html" %} + {% endfor %} +{% endfor %} + +<div id="pager"> + {% if list.has_previous %} + <div class="nav-prev"> + <a href="/{{ list.previous_page_number }}/" id="previous">previous</a> </div> + {% endif %} - <div id="content"> - {% regroup list.object_list by updated.date as grouped_list %} - {% for group in grouped_list %} - <h2>{{ group.grouper }}</h2> - - {% for post in group.list %} - <div class="post {{ post.feed.name|slugify }}"> - <h3> - <a href="{{ post.feed.get_profile_url }}"><img src="{{ post.feed.get_favicon_url }}" /></a> - <a href="{{ post.remote_url }}"> - {% if post.feed.uses_title %} - {{ post.title }} - {% else %} - {{ post.updated }} - {% endif %} - </a> - </h3> - - {% autoescape off %} - {% if post.feed.br2nl %} - {{ post.body|linebreaks }} - {% else %} - {{ post.body }} - {% endif %} - {% endautoescape %} - </div> - {% endfor %} - {% endfor %} - - <div id="pager"> - {% if list.has_previous %} - <a href="/{{ list.previous_page_number }}/" id="previous">previous</a> - {% endif %} - - {% if list.has_next %} - <a href="/{{ list.next_page_number }}/" id="next">next</a> - {% endif %} - - <div id="current"> - {{ list.number }} / {{ list.paginator.num_pages }} - </div> - - </div> + {% if list.has_next %} + <div class="nav-next"> + <a href="/{{ list.next_page_number }}/" id="next">next</a> </div> - </body> -</html> + {% endif %} + + <div id="current"> + {{ list.number }} / {{ list.paginator.num_pages }} + </div> +</div> +{% endblock %} |