comparison sat_templates/templates/default/base/base.html @ 215:b2f0f81b2cd2

base: if `atom_url` is defined, a "subscribe" link is added to footer: also added `text--clickable` class to remove decorations and have a different background on hover. fix 279
author Goffi <goffi@goffi.org>
date Fri, 19 Jul 2019 21:22:40 +0200
parents d586ea13cfed
children 739c3e6999fa
comparison
equal deleted inserted replaced
214:8308de7fc668 215:b2f0f81b2cd2
70 {% block favicon %} 70 {% block favicon %}
71 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png"> 71 <link rel="icon" href="{{media_path}}icons/apps/64/sat.png">
72 {% endblock favicon %} 72 {% endblock favicon %}
73 </head> 73 </head>
74 <body> 74 <body>
75 {% if atom_url is defined %}
76 {{ icon_defs('feed') }}
77 {% endif %}
75 {% if main_menu %} 78 {% if main_menu %}
76 {% block main_menu %} 79 {% block main_menu %}
77 {% call component.menu(main_menu, class="main_menu") %} 80 {% call component.menu(main_menu, class="main_menu") %}
78 <form action="" method="get" class="menu__language"> 81 <form action="" method="get" class="menu__language">
79 <select name="{{C.KEY_LANG}}" id="{{C.KEY_LANG}}" onchange="this.form.submit()"> 82 <select name="{{C.KEY_LANG}}" id="{{C.KEY_LANG}}" onchange="this.form.submit()">
124 {% endif %} 127 {% endif %}
125 {% endblock category_menu %} 128 {% endblock category_menu %}
126 {% block body %} 129 {% block body %}
127 {% endblock body %} 130 {% endblock body %}
128 </div> 131 </div>
129 <footer class="page__footer">{% block footer %}<span>{% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}</span>{% endblock %}</footer> 132 <footer class="page__footer">
133 {% block footer %}
134 <span>
135 {% trans app_name=C.APP_NAME %}Powered by {{app_name}}{% endtrans %}
136 {% if atom_url is defined %}
137
138 <a href="{{atom_url}}" class="text--clickable">
139 {% trans %}subscribe{% endtrans %} {{ icon('feed', cls='icon--text')}}
140 </a>
141 {% endif %}
142 </span>
143 {% endblock %}
144 </footer>
130 </main> 145 </main>
131 </body> 146 </body>
132 </html> 147 </html>