LEFT | RIGHT |
1 {% extends theme("layout.html") %} | 1 {% extends theme("layout.html") %} |
| 2 {% import "utils.html" as utils with context %} |
2 {% import theme("itemviews.html") as itemviews with context %} | 3 {% import theme("itemviews.html") as itemviews with context %} |
3 | 4 |
4 {% set title = _("Metadata of '%(item_name)s'", item_name=item_name) %} | 5 {% set title = _("Metadata of '%(item_name)s'", item_name=item_name) %} |
5 | 6 |
6 {% block rev_navigation %} | 7 {% block rev_navigation %} |
7 {{ rev_navigation(view='frontend.show_item_meta') }} | 8 {{ rev_navigation(view='frontend.show_item_meta') }} |
8 {% endblock %} | 9 {% endblock %} |
9 | 10 |
10 {% block views %} | 11 {% block views %} |
11 {{ itemviews }} | 12 {{ itemviews }} |
12 {% endblock %} | 13 {% endblock %} |
13 | 14 |
14 {% block content %} | 15 {% block content %} |
15 <h2> | 16 <h2> |
16 {{ title }} | 17 {{ title }} |
17 {% if show_revision %}({{ _("Revision") }} {{ rev.revid | shorten_id }}){% e
ndif %} | 18 {% if show_revision %}({{ _("Revision") }} {{ rev.revid | shorten_id }}){% e
ndif %} |
18 </h2> | 19 </h2> |
19 {% if meta_rendered %} | 20 {% if meta %} |
20 <div id="moin-content-meta"> | 21 <div id="moin-content-meta"> |
21 <ul class="list-group"> | 22 {{ utils.meta_info(meta) }} |
22 <li class="list-group-item">Content Type : {{ meta_rendered['contenttype
']|shorten_ctype }} [{{ meta_rendered['contenttype'] }}]</li> | |
23 <li class="list-group-item">Item Type : {{ meta_rendered['itemtype'] }}<
/li> | |
24 <li class="list-group-item">Item ID : {{ meta_rendered['itemid'] }}</li> | |
25 <li class="list-group-item">Tags : | |
26 {% if meta_rendered['tags'] %} | |
27 {% for item in meta_rendered['tags'] %} | |
28 {{ item }} | |
29 {% endfor %} | |
30 {% else %} | |
31 (None) | |
32 {% endif %} | |
33 </li> | |
34 <li class="list-group-item">Wiki Name : {{ meta_rendered['wikiname'] }}<
/li> | |
35 <li class="list-group-item">Item Links : | |
36 {% if meta_rendered['itemlinks'] %} | |
37 {% for item in meta_rendered['itemlinks'] %} | |
38 <a href="{{ url_for('frontend.show_item', item_name=item) }}"> | |
39 {{ item }} | |
40 </a>, | |
41 {% endfor %} | |
42 {% else %} | |
43 (None) | |
44 {% endif %} | |
45 </li> | |
46 <li class="list-group-item">Namespace : '{{ meta_rendered['namespace'] }
}'</li> | |
47 <li class="list-group-item">Summary : '{{ meta_rendered['summary'] }}'</
li> | |
48 <li class="list-group-item">Item Transclusions : | |
49 {% if meta_rendered['itemtransclusions'] %} | |
50 {% for item in meta_rendered['itemtransclusions'] %} | |
51 <a href="{{ url_for('frontend.show_item', item_name=item) }}"> | |
52 {{ item }} | |
53 </a>, | |
54 {% endfor %} | |
55 {% else %} | |
56 (None) | |
57 {% endif %} | |
58 </li> | |
59 <li class="list-group-item">External Links : | |
60 {% if meta_rendered['externallinks'] %} | |
61 {% for item in meta_rendered['extrenallinks'] %} | |
62 {{ item }} | |
63 {% endfor %} | |
64 {% else %} | |
65 (None) | |
66 {% endif %} | |
67 </li> | |
68 </div> | 23 </div> |
69 {% endif %} | 24 {% endif %} |
70 {% endblock %} | 25 {% endblock %} |
LEFT | RIGHT |