README.md edited
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{% load i18n %}
|
||||
|
||||
<ul>
|
||||
{% for app in module.children %}
|
||||
<li class="contrast">
|
||||
{% if app.name != app.app_label|capfirst|escape %}
|
||||
<a href="{{ app.app_url }}" title="{% blocktrans with name=app.name %}Models in the {{ name }} application{% endblocktrans %}">{{ app.name }}</a>
|
||||
{% else %}
|
||||
{% trans app.app_label as app_label %}
|
||||
<a href="{{ app.app_url }}" title="{% blocktrans with name=app_label %}Models in the {{ name }} application{% endblocktrans %}">{{ app_label }}</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% for model in app.models %}
|
||||
<li>
|
||||
<span class="float-right">
|
||||
{% if model.add_url %}
|
||||
<a href="{{ model.add_url }}" class="addlink" title="{% trans 'Add' %}"></a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}" class="changelink" title="{% trans 'Change' %}"></a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}">{{ model.name }}</a>
|
||||
{% else %}
|
||||
{{ model.name }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
@@ -0,0 +1,16 @@
|
||||
{% load i18n %}
|
||||
|
||||
<ul>
|
||||
{% if module.children %}
|
||||
{% for child in module.children %}
|
||||
<li>
|
||||
{% if child.date %}<span class="float-right dim">{{ child.date|date }}</span>{% endif %}
|
||||
{% if child.warning %}<span class="warning">{{ child.title }}</span>{% else %}<a href="{{ child.link }}" target="_blank" class="nowrap"><span class="icon-open-external"></span> {{ child.title }}</a>{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
@@ -0,0 +1,38 @@
|
||||
{% load i18n %}
|
||||
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Date" %}</th>
|
||||
<th>{% trans "users" as label %}{{ label|capfirst }}</th>
|
||||
<th>{% trans "sessions" as label %}{{ label|capfirst }}</th>
|
||||
<th>{% trans "views" as label %}{{ label|capfirst }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for data in module.children %}
|
||||
<tr>
|
||||
<th>{{ data.0 }}</th>
|
||||
<td width="1" align="center">{{ data.1.ga_users }}</td>
|
||||
<td width="1" align="center">{{ data.1.ga_sessions }}</td>
|
||||
<td width="1" align="center">{{ data.1.ga_pageviews }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<div class="padding center">
|
||||
<canvas id="chart_{{ module.model.pk }}" style="width: 100%;">
|
||||
<div class="chart-fillColor"></div>
|
||||
<div class="chart-strokeColor"></div>
|
||||
<div class="chart-pointColor"></div>
|
||||
<div class="chart-pointHighlightFill"></div>
|
||||
<div class="chart-scaleGridLineColor"></div>
|
||||
<div class="chart-scaleLineColor"></div>
|
||||
<div class="chart-scaleFontColor"></div>
|
||||
<div class="chart-data">
|
||||
{% for data in module.children %}
|
||||
<div class="chart-data-item" data-date="{{ data.0|date:"d/m" }}" data-value="{{ data.1 }}"></div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</canvas>
|
||||
<script>jet.jQuery('#chart_{{ module.model.pk }}').googleAnalyticsChart();</script>
|
||||
</div>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,26 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<div class="padding center">
|
||||
<ul class="inline bordered">
|
||||
{% for statistic in module.children %}
|
||||
<li>
|
||||
<div class="big">{{ statistic.value }}</div>
|
||||
<div class="dim">{{ statistic.title }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,29 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% if module.children %}
|
||||
{% if module.layout == "stacked" %}
|
||||
<ul>
|
||||
{% for link in module.children %}
|
||||
<li>
|
||||
<a href="{{ link.url }}">{% if link.external %}<span class="icon-open-external"></span> {% endif %}{{ link.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% elif module.layout == "inline" %}
|
||||
<div class="padding center">
|
||||
<ul class="inline">
|
||||
{% for link in module.children %}
|
||||
<li>
|
||||
<a href="{{ link.url }}" class="nowrap">{% if link.external %}<span class="icon-open-external"></span> {% endif %}{{ link.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,27 @@
|
||||
{% load i18n %}
|
||||
|
||||
<ul>
|
||||
{% for model in module.children %}
|
||||
<li>
|
||||
<span class="float-right">
|
||||
{% if model.add_url %}
|
||||
<a href="{{ model.add_url }}" class="addlink" title="{% trans 'Add' %}"></a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}" class="changelink" title="{% trans 'Change' %}"></a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}">{{ model.name }}</a>
|
||||
{% else %}
|
||||
{{ model.name }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
@@ -0,0 +1,42 @@
|
||||
{% load i18n jet_dashboard_tags %}
|
||||
|
||||
<ul>
|
||||
{% if not module.children %}
|
||||
<li>
|
||||
{% trans 'None available' %}
|
||||
</li>
|
||||
{% else %}
|
||||
{% for entry in module.children %}
|
||||
<li>
|
||||
<span class="float-right">
|
||||
<span class="icon-user tooltip" title="{{ entry.user }}"></span>
|
||||
<span class="icon-clock tooltip" title="{{ entry.action_time }}"></span>
|
||||
</span>
|
||||
|
||||
<div class="nowrap">
|
||||
{% if entry.is_addition %}
|
||||
<span class="icon-add3"></span>
|
||||
{% endif %}
|
||||
{% if entry.is_change %}
|
||||
<span class="icon-edit"></span>
|
||||
{% endif %}
|
||||
{% if entry.is_deletion %}
|
||||
<span class="icon-cross"></span>
|
||||
{% endif %}
|
||||
|
||||
{% if entry.content_type %}
|
||||
<span>{% filter capfirst %}{{ entry.content_type }}{% endfilter %}</span>
|
||||
{% else %}
|
||||
<span>{% trans 'Unknown content' %}</span>
|
||||
{% endif %}
|
||||
|
||||
{% if entry.is_deletion or not entry.get_admin_url %}
|
||||
<span class="tooltip" title="{{ entry|format_change_message }}">{{ entry.object_repr }}</span>
|
||||
{% else %}
|
||||
<a title="{{ entry|format_change_message }}" class="tooltip" href="{{ entry.get_admin_url }}">{{ entry.object_repr }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
@@ -0,0 +1,38 @@
|
||||
{% load i18n %}
|
||||
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans "Date" %}</th>
|
||||
<th>{% trans "visitors" as label %}{{ label|capfirst }}</th>
|
||||
<th>{% trans "visits" as label %}{{ label|capfirst }}</th>
|
||||
<th>{% trans "views" as label %}{{ label|capfirst }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for data in module.children %}
|
||||
<tr>
|
||||
<th>{{ data.0 }}</th>
|
||||
<td width="1" align="center">{{ data.1.visitors }}</td>
|
||||
<td width="1" align="center">{{ data.1.visits }}</td>
|
||||
<td width="1" align="center">{{ data.1.page_views }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<div class="padding center">
|
||||
<canvas id="chart_{{ module.model.pk }}" style="width: 100%;">
|
||||
<div class="chart-fillColor"></div>
|
||||
<div class="chart-strokeColor"></div>
|
||||
<div class="chart-pointColor"></div>
|
||||
<div class="chart-pointHighlightFill"></div>
|
||||
<div class="chart-scaleGridLineColor"></div>
|
||||
<div class="chart-scaleLineColor"></div>
|
||||
<div class="chart-scaleFontColor"></div>
|
||||
<div class="chart-data">
|
||||
{% for data in module.children %}
|
||||
<div class="chart-data-item" data-date="{{ data.0|date:"d/m" }}" data-value="{{ data.1 }}"></div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</canvas>
|
||||
<script>jet.jQuery('#chart_{{ module.model.pk }}').yandexMetrikaChart();</script>
|
||||
</div>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,26 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% if module.error %}
|
||||
<ul>
|
||||
<li>
|
||||
{{ module.error }}
|
||||
</li>
|
||||
</ul>
|
||||
{% elif module.children %}
|
||||
<div class="padding center">
|
||||
<ul class="inline bordered">
|
||||
{% for statistic in module.children %}
|
||||
<li>
|
||||
<div class="big">{{ statistic.value }}</div>
|
||||
<div class="dim">{{ statistic.title }}</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<ul>
|
||||
<li>
|
||||
{% trans "Nothing to show" %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user