aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 11:51:47 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 11:51:47 +0200
commit9df5016226fbcf72e135df22fb54ed54c4c5f29a (patch)
treeb1e9b2a7fc9f67cde5f70e98899bfbb092d14244 /pyaggr3g470r/templates
parentUpdated about page. Readed article title are using h3 headers and unreaded h1... (diff)
downloadnewspipe-9df5016226fbcf72e135df22fb54ed54c4c5f29a.tar.gz
newspipe-9df5016226fbcf72e135df22fb54ed54c4c5f29a.tar.bz2
newspipe-9df5016226fbcf72e135df22fb54ed54c4c5f29a.zip
First prototype for the /article page.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/article.html12
-rw-r--r--pyaggr3g470r/templates/home.html6
2 files changed, 15 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html
new file mode 100644
index 00000000..9c4fe287
--- /dev/null
+++ b/pyaggr3g470r/templates/article.html
@@ -0,0 +1,12 @@
+{% extends "layout.html" %}
+{% block content %}
+<div class="container">
+ <div class="jumbotron">
+ <h1>{{ article.title }}</h1>
+ <h6>{{ article.date }}</h6>
+ </div>
+ <div class="jumbotron">
+ {{ article.content|safe }}
+ </div>
+</div><!-- /.container -->
+{% endblock %} \ No newline at end of file
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 76104e68..b6e24a50 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -11,19 +11,19 @@
<div class="row">
<div class="col-xs-6 col-sm-4 col-md-4">
{% if feed.articles[number].readed %}<h3>{% else %}<h1>{% endif %}
- {{ feed.articles[number].title }}<h2>
+ <a href="/article/{{ feed.articles[number].id }}">{{ feed.articles[number].title }}</a><h2>
{% if feed.articles[number].readed %}</h3>{% else %}</h1>{% endif %}
<h6>{{ feed.articles[number].date }}</h6>
</div>
<div class="col-xs-6 col-sm-4 col-md-4">
{% if feed.articles[number+1].readed %}<h3>{% else %}<h1>{% endif %}
- {{ feed.articles[number+1].title }}<h2>
+ <a href="/article/{{ feed.articles[number+1].id }}">{{ feed.articles[number+1].title }}</a><h2>
{% if feed.articles[number+1].readed %}</h3>{% else %}</h1>{% endif %}
<h6>{{ feed.articles[number+1].date }}</h6>
</div>
<div class="col-xs-6 col-sm-4 col-md-4">
{% if feed.articles[number+2].readed %}<h3>{% else %}<h1>{% endif %}
- {{ feed.articles[number+2].title }}<h2>
+ <a href="/article/{{ feed.articles[number+2].id }}">{{ feed.articles[number+2].title }}</a><h2>
{% if feed.articles[number+2].readed %}</h3>{% else %}</h1>{% endif %}
<h6>{{ feed.articles[number+2].date }}</h6>
</div>
bgstack15