annotate MoinMoin/themes/basic/templates/show.html @ 2944:afe523052a7f

rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
author RogerHaase <haaserd@gmail.com>
date Sun, 10 May 2015 13:51:39 -0700
parents 5a49eeb1f307
children
rev   line source
2320
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
1 {% extends theme("layout.html") %}
2849
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
2
2327
cc97af25b8e2 Fixes traceback 'utils' undefined in the template show.html
sharky93 <rishabhr123@gmail.com>
parents: 2325
diff changeset
3 {% import "utils.html" as utils %}
2346
eb3c2da11ba1 separate item views as the itemviews template (basic theme)
sharky93 <rishabhr123@gmail.com>
parents: 2327
diff changeset
4 {% import theme("itemviews.html") as itemviews with context %}
2849
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
5 {% import "snippets.html" as snippets with context %}
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
6
2325
e3447f9e98ee Fixes missing itemviews in local panel
sharky93 <rishabhr123@gmail.com>
parents: 2324
diff changeset
7 {% set exists = storage.has_item(item_name) %}
2849
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
8 {% set footer_meta = snippets.footer_meta() %}
2320
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
9
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
10 {% block views %}
2346
eb3c2da11ba1 separate item views as the itemviews template (basic theme)
sharky93 <rishabhr123@gmail.com>
parents: 2327
diff changeset
11 {{ itemviews }}
2320
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
12 {% endblock %}
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
13
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
14 {% block content %}
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
15
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
16 {% block content_data %}
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
17 {% if data_rendered %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
18 <div id="moin-content-data">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
19 {{ data_rendered }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
20 </div>
2320
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
21 {% endif %}
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
22 {% endblock %}
35c88bb5613a adds tabs for itemviews, content display
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
23
2321
aeda8cc88447 adds structure for local panel
sharky93 <rishabhr123@gmail.com>
parents: 2320
diff changeset
24 {% endblock %}
aeda8cc88447 adds structure for local panel
sharky93 <rishabhr123@gmail.com>
parents: 2320
diff changeset
25
2322
9093480c2020 adds useractions
sharky93 <rishabhr123@gmail.com>
parents: 2321
diff changeset
26 {% block user_actions %}
2453
303fed8f1f56 adds translatable strings, cleanup of item_navigation block from show.html
sharky93 <rishabhr123@gmail.com>
parents: 2451
diff changeset
27 {{ local_panel_main(user_actions) }}
2323
3831fd0c8fa0 adds site actions to localpanel
sharky93 <rishabhr123@gmail.com>
parents: 2322
diff changeset
28 {% endblock %}
3831fd0c8fa0 adds site actions to localpanel
sharky93 <rishabhr123@gmail.com>
parents: 2322
diff changeset
29
2324
a3c2a9f3a009 adds item actions to localpanel
sharky93 <rishabhr123@gmail.com>
parents: 2323
diff changeset
30 {% block item_actions %}
2453
303fed8f1f56 adds translatable strings, cleanup of item_navigation block from show.html
sharky93 <rishabhr123@gmail.com>
parents: 2451
diff changeset
31 {{ local_panel_main(item_actions) }}
2324
a3c2a9f3a009 adds item actions to localpanel
sharky93 <rishabhr123@gmail.com>
parents: 2323
diff changeset
32 {% endblock %}
a3c2a9f3a009 adds item actions to localpanel
sharky93 <rishabhr123@gmail.com>
parents: 2323
diff changeset
33
2321
aeda8cc88447 adds structure for local panel
sharky93 <rishabhr123@gmail.com>
parents: 2320
diff changeset
34 {% block local_panel %}
2842
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
35
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
36 <div class="moin-list-heading">
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
37 <div class="list-group-item-heading">
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
38 {{ _("View Options") }}
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
39 <a class="moin-showhide moin-viewoptions" href="#">
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
40 <i class="fa fa-lg fa-caret-right"></i>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
41 </a>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
42 </div>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
43 <div id="moin-view-options" class="hidden">
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
44 {# TODO: review themes/init.py and config/default.py to improve support #}
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
45 {{ local_panel_main(item_navigation) }} {# Discussion #}
2844
4560747c4506 if item view has no comments or transclusions, hide buttons on basic theme
RogerHaase <haaserd@gmail.com>
parents: 2842
diff changeset
46 <div class="moin-toggle-comments-button list-group-item">
4560747c4506 if item view has no comments or transclusions, hide buttons on basic theme
RogerHaase <haaserd@gmail.com>
parents: 2842
diff changeset
47 <a class="moin-toggle-comments-tooltip" href="#" title="Hide comments">
2842
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
48 <i class="fa fa-comment-o"></i>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
49 Comments
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
50 </a>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
51 </div>
2844
4560747c4506 if item view has no comments or transclusions, hide buttons on basic theme
RogerHaase <haaserd@gmail.com>
parents: 2842
diff changeset
52 <div class="moin-transclusions-button list-group-item">
2842
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
53 <a class="moin-transclusions-tooltip" href="#" title="Show transclusions">
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
54 <i class="fa fa-paste"></i>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
55 Transclusions
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
56 </a>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
57 </div>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
58 </div>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
59 </div>
60d98f1d7f5e move basic theme Supplementation > Discussion to View Options > Discussion; remove Supplementation
RogerHaase <haaserd@gmail.com>
parents: 2840
diff changeset
60
2837
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
61 {% if user_actions %}
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
62 <div class="moin-list-heading">
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
63 <div class="list-group-item-heading">
2603
085033abcf39 Fixes issue #73 in sharky's repo - Sidebar too large in basic theme. Reduced the padding of the divs in the sidebar from 10px to 5px and also made the User Actions, Item Actions and View Options expandable to make the sidebar smaller in normal case. User can click on '+' to expand or collapse the appropriate menu.
Ajitesh Gupta <ajgupta93@gmail.com>
parents: 2567
diff changeset
64 {{ _("User Actions") }}
2840
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
65 <a class="moin-showhide moin-useractions" href="#" >
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
66 <i class="fa fa-lg fa-caret-right"></i>
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
67 </a>
2603
085033abcf39 Fixes issue #73 in sharky's repo - Sidebar too large in basic theme. Reduced the padding of the divs in the sidebar from 10px to 5px and also made the User Actions, Item Actions and View Options expandable to make the sidebar smaller in normal case. User can click on '+' to expand or collapse the appropriate menu.
Ajitesh Gupta <ajgupta93@gmail.com>
parents: 2567
diff changeset
68 </div>
2839
73cad6a551be add moin- prefix to basic theme user-actions, view-options, and item-actions IDs
RogerHaase <haaserd@gmail.com>
parents: 2837
diff changeset
69 <div id="moin-user-actions" class="hidden">{{ self.user_actions() }}</div>
2837
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
70 </div>
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
71 {% endif %}
2447
3ea4fb4d4a6f finalised position for comments and transclusion toggles and their rendering
sharky93 <rishabhr123@gmail.com>
parents: 2443
diff changeset
72
2837
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
73 {% if item_actions %}
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
74 <div class="moin-list-heading">
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
75 <div class="list-group-item-heading">
2603
085033abcf39 Fixes issue #73 in sharky's repo - Sidebar too large in basic theme. Reduced the padding of the divs in the sidebar from 10px to 5px and also made the User Actions, Item Actions and View Options expandable to make the sidebar smaller in normal case. User can click on '+' to expand or collapse the appropriate menu.
Ajitesh Gupta <ajgupta93@gmail.com>
parents: 2567
diff changeset
76 {{ _("Item Actions") }}
2840
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
77 <a class="moin-showhide moin-itemactions" href="#" >
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
78 <i class="fa fa-lg fa-caret-right"></i>
9fd268defb04 replace basic theme sidebar [+] with font awesome carets
RogerHaase <haaserd@gmail.com>
parents: 2839
diff changeset
79 </a>
2603
085033abcf39 Fixes issue #73 in sharky's repo - Sidebar too large in basic theme. Reduced the padding of the divs in the sidebar from 10px to 5px and also made the User Actions, Item Actions and View Options expandable to make the sidebar smaller in normal case. User can click on '+' to expand or collapse the appropriate menu.
Ajitesh Gupta <ajgupta93@gmail.com>
parents: 2567
diff changeset
80 </div>
2839
73cad6a551be add moin- prefix to basic theme user-actions, view-options, and item-actions IDs
RogerHaase <haaserd@gmail.com>
parents: 2837
diff changeset
81 <div id="moin-item-actions" class="hidden">{{ self.item_actions() }}</div>
2837
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
82 </div>
03e10af41cad tweak basic sidebar styling; alignment, rounded corners
RogerHaase <haaserd@gmail.com>
parents: 2830
diff changeset
83 {% endif %}
2456
059b439bea9e fixes showing comment option from the user settings
sharky93 <rishabhr123@gmail.com>
parents: 2455
diff changeset
84 {% endblock %}
059b439bea9e fixes showing comment option from the user settings
sharky93 <rishabhr123@gmail.com>
parents: 2455
diff changeset
85
2849
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
86 {% block footer_meta %}
2851
5a49eeb1f307 add spaces to jinja2 expressions, add tests for missing spaces to coding_std.py
RogerHaase <haaserd@gmail.com>
parents: 2849
diff changeset
87 {{ footer_meta }}
2849
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
88 {% endblock %}
22796e5b5361 merge basic snippets.html into templates/snippets.html
RogerHaase <haaserd@gmail.com>
parents: 2844
diff changeset
89
2456
059b439bea9e fixes showing comment option from the user settings
sharky93 <rishabhr123@gmail.com>
parents: 2455
diff changeset
90 {% block options_for_javascript %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
91 {%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) -%}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
92 <br id="moin-edit-on-doubleclick" />
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
93 {%- endif %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
94 {%- if user.show_comments -%}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
95 <br id="moin-show-comments" />
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2603
diff changeset
96 {%- endif %}
2456
059b439bea9e fixes showing comment option from the user settings
sharky93 <rishabhr123@gmail.com>
parents: 2455
diff changeset
97 {% endblock %}