mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Updated views
* Moved links.njk to _partial/links.njk. * Renamed layout.njk to _layout.njk. * Cleaned some formatting in links.njk and nojs.njk (mainly had something to do with extraneous whitespaces).
This commit is contained in:
parent
f4b00b404b
commit
a18d3a2e21
@ -9,16 +9,16 @@
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
<div class="column">
|
||||
<div id="linksColumn" class="columns is-mobile is-multiline is-centered">
|
||||
{% for link in globals.home_links %}
|
||||
{% for link in globals.home_links -%}
|
||||
<div class="column is-narrow">
|
||||
<a {{ attrs(link.attrs) | trim }}>
|
||||
{% if link.icon %}
|
||||
{% if link.icon -%}
|
||||
<span class="icon is-medium">
|
||||
<i class="{{ link.icon }}"></i>
|
||||
</span>
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
{{ link.attrs.title }}
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<!-- Stylesheets -->
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ super() }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ super() }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ super() }}
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ super() }}
|
||||
@ -72,7 +72,7 @@
|
||||
<a href="auth" id="loginLinkText"></a>
|
||||
</h3>
|
||||
|
||||
{% include "links.njk" %}
|
||||
{% include "_partial/links.njk" %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% extends "layout.njk" %}
|
||||
{% extends "_layout.njk" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ super() }}
|
||||
@ -30,9 +30,9 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="content">
|
||||
{% if uploadDisabled %}
|
||||
{% if uploadDisabled -%}
|
||||
<a class="button is-danger" style="display: flex" href="auth">{{ uploadDisabled }}</a>
|
||||
{% else %}
|
||||
{%- else -%}
|
||||
<form id="form" action="" method="post" enctype="multipart/form-data">
|
||||
<div class="field">
|
||||
<input type="file" name="files[]" multiple="multiple" style="width: 100%">
|
||||
@ -41,34 +41,34 @@
|
||||
<input type="submit" class="button is-danger" value="Upload" style="width: 100%">
|
||||
</div>
|
||||
</form>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
</div>
|
||||
|
||||
{% if files %}
|
||||
{% if files -%}
|
||||
<div id="uploads" style="display: block">
|
||||
{% for item in files %}
|
||||
{% for item in files -%}
|
||||
<div class="columns">
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
<div class="column">
|
||||
{% if errorMessage %}
|
||||
{% if errorMessage -%}
|
||||
<p class="error">{{ errorMessage | safe }}</p>
|
||||
{% endif %}
|
||||
{% if item.url %}
|
||||
{%- endif %}
|
||||
{% if item.url -%}
|
||||
<p class="link">
|
||||
<a href="{{ item.url }}" target="_blank">{{ item.url | safe }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
</div>
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
|
||||
{% include "links.njk" %}
|
||||
{% include "_partial/links.njk" %}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user