Semantic UI update to 2.1.8 (#211)
* Update to Semantic UI 2.1.6 Basically I tried to rebuild the old layout as closely as possible. It is a bit more mobile friendly but still misses Semantic UIs collapsable menu: https://github.com/Semantic-Org/Semantic-UI/issues/157 + ditch old tablesorter for recommended one + use em instead of percentage for status labels in macros Overview: + sort overview by report date per default + slightly different colors Facts: + template based approach to even out the columns in facts view + don't show empty containers + needed an additional variable in context * get rid of unnecessary semantic src files * more cleanup * clean jquery-tablesort directory as well * drop unused theme files * remove symlinks in static/{js,css} * semantic_update + bump to semantic 2.1.8 + minor adjustments - default-sort class in tables - table type in inventory - fixed and wrapped table for reports * updated screenshots
This commit is contained in:
@@ -3,14 +3,27 @@
|
||||
<div class="ui fluid icon input hide" style="margin-bottom:20px">
|
||||
<input autofocus="autofocus" class="filter-list" placeholder="Type here to filter...">
|
||||
</div>
|
||||
<div style="-moz-column-count:4; -webkit-column-count:4; column-count:4;">
|
||||
{%- for key,facts_list in facts_dict %}
|
||||
<span class='ui label darkblue'>{{key}}</span>
|
||||
<ul class="searchable">
|
||||
{%- for fact in facts_list %}
|
||||
<li><a href="{{url_for('fact', env=current_env, fact=fact)}}">{{fact}}</a></li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
<div class="ui searchable stackable doubling four column grid factlist">
|
||||
<div class="column">
|
||||
{%- set facts_count = 0 -%}
|
||||
{%- set break = facts_len//4 + 1 -%}
|
||||
{%- for key,facts_list in facts_dict %}
|
||||
<div class="ui segment">
|
||||
<a class="ui darkblue ribbon label">{{key}}</a>
|
||||
<ul>
|
||||
{%- for fact in facts_list %}
|
||||
<li><a href="{{url_for('fact', env=current_env, fact=fact)}}">{{fact}}</a></li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{%- set facts_count = facts_count + facts_list|length -%}
|
||||
{%- if facts_count >= break -%}
|
||||
</div>
|
||||
<div class="column">
|
||||
{%- set break = facts_len//4 + 1 + break -%}
|
||||
{%- endif -%}
|
||||
{%- set facts_count = facts_count + 5 -%}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user