summaryrefslogtreecommitdiff
path: root/libretube-theme/templates/article_info_aside.html
diff options
context:
space:
mode:
Diffstat (limited to 'libretube-theme/templates/article_info_aside.html')
-rw-r--r--libretube-theme/templates/article_info_aside.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/libretube-theme/templates/article_info_aside.html b/libretube-theme/templates/article_info_aside.html
new file mode 100644
index 0000000..f0b7e14
--- /dev/null
+++ b/libretube-theme/templates/article_info_aside.html
@@ -0,0 +1,54 @@
+<!-- post footer -->
+<div class="card-content-footer">
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#calendar" />
+ </svg>
+ </span>
+ {% set año = article.date|strftime('%Y') %}
+ {% set mes = article.date|strftime('%m') %}
+ {% set nombre_mes = article.date|strftime('%B') %}
+ <time class="entry-date published"
+ datetime="{{ article.date.isoformat() }}">
+ <small>
+ {{ article.date|strftime('%a %-d') }}
+ <a class="text-info" href="{{ SITEURL }}/archives/{{ año }}/{{ mes }}/"
+ title="{% trans %}Artículos de {{ nombre_mes }} de {{ año }}{% endtrans %}">
+ {{ nombre_mes }}
+ </a>
+ <a class="text-secondary" href="{{ SITEURL }}/archives/{{ año }}/"
+ title="{% trans %}Artículos de {{ año }}{% endtrans %}">{{ año }}
+ </a>
+ </small>
+ </time>
+
+ {% if not HIDE_AUTHORS and article.authors %}
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#user" />
+ </svg>
+ </span>
+ {% for author in article.authors %}
+ <small>
+ <a class="text-white" href="{{ SITEURL }}/{{ author.url }}"
+ title="{% trans %}Autor del artículo{% endtrans %}">{{ author }}</a>{% if not loop.last %}, {% endif %}
+ </small>
+ {% endfor %}
+ {% endif %}
+
+ {% import 'translations.html' as translations with context %}
+ {% if translations.translations_for(article) %}
+ <span class="soumaicon text-info">
+ <svg>
+ <use href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/svg/master.svg#translate" />
+ </svg>
+ </span>
+ <small>
+ {{ translations.translations_for(article) }}
+ </small>
+ {% else %}
+ {% endif %}
+
+</div>
+<!-- end of post footer -->
+<!-- /.post-info -->