Merge branch 'master' into master

This commit is contained in:
Madeorsk
2018-06-17 22:22:34 +02:00
committed by GitHub
12 changed files with 42 additions and 11 deletions
+2 -3
View File
@@ -9,7 +9,6 @@
<form method="post">
<label for="title">{{ "Title" | _ }}</label>
<input type="text" id="title" name="title" />
<input type="submit" value="{{ "Create blog"}}" />
<input type="submit" value="{{ "Create blog" | _ }}"/>
</form>
| _ {% endblock content %}
{% endblock content %}
+8 -1
View File
@@ -10,7 +10,14 @@
<p>{{ article.post.content | striptags | truncate(length=200) }}</p>
</main>
<p class="author">
By <a href="/@/{{ article.author.fqn }}/">{{ name }}</a> ⋅ {{ article.date | date(format="%B %e") }}
{{ "By {{ link_1 }}{{ link_2 }}{{ link_3 }}{{ name }}{{ link_4 }}" | _(
link_1='<a href="/@/',
link_2=article.author.fqn,
link_3='/">',
name=name,
link_4="</a>")
}}
⋅ {{ article.date | date(format="%B %e") }}
</p>
</div>
{% endmacro post_card %}
+1 -1
View File
@@ -9,7 +9,7 @@
<div class="list">
{% for notification in notifications %}
<div class="card">
<h3><a href="{% if notification.link %}{{ notification.link }}/{% else %}#{% endif %}">{{ notification.title }}</h3>
<h3><a href="{% if notification.link %}{{ notification.link }}/{% else %}#{% endif %}">{{ notification.title | _(data=notification.data) }}</h3>
{% if notification.content %}
<p>{{ notification.content }}</p>
{% endif %}