comparison sat_templates/templates/default/base/base.html @ 190:cda2aad3eed0

base: "links" template variable can now be used: if "links" is present in template data, it must be a list of dictionaries, the dictionaries will be used as attributes for the "<link>" elements in the header.
author Goffi <goffi@goffi.org>
date Fri, 26 Apr 2019 08:44:38 +0200
parents 240bbac435f4
children a1fa6744c78e
comparison
equal deleted inserted replaced
189:e5fdd7e13764 190:cda2aad3eed0
34 {% for css_file in css_files_noscript %} 34 {% for css_file in css_files_noscript %}
35 <link rel='stylesheet' type="text/css" href='{{css_file}}'> 35 <link rel='stylesheet' type="text/css" href='{{css_file}}'>
36 {% endfor %} 36 {% endfor %}
37 </noscript> 37 </noscript>
38 {% endif %} 38 {% endif %}
39 {% endif %}
40
41 {% if links is defined %}
42 {% for link_data in links %}
43 <link{{link_data|xmlattr}}>
44 {% endfor %}
39 {% endif %} 45 {% endif %}
40 46
41 {% if xmpp_uri is defined %} 47 {% if xmpp_uri is defined %}
42 <link rel="alternate" type="application/atom+xml" href="{{xmpp_uri}}" > 48 <link rel="alternate" type="application/atom+xml" href="{{xmpp_uri}}" >
43 {% endif %} 49 {% endif %}