Changeset View
Changeset View
Standalone View
Standalone View
templates/module.html.twig
- This file was added.
1 | {% extends 'base.html.twig' %} | ||||
---|---|---|---|---|---|
2 | | ||||
3 | {% trans_default_domain 'app' %} | ||||
4 | | ||||
5 | {% block body %} | ||||
6 | <div class="card mt-3 mb-4"> | ||||
7 | <div class="card-header"> | ||||
8 | Module: {{ module|trans({}, 'modules') }} | ||||
9 | </div> | ||||
10 | <div class="row m-0"> | ||||
11 | {% for category,submodules in categories %} | ||||
12 | <div class="col-md-6 list-group-item"> | ||||
13 | {{ category|trans({}, 'modules') }} | ||||
14 | {% if submodules.branch is defined %} | ||||
15 | {% for branch in submodules.branch %} | ||||
16 | <div> | ||||
17 | <a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ category }}/index.html">{{ branch_descriptions[branch] }}</a> | ||||
18 | (<a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ category }}/{{ category }}.pdf">pdf</a>) | ||||
19 | </div> | ||||
20 | {% endfor %} | ||||
21 | {% else %} | ||||
22 | {% for submodule,branchs in submodules %} | ||||
23 | {{ submodule|trans({}, 'modules') }} | ||||
24 | {% for branch in branchs.branch %} | ||||
25 | <div> | ||||
26 | <a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ category }}/{{ submodule }}/index.html">{{ branch_descriptions[branch] }}</a> | ||||
27 | (<a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ category }}/{{ submodule }}/{{ submodule }}.pdf">pdf</a>) | ||||
28 | | ||||
29 | </div> | ||||
30 | {% endfor %} | ||||
31 | {% endfor %} | ||||
32 | {% endif %} | ||||
33 | </div> | ||||
34 | {% endfor %} | ||||
35 | </div> | ||||
36 | </div> | ||||
37 | {% for namespace, list in subsubmodules %} | ||||
38 | <div class="card mb-4"> | ||||
39 | <div class="card-header"> | ||||
40 | {{ namespace|trans({}, 'modules') }} | ||||
41 | </div> | ||||
42 | <div class="row m-0"> | ||||
43 | {% for name, branchs in list %} | ||||
44 | <div class="list-group-item col-md-6"> | ||||
45 | {{ name|trans({}, 'modules') }} | ||||
46 | {% for branch in branchs.branch %} | ||||
47 | <div> | ||||
48 | <a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ namespace }}/{{ name }}/index.html"> | ||||
49 | {{ branch_descriptions[branch] }} | ||||
50 | </a> | ||||
51 | (<a href="/{{ branch }}/{{ lang }}/{{ module }}/{{ namespace }}/{{ name }}/{{ name }}.pdf">pdf</a>) | ||||
52 | </div> | ||||
53 | {% endfor %} | ||||
54 | </div> | ||||
55 | {% endfor %} | ||||
56 | </div> | ||||
57 | </div> | ||||
58 | {% endfor %} | ||||
59 | {% endblock %} |