Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Alsijil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Alsijil
Merge requests
!92
Resolve "Add task for checking plausibility of data"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add task for checking plausibility of data"
91-add-task-for-checking-plausibility-of-data
into
master
Overview
11
Commits
30
Pipelines
25
Changes
1
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
91-add-task-for-checking-plausibility-of-data
into
master
4 years ago
Overview
11
Commits
30
Pipelines
25
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#91 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
2df54418
Prev
Next
Show latest version
1 file
+
0
−
76
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
2df54418
Also move template to core
· 2df54418
Jonathan Weth
authored
4 years ago
aleksis/apps/alsijil/templates/alsijil/data_check/list.html deleted
100644 → 0
+
0
−
76
Options
{# -*- engine:django -*- #}
{% extends "core/base.html" %}
{% load data_helpers %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block browser_title %}{% blocktrans %}Data checks{% endblocktrans %}{% endblock %}
{% block page_title %}{% blocktrans %}Data checks{% endblocktrans %}{% endblock %}
{% block content %}
<a
class=
"btn green waves-effect waves-light"
href=
"{% url "
data_check_run
"
%}"
>
<i
class=
"material-icons left"
>
refresh
</i>
{% trans "Check data again" %}
</a>
{% if results %}
<div
class=
"card"
>
<div
class=
"card-content"
>
<i
class=
"material-icons left medium red-text"
>
warning
</i>
<span
class=
"card-title"
>
{% trans "The system detected some problems with your data." %}
</span>
<p>
{% blocktrans %}Please go through all data and check whether some extra action is
needed.{% endblocktrans %}
</p>
</div>
</div>
{% else %}
<div
class=
"card"
>
<div
class=
"card-content"
>
<i
class=
"material-icons left medium green-text"
>
check_circle
</i>
<span
class=
"card-title"
>
{% trans "Everything is fine." %}
</span>
<p>
{% blocktrans %}The system hasn't detected any problems with your data.{% endblocktrans %}
</p>
</div>
</div>
{% endif %}
{% if results %}
<table>
<thead>
<tr>
<th></th>
<th
colspan=
"2"
>
{% trans "Affected object" %}
</th>
<th>
{% trans "Detected problem" %}
</th>
<th>
{% trans "Show details" %}
</th>
<th>
{% trans "Options to solve the problem" %}
</th>
</tr>
</thead>
<tbody>
{% for result in results %}
<tr>
<td>
<code>
{{ result.id }}
</code>
</td>
<td>
{% verbose_name_object result.related_object %}
</td>
<td>
{{ result.related_object }}
</td>
<td>
{{ result.related_check.problem_name }}
</td>
<td>
<a
class=
"btn-flat waves-effect waves-light"
href=
"{{ result.related_object.get_absolute_url }}"
>
{% trans "Show object" %}
</a>
</td>
<td>
{% for option_name, option in result.related_check.solve_options.items %}
<a
class=
"btn waves-effect waves-light"
href=
"{% url "
data_check_solve
"
result.pk
option_name
%}"
>
{{ option.verbose_name }}
</a>
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}
Loading