Mercurial > libervia-templates
annotate sat_templates/templates/default/input/navigation.html @ 165:9e8d9d754337
base/base.html: don't show menu if main_menu is defined but none or empty
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Sep 2018 19:49:15 +0200 |
parents | e9f0a4215e46 |
children | 178f55b825b7 |
rev | line source |
---|---|
115
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 {% macro prev_next(prev_label=_("newer"), next_label=_("older")) %} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 <nav class="prev_next_links"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 <ul> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 {% if newer_url is defined %} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 <li class="newer_items"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 <a href="{{newer_url}}"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 <img src="{{media_path}}icons/tango/actions/32/go-previous.png"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 {{prev_label}} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 </a> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 </li> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 {% endif %} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 {% if older_url is defined %} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 <li class="older_items"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 <a href="{{older_url}}"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 <img src="{{media_path}}icons/tango/actions/32/go-next.png"> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 {{next_label}} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 </a> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 </li> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 {% endif %} |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 </ul> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 </nav> |
5d9e2270ceb4
blog/articles, input/navigation: moved navigation template in a dedicated macro
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 {% endmacro %} |