mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-01-21 05:41:42 +00:00
52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
|
{% extends 'layout.html' %}
|
||
|
|
||
|
{% block nav_groups %}navigation-item__selected{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="banner">
|
||
|
<img src="{{ url_for('static', filename='images/bg.svg') }}" onload="imgFade(this)" style="opacity:0;"/>
|
||
|
<span></span>
|
||
|
|
||
|
<div class="banner-content">
|
||
|
<p>{{ config.WEBSITE.motto }}</p>
|
||
|
<h1>Groups</h1>
|
||
|
<p>{{ groups|length }} Groups</p>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<form action="/api/group/create" method="post" enctype="multipart/form-data">
|
||
|
<input type="text" name="name" placeholder="name">
|
||
|
<input type="text" name="description" placeholder="description">
|
||
|
<button type="submit">Submit</button>
|
||
|
</form>
|
||
|
|
||
|
{% if groups %}
|
||
|
<div class="gallery-grid">
|
||
|
{% for group in groups %}
|
||
|
<a id="group-{{ group.id }}" class="gallery-item" href="{{ url_for('group.group', group_id=group.id) }}">
|
||
|
<span>
|
||
|
<h2>{{ group.name }}</h2>
|
||
|
</span>
|
||
|
{% if group.thumbnail %}
|
||
|
<img data-src="{{ group.thumbnail }}" onload="imgFade(this)" style="opacity:0;"/>
|
||
|
{% else %}
|
||
|
<img src="{{ url_for('static', filename='images/error.png') }}" onload="imgFade(this)" style="opacity:0;"/>
|
||
|
{% endif %}
|
||
|
</a>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
{% else %}
|
||
|
<div class="big-text">
|
||
|
<h1>No image groups!</h1>
|
||
|
{% if g.user %}
|
||
|
<p>You can get started by creating a new image group!</p>
|
||
|
{% else %}
|
||
|
<p>Login to get started!</p>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block script %}
|
||
|
<script></script>
|
||
|
{% endblock %}
|