Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
55e811ba
Commit
55e811ba
authored
Dec 12, 2019
by
gijs
Browse files
Tags & produsers
parent
888dc99f
Changes
5
Hide whitespace changes
Inline
Side-by-side
generator/templates/event-with-programme-items.html
View file @
55e811ba
...
...
@@ -50,11 +50,7 @@
{% for item in events %}
<li
id=
"{{ item.key }}"
>
<h2>
{% if item.time.value %}{{ item.time }}{% endif %} {{ item }}
</h2>
<p
class=
"event-infos"
>
{% for produser in item.produser|link_target_iterator %}
<a
href=
"{{ produser.link }}"
class=
"produser"
>
{{ produser }}
</a>
{% endfor %}
</p>
{% with item=item %}{% include "snippets/metadata.html" %}{% endwith %}
{% if item.summary %}
{{ item.summary }}
{% else %}
...
...
@@ -68,7 +64,6 @@
{% endfor %}
</ul>
{% endif %}
{% with item=item %}{% include "snippets/metadata.html" %}{% endwith %}
</li>
{% endfor %}
{% endfor %}
...
...
generator/templates/produser.html
View file @
55e811ba
...
...
@@ -15,6 +15,11 @@
<h2>
Trajectory
</h2>
{{ trajectory.content }}
</section>
{% with trajectory.tags|without_inline_links as tags %}
{% if tags %}
{% include "snippets/tags.html" %}
{% endif %}
{% endwith %}
{% endfor %}
{% endif %}
...
...
generator/templates/snippets/metadata.html
View file @
55e811ba
{% load generator_utils %}
{% with item.tags|without_inline_links as tags %}
{% if tags %}
<section
class=
"item--metadata item--tags"
>
<h4>
Tags
</h4>
{% include "snippets/tags.html" %}
</section>
{% endif %}
{% endwith %}
{% combine_linkfields item.produser item.participant as produser_combined %}
{% if item.tags and item.tags|without_inline_links %}
<section
class=
"item--metadata item--tags"
>
<h4>
Tags
</h4>
<ul
class=
"inlinelist"
>
{% for tag in item.tags|without_inline_links|link_target_iterator %}
<li><a
href=
"{{ tag.link }}"
class=
"tag"
>
{{ tag }}
</a></li>
{% endfor %}
</ul>
</section>
{% endif %}
{% if produser_combined %}
<section
class=
"item--produsers item--metadata"
>
<h4>
Produsers
</h4>
<ul
class=
"inlinelist"
>
{% for produser in produser_combined|link_target_iterator %}
<li><a
class=
"produser"
href=
"{{ produser.link }}"
>
{{ produser }}
</a></li>
{% endfor %}
</section>
<section
class=
"item--produsers item--metadata"
>
<h4>
Produsers
</h4>
{% with produsers=produser_combined %}
{% include "snippets/produsers.html" %}
{% endwith %}
</section>
{% endif %}
\ No newline at end of file
generator/templates/snippets/produsers.html
0 → 100644
View file @
55e811ba
{% load generator_utils %}
<ul
class=
"inlinelist"
>
{% for produser in produsers|link_target_iterator %}
<li><a
class=
"produser"
href=
"{{ produser.link }}"
>
{{ produser }}
</a></li>
{% endfor %}
</ul>
\ No newline at end of file
generator/templates/snippets/tags.html
0 → 100644
View file @
55e811ba
{% load generator_utils %}
<ul
class=
"inlinelist"
>
{% for tag in tags|link_target_iterator %}
<li><a
href=
"{{ tag.link }}"
class=
"tag"
>
{{ tag }}
</a></li>
{% endfor %}
</ul>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment