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
Commits
c6d7aa23
Verified
Commit
c6d7aa23
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Style CRUD log nicer.
parent
66a1700a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/official/BiscuIT-App-Alsijil
+1
-1
1 addition, 1 deletion
apps/official/BiscuIT-App-Alsijil
biscuit/core/templates/core/crud_events_ul.html
+17
-14
17 additions, 14 deletions
biscuit/core/templates/core/crud_events_ul.html
with
18 additions
and
15 deletions
BiscuIT-App-Alsijil
@
f5d64b4a
Compare
6a230570
...
f5d64b4a
Subproject commit
6a230570ef6f7ed32770c5586c8eab1a1e7ab56b
Subproject commit
f5d64b4ae1935ea24563b47b151746290e3997fc
This diff is collapsed.
Click to expand it.
biscuit/core/templates/core/crud_events_ul.html
+
17
−
14
View file @
c6d7aa23
...
...
@@ -3,20 +3,23 @@
<ul
class=
"{{ class_ul }}"
>
{% for event in obj.crud_events %}
<li
clas=
"{{ class_li }}"
>
{% if event.event_type == event.CREATE %}
{% fa 'plus' %}
{% elif event.event_type == event.UPDATE %}
{% fa 'pencil' %}
{% elif event.event_type == event.DELETE %}
{% fa 'trash' %}
{% elif event.event_type == event.M2M_CHANGE %}
{% fa 'pencil' %}
{% elif event.event_type == event.M2M_CHANGE_REV %}
{% fa 'pencil' %}
{% endif %}
{{ event.user.person.full_name }}
({{ event.datetime.date }})
<div>
<p>
{{ event.user.person.full_name }}
</p>
<small>
({{ event.datetime }})
</small>
</div>
<span
class=
"badge badge-light text-dark"
>
{% if event.event_type == event.CREATE %}
{% fa 'plus' %}
{% elif event.event_type == event.UPDATE %}
{% fa 'pencil' %}
{% elif event.event_type == event.DELETE %}
{% fa 'trash' %}
{% elif event.event_type == event.M2M_CHANGE %}
{% fa 'pencil' %}
{% elif event.event_type == event.M2M_CHANGE_REV %}
{% fa 'pencil' %}
{% endif %}
</span>
</li>
{% endfor %}
</ul>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment