From fb3130b12b004e4bf0035c0bb6bf7a54a235c5a4 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Fri, 25 Dec 2020 22:15:36 +0100 Subject: [PATCH] Add
tag --- res/templates/index.html | 66 ++++++------ res/templates/song.html | 220 ++++++++++++++++++++------------------- 2 files changed, 145 insertions(+), 141 deletions(-) diff --git a/res/templates/index.html b/res/templates/index.html index 412cdc0..6614f38 100644 --- a/res/templates/index.html +++ b/res/templates/index.html @@ -1,35 +1,37 @@ - - {% include "head.html" with path="." only %} - - - - {% include "header.html" with path="." %} -

Índice

- - Las canciones sin acordes están marcadas en rojo. -
    - {% for category, songs in sorted_categories.items %} -

    {{ category|title }}

    - {% for song in songs %} - -
  1. - {{ song.number }}. - {{ song.name }} - {% if song.author %} por {{ song.author }} {% endif %} - {% if song.origin %} basada en {{ song.origin }} {% endif %} -
  2. -
    - {% endfor %} - {% endfor %} -
- {% include "footer.html" %} - + + {% include "head.html" with path="." only %} + + + +{% include "header.html" with path="." %} +
+

Índice

+ + Las canciones sin acordes están marcadas en rojo. +
    + {% for category, songs in sorted_categories.items %} +

    {{ category|title }}

    + {% for song in songs %} + +
  1. + {{ song.number }}. + {{ song.name }} + {% if song.author %} por {{ song.author }} {% endif %} + {% if song.origin %} basada en {{ song.origin }} {% endif %} +
  2. +
    + {% endfor %} + {% endfor %} +
+
+{% include "footer.html" %} + \ No newline at end of file diff --git a/res/templates/song.html b/res/templates/song.html index 712bc66..5907f50 100644 --- a/res/templates/song.html +++ b/res/templates/song.html @@ -1,112 +1,114 @@ - - {% include "head.html" with path=".." only %} - - - - - - {% include "header.html" with path=".." %} -
-

{{ song.name}}

- Categoría: {{ song.category|title }} - {% if song.author %} - por {{ song.author }} - {% endif %} - {% if song.origin %} - basada en: {{ song.origin }} - {% endif %} -

Ajustes

-
- - - - -
- {% if song.chorded %} -
- - - - - - - -
- {% endif %} - {% if song.capo != 0 %} -
- Tono original: Cejilla {{ song.capo }} - -
- {% endif %} -

Canción

-
- {% for verse in song.verses %} -
- {% for line in verse.lines %} - {% spaceless %} - {% for chord, lyric in line.zipped_arr %} - - - - - - - -
- {% if chord.class %} - - {% endif %} - {% for c in chord.chord.items %} - {% if c.chord %} - {{ c.text|safe }} - {% else %} - {{ c.text|safe }} - {% endif %} - {% endfor %} -
- {% if 'rowspan' not in chord %} - {{ lyric|safe }} - {% endif %} -
- {% endfor %} - {% if not forloop.last %}
{% endif %} - {% endspaceless %} - {% endfor %} -
- {% endfor %} -
- {% for audio in audios %} - {% if forloop.first %} -

Audios

- {% endif %} -
- Audio del {{ audio.date_text }} Descargar - -
- {% endfor %} - Ver archivo original (LaTeX) - Índice - Categoría: {{ song.category|title }} -
- {% include "footer.html" %} - + + {% include "head.html" with path=".." only %} + + + + + +{% include "header.html" with path=".." %} +
+
+

{{ song.name}}

+ Categoría: {{ song.category|title }} + {% if song.author %} + por {{ song.author }} + {% endif %} + {% if song.origin %} + basada en: {{ song.origin }} + {% endif %} +

Ajustes

+
+ + + + +
+ {% if song.chorded %} +
+ + + + + + + +
+ {% endif %} + {% if song.capo != 0 %} +
+ Tono original: Cejilla {{ song.capo }} + +
+ {% endif %} +

Canción

+
+ {% for verse in song.verses %} +
+ {% for line in verse.lines %} + {% spaceless %} + {% for chord, lyric in line.zipped_arr %} + + + + + + + +
+ {% if chord.class %} + + {% endif %} + {% for c in chord.chord.items %} + {% if c.chord %} + {{ c.text|safe }} + {% else %} + {{ c.text|safe }} + {% endif %} + {% endfor %} +
+ {% if 'rowspan' not in chord %} + {{ lyric|safe }} + {% endif %} +
+ {% endfor %} + {% if not forloop.last %}
{% endif %} + {% endspaceless %} + {% endfor %} +
+ {% endfor %} +
+ {% for audio in audios %} + {% if forloop.first %} +

Audios

+ {% endif %} +
+ Audio del {{ audio.date_text }} Descargar + +
+ {% endfor %} + Ver archivo original (LaTeX) + Índice + Categoría: {{ song.category|title }} +
+
+{% include "footer.html" %} +