distribusi-verse/verse/templates/base/index.html

71 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2024-04-28 13:04:07 +02:00
{% extends "base/base.html" %}
2022-01-05 13:42:24 +01:00
{% block main %}
<div id="buttons">
2022-03-27 12:46:08 +02:00
2022-01-05 15:10:18 +01:00
{% if not current_user.is_authenticated %}
2022-01-05 13:42:24 +01:00
<div class="signin">
<a href="/login">
<input type="button" name="button" value="Sign in"></input>
</a>
</div>
<div class="signin">
<a href="/register">
<input type="button" name="button" value="Register"></input>
</a>
</div>
2022-01-05 15:10:18 +01:00
{% else %}
<div class="distribusi">
2024-06-23 16:59:51 +02:00
<a href="distribusikan/distribusi">
2022-01-05 15:10:18 +01:00
<input type="button" name="button" value="Distribusi"></input>
</a>
</div>
2022-03-27 16:07:44 +02:00
{% if adminuser %}
<div class="admin">
<a href="/admin">
<input type="button" name="button" value="Admin"></input>
</a>
</div>
{% endif %}
2022-01-05 15:10:18 +01:00
<div class="logout">
<a href="/logout">
<input type="button" name="button" value="Logout"></input>
</a>
</div>
{% endif %}
2022-03-27 12:46:08 +02:00
<div class="help">
<a href="/help">
<input type="button" name="button" value="Help"></input>
2022-03-20 11:24:33 +01:00
</a>
</div>
</div>
{% if current_user.is_authenticated %}
<h2 id="fancyboi"> Hi {{ current_user.username }}!</h2>
{% else %}
<h2 id="fancyboi"> Welcome to distribusi-verse</h2>
{% endif %}
<div class="maincontent">
<p>Distribusi is a content management system for the web that produces static index pages based on folders in the files system. It is inspired by the automatic index functions featured in several popular web servers. Distribusi works by traversing the file system and directory hierarchy to automatically list all the files in the directory, detect the file types and providing them with relevant html classes and tags for easy styling.
</p>
</div>
<!-- a div with all the distribusis listed in the distribusiverse -->
<div id="distribusiverse" class="maincontent">
2022-01-05 13:42:24 +01:00
<h2>List of distribusis</h2>
2024-04-28 13:04:07 +02:00
{% include 'base/filtermenu.html' %}
2022-03-28 18:33:48 +02:00
<ul id="distribusi-index">
2022-03-27 12:46:08 +02:00
{% for name, distribusi in distribusisindex.items() %}
2024-04-19 22:55:07 +02:00
<li class='distribusi filter {{ distribusi["category"] }} {{ distribusi["year"] }} '>
<a href='stash/{{name}}/index.html'>{{distribusi["username"]}}:{{name}}</a>
{% for tag in distribusi["tags"] %}
<span class="tags">{{tag}}</span>
{% endfor%}
2022-03-28 18:33:48 +02:00
{% if distribusi.publictheme != None %}
<a href="publicthemes/{{name}}">theme 🗎</a>
{% endif %}
</li>
2022-01-07 18:09:29 +01:00
{% endfor%}
2022-01-05 13:42:24 +01:00
</ul>
</div>
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/dropdown.css')}}">
2022-01-05 13:42:24 +01:00
{% endblock %}