forked from crunk/distribusi-verse
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
2.4 KiB
71 lines
2.4 KiB
7 months ago
|
{% extends "base/base.html" %}
|
||
3 years ago
|
{% block main %}
|
||
3 years ago
|
<div id="buttons">
|
||
3 years ago
|
|
||
3 years ago
|
{% if not current_user.is_authenticated %}
|
||
3 years ago
|
<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>
|
||
3 years ago
|
{% else %}
|
||
|
<div class="distribusi">
|
||
|
<a href="/distribusi">
|
||
|
<input type="button" name="button" value="Distribusi"></input>
|
||
|
</a>
|
||
|
</div>
|
||
3 years ago
|
{% if adminuser %}
|
||
|
<div class="admin">
|
||
|
<a href="/admin">
|
||
|
<input type="button" name="button" value="Admin"></input>
|
||
|
</a>
|
||
|
</div>
|
||
|
{% endif %}
|
||
3 years ago
|
<div class="logout">
|
||
|
<a href="/logout">
|
||
|
<input type="button" name="button" value="Logout"></input>
|
||
|
</a>
|
||
|
</div>
|
||
|
{% endif %}
|
||
3 years ago
|
<div class="help">
|
||
|
<a href="/help">
|
||
|
<input type="button" name="button" value="Help"></input>
|
||
3 years ago
|
</a>
|
||
|
</div>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
{% if current_user.is_authenticated %}
|
||
3 years ago
|
<h2 id="fancyboi"> Hi {{ current_user.username }}!</h2>
|
||
3 years ago
|
{% 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>
|
||
3 years ago
|
<!-- a div with all the distribusis listed in the distribusiverse -->
|
||
3 years ago
|
<div id="distribusiverse" class="maincontent">
|
||
3 years ago
|
<h2>List of distribusis</h2>
|
||
7 months ago
|
{% include 'base/filtermenu.html' %}
|
||
3 years ago
|
<ul id="distribusi-index">
|
||
3 years ago
|
{% for name, distribusi in distribusisindex.items() %}
|
||
7 months ago
|
<li class='distribusi filter {{ distribusi["category"] }} {{ distribusi["year"] }} '>
|
||
3 years ago
|
<a href='stash/{{name}}/index.html'>{{distribusi["username"]}}:{{name}}</a>
|
||
3 years ago
|
{% for tag in distribusi["tags"] %}
|
||
|
<span class="tags">{{tag}}</span>
|
||
|
{% endfor%}
|
||
3 years ago
|
{% if distribusi.publictheme != None %}
|
||
|
<a href="publicthemes/{{name}}">theme 🗎</a>
|
||
|
{% endif %}
|
||
3 years ago
|
</li>
|
||
3 years ago
|
{% endfor%}
|
||
3 years ago
|
</ul>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
<script src="{{ url_for('static', filename='js/dropdown.js')}}"></script>
|
||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/dropdown.css')}}">
|
||
3 years ago
|
{% endblock %}
|