Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
Merge branch 'rokkamokka-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-leonhardt committed Nov 3, 2016
2 parents 8176feb + b0f0810 commit ba7069a
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions templates/detail.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
{% extends "menu_detail.html" %}
{% block data %}

{% for k, v in data.iteritems() %}
{% for k, v in data.iteritems() | sort %}
{% if data.first %}<div class="row spacer">{% endif %}
<div class="col-lg-1 col-md-1 col-sm-1 col-xs-2">
<div class="small-box {% if v | length > 0 and v | length < 2 %}bg-yellow{% elif v | length >= 2 %}bg-red{% else %}bg-green{% endif %} {% for i in v %}{% if i == -1 %}bg-purple{% endif %}{% endfor %} icon-xs">
<div class="inner" style="text-align: center;" title="{{ k }}" data-toggle="tooltip" data-placement="right">
<h4>{{ v | length }}</h4>
<div class="{% if (data | length > 50) %} col-lg-1 col-md-1 col-sm-2 {% else %} col-lg-2 col-md-2 col-sm-2 {% endif %} col-xs-2">
<a href="{% if dc['uchiwa'] %}{{ dc['uchiwa'] }}/#/client/{{ dc['name'] }}/{{ k }}{% else %}#{% endif %}" {% if dc['uchiwa'] %}target="_blank"{% endif %}>
<div class="small-box {% if v | length > 0 and v | length < 2 %}bg-yellow{% elif v | length >= 2 %}bg-red{% else %}bg-green{% endif %} {% for i in v %}{% if i == -1 %}bg-purple{% endif %}{% endfor %} icon-xs">
<div class="inner" style="text-align: center; overflow: hidden" title="{{ k }}" data-toggle="tooltip" data-placement="right">
<h4>{{ k }}</h4>
<h4>{{ v | length }}</h4>
</div>
</div>
<a class="small-box-footer" href="{% if dc['uchiwa'] %}{{ dc['uchiwa'] }}/#/client/{{ dc['name'] }}/{{ k }}{% else %}#{% endif %}" {% if dc['uchiwa'] %}target="_blank"{% endif %}>
<small>Detail</small>
<i class="fa fa-arrow-circle-right"></i>
</a>

</div>
</a>
</div>
{% if data.last %}</div>{% endif %}
{% endfor %}
Expand Down

0 comments on commit ba7069a

Please sign in to comment.