mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 07:03:23 -06:00
71 lines
2.6 KiB
Twig
71 lines
2.6 KiB
Twig
{% extends "./layout/default.twig" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, category) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'overview'|_ }} (month)</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
{% if Config.get('firefly.chart') == 'google' %}
|
|
<div id="month"></div>
|
|
{% endif %}
|
|
{% if Config.get('firefly.chart') == 'chartjs' %}
|
|
<canvas id="month" style="width:100%;height:350px;"></canvas>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'overview'|_ }} (all)</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
{% if Config.get('firefly.chart') == 'google' %}
|
|
<div id="all"></div>
|
|
{% endif %}
|
|
{% if Config.get('firefly.chart') == 'chartjs' %}
|
|
<canvas id="all" style="width:100%;height:350px;"></canvas>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-12">
|
|
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'transactions'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
{% include 'list/journals' %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
<script type="text/javascript">
|
|
var categoryID = {{ category.id }};
|
|
</script>
|
|
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
{% if Config.get('firefly.chart') == 'google' %}
|
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
{% endif %}
|
|
{% if Config.get('firefly.chart') == 'chartjs' %}
|
|
<script type="text/javascript" src="js/Chart.min.js"></script>
|
|
<script type="text/javascript" src="js/charts.js"></script>
|
|
{% endif %}
|
|
<script type="text/javascript" src="js/categories.js"></script>
|
|
|
|
{% endblock %}
|