Mercurial > libervia-templates
annotate sat_templates/default/components/common.html @ 147:33c7ce833d3f
install: setup.py fix + moved "default" dir in a "sat_templates" dir:
the merge request at https://bugs.goffi.org/mr/view/3 was a good basis, but not fully working ("default" dir was removed), this patch fixes it, and do some improvments:
- moved "default" in "sat_templates" dir, which correspond to the python module, so it can be found easily from python
- added VERSION, and mercurial hash detection, in the same way as for Cagou and backend
- slight modification of classifiers
- replaces tabs coming from MR by spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 02 Jun 2018 17:25:43 +0200 |
parents | default/components/common.html@909361c96a58 |
children | e5ec33c4a8a8 |
rev | line source |
---|---|
66 | 1 {# menu labels, map from menu names to labels #} |
2 {% set ml = { | |
76
ead4db120515
components/common: profile is now always set, so we just test if it evaluate to True to know if a user is logged
Goffi <goffi@goffi.org>
parents:
66
diff
changeset
|
3 'login': _('Session') if profile else _('Log in'), |
131 | 4 'blog': _('Blog'), |
119
b085ede4d9af
forum/overview: forum template first draft.
Goffi <goffi@goffi.org>
parents:
87
diff
changeset
|
5 'forums': _('Forums'), |
138 | 6 'merge-requests': _('Merge requests'), |
66 | 7 'merge-request_new': _('Create new merge request'), |
135 | 8 'tickets': _('Tickets'), |
139
909361c96a58
components (common/menu): fixed "List tickets" sub menu
Goffi <goffi@goffi.org>
parents:
138
diff
changeset
|
9 'tickets_list': _('List tickets'), |
66 | 10 'ticket_new': _('Create new ticket'), |
85
05b500bd6235
chat: chat implementation, first draft:
Goffi <goffi@goffi.org>
parents:
76
diff
changeset
|
11 'chat': _('Chat'), |
130 | 12 'files': _('Files sharing'), |
13 'photos': _('Photos albums'), | |
87
3ee775795cd0
app: simple page so show a link to heavy web application (i.e. pyjamas version)
Goffi <goffi@goffi.org>
parents:
86
diff
changeset
|
14 'app': _('Application'), |
66 | 15 } %} |
16 | |
17 {% macro menu(menus, class='') %} | |
18 <nav class="menu {{class}}"> | |
19 <ul> | |
20 {% for name,url in menus %} | |
86
92ca411ee635
chat: new chat_select page to select a jid to talk to + improved button style
Goffi <goffi@goffi.org>
parents:
85
diff
changeset
|
21 <li><a class="menu_item {{name}}" {{ {'href': url}|xmlattr }}>{{ml[name]}}</a></li> |
66 | 22 {% endfor %} |
23 </ul> | |
24 </nav> | |
25 {% endmacro %} |