mirror of
https://github.com/ae-utbm/sith.git
synced 2025-09-16 21:13:50 +00:00
Introduce htmx in sith files
* Convert FileModerationView into ListView and add pagination with htmx * Don't allow sas moderation in file moderation view * Split up base.jinja and introduce base_fragment.jinja * Improve FileModerationView performances and make it root only * Add permissions tests for file modération
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
{% if is_fragment %}
|
||||
{% extends "core/base_fragment.jinja" %}
|
||||
{% else %}
|
||||
{% extends "core/base.jinja" %}
|
||||
{% endif %}
|
||||
|
||||
{% block title %}
|
||||
{% if file %}
|
||||
@@ -21,7 +25,7 @@
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
{% block tabs %}
|
||||
{{ print_file_name(file) }}
|
||||
|
||||
<div class="tool_bar">
|
||||
@@ -44,6 +48,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if file %}
|
||||
{% block file %}
|
||||
|
Reference in New Issue
Block a user