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.html46
-rw-r--r--ryuslash/aggregator/templates/aggregator/posts.html43
2 files changed, 89 insertions, 0 deletions
diff --git a/ryuslash/aggregator/templates/aggregator/base.html b/ryuslash/aggregator/templates/aggregator/base.html
new file mode 100644
index 0000000..215ec7e
--- /dev/null
+++ b/ryuslash/aggregator/templates/aggregator/base.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <title>ryuslash</title>
+ <link href="/static/main.css" rel="stylesheet" />
+ <link rel="shortcut icon" href="/static/favicon.png" />
+ {% block head %}{% endblock %}
+ </head>
+ <body>
+
+ <header>
+ <img src="/static/logo.png" alt="ryuslash.org" title="ryuslash.org"/>
+ <h1>
+ <a href="http://ryuslash.org">
+ <span id="logo-blue">ryu</span><span id="logo-orange">slash</span>
+ </a>
+ </h1>
+
+ <nav>
+ <ul>
+ {% if category == 'post' %}
+ <li class="selected top">
+ {% else %}
+ <li class="top">
+ {% endif %}
+ <a href="/">posts</a>
+ </li>
+
+ {% if category == 'activity' %}
+ <li class="selected bottom">
+ {% else %}
+ <li class="bottom">
+ {% endif %}
+ <a href="/activity/">activities</a>
+ </li>
+ </ul>
+ </nav>
+ </header>
+
+ <section class="content">
+ {% block content %}{% endblock %}
+ </div>
+ </body>
+</html>
diff --git a/ryuslash/aggregator/templates/aggregator/posts.html b/ryuslash/aggregator/templates/aggregator/posts.html
new file mode 100644
index 0000000..b70cb0d
--- /dev/null
+++ b/ryuslash/aggregator/templates/aggregator/posts.html
@@ -0,0 +1,43 @@
+{% extends "aggregator/base.html" %}
+{% load posts_extras %}
+
+{% block head %}
+<link href="/feeds/posts/" rel="alternate" type="application/rss+xml"
+ title="All posts" />
+{% endblock %}
+
+{% block content %}
+ {% for post in list.object_list %}
+ <article class="post">
+ (<span class="keyword">defpost</span>
+ <a href="{{ post.link }}"
+ class="variable-name">{{ post.title|slugify|nameless|truncate:48 }}</a>
+ (<img src="/static/images/logos/{{ post.icon }}" width="16"
+ height="16"/>)
+ <div class="doc">
+ {% autoescape off %}{{ post.content }}{% endautoescape %}
+ </div>
+ <span class="string">&quot;{{ post.updated }}&quot;</span>)
+ </article>
+ {% endfor %}
+
+<div id="pager">
+ {% if list.has_previous %}
+ <span class="nav-prev">
+ <a href="/{{ category }}/{{ list.previous_page_number }}/"
+ id="previous">[previous]</a>
+ </span>
+ {% endif %}
+
+ <span id="current">
+ {{ list.number }} / {{ list.paginator.num_pages }}
+ </span>
+
+ {% if list.has_next %}
+ <span class="nav-next">
+ <a href="/{{ category }}/{{ list.next_page_number }}/"
+ id="next">[next]</a>
+ </span>
+ {% endif %}
+</div>
+{% endblock %}