Browse Source

Update views

develop
Alice Gaudon 5 months ago
parent
commit
f605474182
6 changed files with 11 additions and 11 deletions
  1. +1
    -1
      views/about.njk
  2. +2
    -2
      views/desktop-utility.njk
  3. +2
    -2
      views/file-manager.njk
  4. +2
    -2
      views/file-upload.njk
  5. +2
    -2
      views/layouts/base.njk
  6. +2
    -2
      views/url-shrinker.njk

+ 1
- 1
views/about.njk View File

@ -8,7 +8,7 @@
<div class="container">
<section class="panel">
<h2>Details</h2>
<p class="center">Powered by wms-core</p>
<p class="center">Powered by swaf</p>
</section>
</div>
{% endblock %}

+ 2
- 2
views/desktop-utility.njk View File

@ -119,7 +119,7 @@
<section class="panel">
<h2>Auth tokens</h2>
<form action="{{ route('generate-token') }}" method="POST">
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="plus"></i> Generate a new token</button>
</form>
@ -156,4 +156,4 @@
{% endfor %}
</tbody>
</table>
</section>
</section>

+ 2
- 2
views/file-manager.njk View File

@ -43,7 +43,7 @@
Pending deletion
{% else %}
<form action="{{ route('delete-file-frontend', file.slug) }}" method="post">
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button class="button danger"><i data-feather="trash"></i> Delete</button>
</form>
{% endif %}
@ -53,4 +53,4 @@
</tbody>
</table>
</section>
{% endblock %}
{% endblock %}

+ 2
- 2
views/file-upload.njk View File

@ -24,7 +24,7 @@
{{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: beautiful_image.jpg sets url to https://'+default_domain+'/beautiful_image.jpg', validation_attributes='disabled') }}
{{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }}
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="upload"></i> Upload</button>
</form>
@ -53,4 +53,4 @@
</div>
{% include 'desktop-utility.njk' %}
{% endblock %}
{% endblock %}

+ 2
- 2
views/layouts/base.njk View File

@ -29,7 +29,7 @@
<form action="{{ route('logout') }}?{{ querystring.stringify({redirect_uri: '/'}) }}" method="POST">
<button><i data-feather="log-out"></i> <span class="tip">Logout</span></button>
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
</form>
</li>
{% else %}
@ -56,4 +56,4 @@
</main>
{% endblock %}
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}
{% block footer %}{{ app.name }} v{{ app_version }} - all rights reserved.{% endblock %}

+ 2
- 2
views/url-shrinker.njk View File

@ -20,7 +20,7 @@
{{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: bear sets url to https://'+default_domain+'/bear', validation_attributes='disabled') }}
{{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }}
{{ macros.csrf(getCSRFToken) }}
{{ macros.csrf(getCsrfToken) }}
<button type="submit"><i data-feather="link"></i> Shrink URL</button>
</form>
@ -37,4 +37,4 @@
</div>
{% include 'desktop-utility.njk' %}
{% endblock %}
{% endblock %}

Loading…
Cancel
Save