comparison sat_templates/templates/default/merge-request/item.html @ 166:178f55b825b7

small refactoring/redesign, better BEM integration: - blog has been redesigned, and almost all blog CSS has been made generic and moved to main styles.css file. - better noscript handling, dynamic elements are created using "magic" classes (dom_update.js) - using better icons for older/newer messages - better state handling, classes now use "state_XXX" - more classes now use BEM convention - menu labels have been moved to a separate template (components/menu_labels.html), so it can be overriden easily by other sites - better styles.css organisation
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 21:00:24 +0200
parents e9f0a4215e46
children 4a03d0a6839b
comparison
equal deleted inserted replaced
165:9e8d9d754337 166:178f55b825b7
19 {% trans %}Your comment has been sent{% endtrans %} 19 {% trans %}Your comment has been sent{% endtrans %}
20 {% endblock confirm_message %} 20 {% endblock confirm_message %}
21 21
22 {% block body %} 22 {% block body %}
23 {{ icon_defs('pencil') }} 23 {{ icon_defs('pencil') }}
24 <div class="tab_container"> 24 <div class="tab__container">
25 <div class="tab_header"> 25 <div class="tab__header">
26 <ul> 26 <ul>
27 <li class="tab_button clicked" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Description{% endtrans %}</li> 27 <li class="tab__btn state_clicked" onclick='tab_select(this, "tab_description")'>{% trans %}Description{% endtrans %}</li>
28 <li class="tab_button" onclick='toggle_clicked_class_sel(".tab_button,.tab_page")'>{% trans %}Patches{% endtrans %}</li> 28 <li class="tab__btn" onclick='tab_select(this, "tab_patches")'>{% trans %}Patches{% endtrans %}</li>
29 </ul> 29 </ul>
30 </div> 30 </div>
31 <div class="tab_page clicked" id="tab_description"> 31 <div class="tab__page state_clicked" id="tab_description">
32 <div id="{{ item.widget_value['id'] }}" class="view single ticket box"> 32 <div id="{{ item.widget_value['id'] }}" class="view single ticket box">
33 {% if url_ticket_edit is defined %} 33 {% if url_ticket_edit is defined %}
34 <p class="box__tools"> 34 <p class="box__tools">
35 <a href="{{url_ticket_edit}}"> 35 <a href="{{url_ticket_edit}}">
36 {{ icon('pencil', cls='icon--small') }} 36 {{ icon('pencil', cls='icon--small') }}
54 <div class="comment_post"> 54 <div class="comment_post">
55 {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}} 55 {{- textbox.comment_or_login(service=comments_service, node=comments_node) -}}
56 </div> 56 </div>
57 {% endif %} 57 {% endif %}
58 </div> 58 </div>
59 <div class="tab_page" id="tab_patches"> 59 <div class="tab__page" id="tab_patches">
60 {% for patch in patches %} 60 {% for patch in patches %}
61 <div class="patch"> 61 <div class="patch">
62 <header class="box"> 62 <header class="box">
63 <div class="author"><label>{% trans %}author:{% endtrans %} </label>{{patch.author}}</div> 63 <div class="author"><label>{% trans %}author:{% endtrans %} </label>{{patch.author}}</div>
64 <p class="commit_msg">{{patch.commit_msg}}</p> 64 <p class="commit_msg">{{patch.commit_msg}}</p>