digitalglarus: templates. blog_meta inline metadata.

Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
rascencio 2015-09-26 13:07:52 -06:00
parent 6bc4d5a6a2
commit c10fea0169

View file

@ -1,26 +1,23 @@
{% load i18n thumbnail %} {% load i18n thumbnail %}
<ul class="post-detail"> <ul class="post-detail list-inline">
{% if post.author %} {% if post.author %}
<li> <li>
{% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{% if post.author.get_full_name %}{{ post.author.get_full_name }}{% else %}{{ post.author }}{% endif %}</a> {% trans "by" %} <a href="{% url 'djangocms_blog:posts-author' post.author.get_username %}">{% if post.author.get_full_name %}{{ post.author.get_full_name }}{% else %}{{ post.author }}{% endif %}</a>
</li> </li>
{% endif %} {% endif %}
<li>
{{ post.date_published|date:"DATE_FORMAT" }}
</li>
</ul> </ul>
<ul class="post-detail tags"> <ul class="post-detail tags list-inline">
{% if post.categories.exists %} {% if post.categories.exists %}
{% for category in post.categories.all %} {% for category in post.categories.all %}
{% if category.slug %} {% if category.slug %}
<li class="category_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-category' category=category.slug %}" class="blog-categories-{{ category.count }}">{{ category.name }}</a>{% if not forloop.last %}, {% endif %}</li> <li class="category_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-category' category=category.slug %}" class="blog-categories-{{ category.count }}">{{ category.name }}</a>{% if not forloop.last %}, {% endif %}</li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if post.tags.exists %} {% if post.tags.exists %}
{% for tag in post.tags.all %} {% for tag in post.tags.all %}
<li class="tag_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-tagged' tag=tag.slug %}" class="blog-tag blog-tag-{{ tag.count }}">{{ tag.name }}</a>{% if not forloop.last %}, {% endif %}</li> <li class="tag_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-tagged' tag=tag.slug %}" class="blog-tag blog-tag-{{ tag.count }}">{{ tag.name }}</a>{% if not forloop.last %}, {% endif %}</li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</ul> </ul>