-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Indent HTML templates with djhtml (#601)
- Loading branch information
Showing
25 changed files
with
1,382 additions
and
1,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{% extends "base/base.html"%} | ||
{% load i18n %} | ||
{% block content %} | ||
<div class="row justify-content-md-center"> | ||
<div class="col-lg-10 col-centered"> | ||
{% if request.user.is_superuser %} | ||
<table class="table table-hover"> | ||
{% for q in queries %} | ||
<tr> | ||
<td> | ||
<a href="{% url 'analysis:wait' q.id %}">{{ q.id }}</a> | ||
</td> | ||
<td> | ||
{% if q.source == 'fdroid' %} | ||
<a target="_blank" rel="noreferrer" href="https://f-droid.org/packages/{{ q.handle }}">{{ q.handle | truncatechars_html:40 }}</a> | ||
{% else %} | ||
<a target="_blank" rel="noreferrer" href="https://play.google.com/store/apps/details?id={{ q.handle }}">{{ q.handle | truncatechars_html:40 }}</a> | ||
{% endif %} | ||
</td> | ||
<td> | ||
{{ q.source }} | ||
</td> | ||
<td> | ||
{{ q.uploaded_at }} | ||
</td> | ||
<td> | ||
{% if q.processed %} | ||
{% if q.in_error %} | ||
<span class="text-danger" data-toggle="tooltip" title="{{ q.description }}">error</span> | ||
<div class="row justify-content-md-center"> | ||
<div class="col-lg-10 col-centered"> | ||
{% if request.user.is_superuser %} | ||
<table class="table table-hover"> | ||
{% for q in queries %} | ||
<tr> | ||
<td> | ||
<a href="{% url 'analysis:wait' q.id %}">{{ q.id }}</a> | ||
</td> | ||
<td> | ||
{% if q.source == 'fdroid' %} | ||
<a target="_blank" rel="noreferrer" href="https://f-droid.org/packages/{{ q.handle }}">{{ q.handle | truncatechars_html:40 }}</a> | ||
{% else %} | ||
<span class="text-success">complete</span> | ||
<a target="_blank" rel="noreferrer" href="https://play.google.com/store/apps/details?id={{ q.handle }}">{{ q.handle | truncatechars_html:40 }}</a> | ||
{% endif %} | ||
{% else %} | ||
<span class="text-warning">in progress</span> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% else %} | ||
<div class="alert alert-danger small"> | ||
<strong>{% trans "You need to be registered" %}.</strong> | ||
</div> | ||
{% endif %} | ||
</td> | ||
<td> | ||
{{ q.source }} | ||
</td> | ||
<td> | ||
{{ q.uploaded_at }} | ||
</td> | ||
<td> | ||
{% if q.processed %} | ||
{% if q.in_error %} | ||
<span class="text-danger" data-toggle="tooltip" title="{{ q.description }}">error</span> | ||
{% else %} | ||
<span class="text-success">complete</span> | ||
{% endif %} | ||
{% else %} | ||
<span class="text-warning">in progress</span> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
{% else %} | ||
<div class="alert alert-danger small"> | ||
<strong>{% trans "You need to be registered" %}.</strong> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.