summaryrefslogtreecommitdiff
path: root/libretube-theme/templates/period_archives.html
diff options
context:
space:
mode:
authorsrv <enmanuel.saravia.externo@pandero.com.pe>2025-04-28 17:11:28 -0500
committersrv <enmanuel.saravia.externo@pandero.com.pe>2025-04-28 17:11:28 -0500
commitf35a7b0e70032de2feec9f3bda09da44cf0e1073 (patch)
tree1e0e09581dd3707d0ceb93346452dd14451a8423 /libretube-theme/templates/period_archives.html
first commit
Diffstat (limited to 'libretube-theme/templates/period_archives.html')
-rw-r--r--libretube-theme/templates/period_archives.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/libretube-theme/templates/period_archives.html b/libretube-theme/templates/period_archives.html
new file mode 100644
index 0000000..3ff1ca2
--- /dev/null
+++ b/libretube-theme/templates/period_archives.html
@@ -0,0 +1,55 @@
+{% extends "base.html" %}
+
+{% block head %}
+ {% block title %}
+ {% set len_period = period|length %}
+ {%- if len_period == 1 -%}
+ <title>{{ _('Archivos de %(año)d', año=period[0]) }} - {{SITENAME}}</title>
+ {%- elif len_period == 2 -%}
+ <title>{{ _('Archivos de %(mes)s de %(año)d', año=period[0], mes=period[1]) }} - {{SITENAME}}</title>
+ {%- elif len_period == 3 -%}
+ <title>{{ _('Archivos del %(dia)d de %(mes)s de %(año)d', año=period[0], mes=period[1], dia=period[2]) }} - {{SITENAME}}</title>
+ {%- endif -%}
+ {% endblock %}
+ {{ super() }}
+{% endblock %}
+
+{% block menu_header %}{% endblock menu_header %}
+
+{% block content %}
+ <!-- title -->
+ <div class="row mt-10">
+ <div class="col-md-12 mx-auto text-justify">
+ <hr>
+ <h4 class="tab">
+ {% set len_period = period|length %}
+ {%- if len_period == 1 -%}
+ {{ _('Archivos de %(año)d', año=period[0]) }}
+ {%- elif len_period == 2 -%}
+ {{ _('Archivos de %(mes)s de %(año)d', año=period[0], mes=period[1]) }}
+ {%- elif len_period == 3 -%}
+ {{ _('Archivos del %(dia)d de %(mes)s de %(año)d', año=period[0], mes=period[1], dia=period[2]) }}
+ {%- endif -%}
+ </h4>
+ <hr>
+ </div>
+ </div>
+ <!-- title -->
+
+ <!-- Main -->
+ <div class="row">
+ <div class="col-md-9 mx-auto text-justify">
+ <!-- dinamic page content -->
+ <div>
+ <dl>
+ {% for article in dates %}
+ <dt>{{ article.date|strftime('%A %-d de %B de %Y a las %H:%M %z') }}</dt>
+ <dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
+ {% endfor %}
+ </dl>
+ </div>
+ <!-- End dinamic page content -->
+ </div>
+ </div>
+ <!-- End Main -->
+{% endblock %}