Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
ckleemann committed Jan 6, 2019
1 parent 6777af8 commit 998075f
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions dashboard/templates/dashboard/overview.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
{% extends "dashboard/dashboard_base.html" %}{% load bootstrap4 %}{% load i18n %}{% load icons %}

{% block title%}{% trans "Übersicht" %} | {% trans "Dashboard" %}{% endblock %}
{% block title %}{% trans "Übersicht" %} | {% trans "Dashboard" %}{% endblock %}

{% block content_dashboard %}
<style>
/*
source:
https://gist.github.com/stormwild/773bd6c77130ec16ba379c88ed02e877
*/
.row.equal-height {
display: flex;
flex-wrap: wrap;
}
.row.equal-height > [class*='col-'] {
display: flex;
flex-direction: column;
}
.card {
flex: 1;
}
/*
source:
https://gist.github.com/stormwild/773bd6c77130ec16ba379c88ed02e877
*/
.row.equal-height {
display: flex;
flex-wrap: wrap;
}

.row.equal-height > [class*='col-'] {
display: flex;
flex-direction: column;
}

.card {
flex: 1;
}
</style>

<div class="row equal-height">
{% for widget in widgets %}
<div class="col-sm-6 col-lg-4 col-xl-3 mb-4">
<div class="card border-{{ widget.get_status }}">
<div class="card-body">
{{ widget.render }}
</div>
<div class="card-footer bg-{{ widget.get_status }}">
<p class="card-title">
{% if widget.link_target != "" %}
<span class="pull-right">
<div class="row equal-height">
{% for widget in widgets %}
<div class="col-sm-6 col-lg-4 col-xl-3 mb-4">
<div class="card border-{{ widget.get_status }}">
<div class="card-body">
{{ widget.render }}
</div>
<div class="card-footer bg-{{ widget.get_status }}">
<p class="card-title">
{% if widget.link_target != "" %}
<span class="pull-right">
<a href="{{ widget.link_target }}">{% icon "external-link" %}</a>
</span>
{% endif %}
{{ widget.name }}
</p>
</div>
</div>
{% endif %}
{{ widget.name }}
</p>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
<div class="clearfix"></div>
<div class="clearfix"></div>

{% endblock %}

0 comments on commit 998075f

Please sign in to comment.