aboutsummaryrefslogtreecommitdiffstats
path: root/ryuslash/aggregator/templates/aggregator
diff options
context:
space:
mode:
Diffstat (limited to 'ryuslash/aggregator/templates/aggregator')
-rw-r--r--ryuslash/aggregator/templates/aggregator/base.html9
-rw-r--r--ryuslash/aggregator/templates/aggregator/posts.html13
2 files changed, 17 insertions, 5 deletions
diff --git a/ryuslash/aggregator/templates/aggregator/base.html b/ryuslash/aggregator/templates/aggregator/base.html
index 1b674aa..499e02a 100644
--- a/ryuslash/aggregator/templates/aggregator/base.html
+++ b/ryuslash/aggregator/templates/aggregator/base.html
@@ -16,13 +16,16 @@
<div class="container">
<img class="pull-left" src="/static/logo.png"
alt="ryuslash.org" title="ryuslash.org" />
- <a class="brand" href="http://ryuslash.org">ryuslash</a>
+ <a class="brand" href="{% url 'index' %}">ryuslash</a>
<ul class="nav pull-right">
+ <li {% if category == 'all' %}class="active"{%endif%}>
+ <a href="{% url 'index' %}">all</a>
+ </li>
<li {% if category == 'post' %}class="active"{% endif %}>
- <a href="/post/">posts</a>
+ <a href="{% url 'index' cat='post' %}">posts</a>
</li>
<li {% if category == 'activity' %}class="active"{% endif %}>
- <a href="/activity/">activities</a>
+ <a href="{% url 'index' cat='activity' %}">activities</a>
</li>
</ul>
</div>
diff --git a/ryuslash/aggregator/templates/aggregator/posts.html b/ryuslash/aggregator/templates/aggregator/posts.html
index 851a95e..0a97729 100644
--- a/ryuslash/aggregator/templates/aggregator/posts.html
+++ b/ryuslash/aggregator/templates/aggregator/posts.html
@@ -11,6 +11,15 @@
<div class="span3">
<img src="https://secure.gravatar.com/avatar/d3af11dc82b44c4f78517c2036271d5c?s=210" />
<br />
+ <br />
+ Feeds:
+ {% for feed in feeds %}
+ <a href="{{ feed.base_url }}" class="btn btn-block">
+ {{ feed.name }}
+ </a>
+ {% empty %}
+ <br />None...
+ {% endfor %}
</div>
<div class="span9">
{% for post in list.object_list %}
@@ -44,7 +53,7 @@
<ul>
{% if list.has_previous %}
<li>
- <a href="/{{ category }}/{{ list.previous_page_number }}/">
+ <a href="{% url 'index' cat=category page=list.previous_page_number %}">
Prev
</a>
</li>
@@ -54,7 +63,7 @@
{% if list.has_next %}
<li>
- <a href="/{{ category }}/{{ list.next_page_number }}">
+ <a href="{% url 'index' cat=category page=list.next_page_number %}">
Next
</a>
</li>