diff options
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/article.html | 12 | ||||
-rw-r--r-- | pyaggr3g470r/templates/home.html | 6 |
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> |