Add post template to tracker
- Author
- Maarten 'Vngngdn' Vangeneugden
- Date
- Oct. 19, 2017, 6:48 a.m.
- Hash
- d793d29f932d6f322f99fb695558ffec881f5dc9
- Parent
- c9288536c0a0c31e9f9c8fc39522b5696f7fb230
- Modified file
- templates/blog/post.html
templates/blog/post.html ¶
41 additions and 0 deletions.
View changes Hide changes
+ |
1 |
{% load i18n %} |
+ |
2 |
|
+ |
3 |
{% block title %}{{ post-title }} | Blog{% endblock title %} |
+ |
4 |
|
+ |
5 |
{% block description %}{{ post-description }}{% endblock description %} |
+ |
6 |
|
+ |
7 |
{% block main %} |
+ |
8 |
{% with color="brown" accent_color="yellow" %} |
+ |
9 |
<div class="section {{ color }} z-depth-3"> |
+ |
10 |
<div class="container"> |
+ |
11 |
<div class="white-text" style="font-family:serif;"> |
+ |
12 |
{{ blog-post }} |
+ |
13 |
</div> |
+ |
14 |
</div> |
+ |
15 |
</div> |
+ |
16 |
|
+ |
17 |
{% get_language_info for "en" as lang %} |
+ |
18 |
<a href="{% url 'blog-post' 'en' post-url %}"class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="{% trans 'Share the English version>{{lang.name_translated}}</a> |
+ |
19 |
|
+ |
20 |
<a href="{% url 'blog-post' l1nguage post %}"class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="{% trans ">Hover me!</a> |
+ |
21 |
<a href="{% url 'blog-post' l1nguage post %}"class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="{% trans ">Hover me!</a> |
+ |
22 |
<a href="{% url 'blog-post' l1nguage post %}"class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="{% trans ">Hover me!</a> |
+ |
23 |
<a href="{% url 'blog-post' post-url %}" class="btn tooltipped" data-position="bottom" data-delay="50" data-tooltip="{% trans 'Multilingual link. Links to the version in the viewer's preferred language.' %}">🏳️🌈 {% trans "All possible languages" %}</a> |
+ |
24 |
|
+ |
25 |
|
+ |
26 |
<div class="container"> |
+ |
27 |
{% for title, date, description, link in post_links %} |
+ |
28 |
<h2 class="{{ color}}-text">{{ title }}</h2> |
+ |
29 |
{# FIXME: Date is in all languages of the same format. Fix for each language #} |
+ |
30 |
<span class="grey-text">{{ date|date:"l j F Y" }}</span> |
+ |
31 |
{#<p class="hide-on-small-only">{{ description }}</p>#} |
+ |
32 |
<p class="hide-on-small-only">{% lorem %}</p> |
+ |
33 |
<a class="btn {{accent_color}} accent-3" href="{{link}}"> |
+ |
34 |
{% trans "Read on"%} |
+ |
35 |
</a> |
+ |
36 |
<hr /> |
+ |
37 |
{% endfor %} |
+ |
38 |
</div> |
+ |
39 |
{% endwith %} |
+ |
40 |
{% endblock main %} |
+ |
41 |