Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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-Core
Merge requests
!277
Resolve "Show what was changed in crud_events.html"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Show what was changed in crud_events.html"
274-show-what-was-changed-in-crud_events-html
into
master
Overview
17
Commits
4
Pipelines
6
Changes
3
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
274-show-what-was-changed-in-crud_events-html
into
master
4 years ago
Overview
17
Commits
4
Pipelines
6
Changes
3
All threads resolved!
Hide all comments
Expand
Closes
#274 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Compare
master
version 4
b9aed130
4 years ago
version 3
a57fd033
4 years ago
version 2
100a0c6e
4 years ago
version 1
8aec8dd9
4 years ago
master (base)
and
latest version
latest version
366eafcf
4 commits,
4 years ago
version 4
b9aed130
3 commits,
4 years ago
version 3
a57fd033
2 commits,
4 years ago
version 2
100a0c6e
1 commit,
4 years ago
version 1
8aec8dd9
1 commit,
4 years ago
3 files
+
87
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
aleksis/core/templates/core/crud_events.html
+
35
−
22
Options
{% load i18n %}
{% load i18n
data_helpers
%}
<ul
class=
"collection"
>
{% for event in obj.crud_events %}
{% if no_m2m and event.event_type == event.M2M_CHANGE or event.event_type == event.M2M_CHANGE_REV %}
{% else %}
<li
class=
"collection-item"
>
{% if event.event_type == event.CREATE %}
{% blocktrans with person=event.user.person %}
Created by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.UPDATE %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.DELETE %}
{% blocktrans with person=event.user.person %}
Deleted by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.M2M_CHANGE %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.M2M_CHANGE_REV %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% endif %}
<strong>
{% if event.event_type == event.CREATE %}
{% blocktrans with person=event.user.person %}
Created by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.UPDATE %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.DELETE %}
{% blocktrans with person=event.user.person %}
Deleted by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.M2M_CHANGE %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% elif event.event_type == event.M2M_CHANGE_REV %}
{% blocktrans with person=event.user.person %}
Updated by {{ person }}
{% endblocktrans %}
{% endif %}
</strong>
<div
class=
"left"
style=
"margin-right: 10px;"
>
{% if event.event_type == event.CREATE %}
@@ -43,6 +45,17 @@
<div
class=
"right"
>
{{ event.datetime }}
</div>
{% parse_json event.changed_fields as changed_fields %}
{% if changed_fields %}
<ul>
{% for field, change in changed_fields.items %}
{% verbose_name "homework" "assignment" field as verbose_name %}
<li>
{{ verbose_name }}:
<s>
{{ change.0 }}
</s>
→ {{ change.1 }}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
Loading