Browse Source

some small updates

current_wdka_release
crunk 3 years ago
parent
commit
efb4252f81
  1. 5
      README.md
  2. 2
      verse/app.py
  3. 4
      verse/start.py
  4. 14
      verse/static/css/style.css
  5. 5
      verse/templates/base.html
  6. 4
      verse/templates/distribusi.html
  7. 13
      verse/templates/index.html

5
README.md

@ -1,4 +1,4 @@
# distribusi verse
# Distribusi verse
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.
@ -9,6 +9,9 @@ The contribution consisted of setting up distribusi. ruruhuis.nl (distribusi is
This particular work in progress project is an attempt to make distribusi into a webinterface that can be operated remotely without any knowlegde of CLI. Trying to somehow combine the ideas of distribusi with the ideas of a [tildeverse](https://tildeverse.org/) or [Tilde club ](https://tilde.club/), but also be neither of these ideas.
This project is made for Autonomous Practices at the WDKA in Rotterdam.
## Work in progress
Nothing is working yet but I need to do this project in smaller steps then everything in one go.
## Start your engines!

2
verse/app.py

@ -21,7 +21,7 @@ def create_app():
APP.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True
login_manager.session_protection = "strong"
login_manager.login_view = "login"
login_manager.login_view = "index"
login_manager.login_message_category = "info"
csrf = CSRFProtect()

4
verse/start.py

@ -7,7 +7,6 @@ from flask import (
url_for,
session,
abort,
is_safe_url,
)
from sqlalchemy.exc import (
IntegrityError,
@ -20,6 +19,7 @@ from flask_login import (
login_user,
logout_user,
login_required,
current_user,
)
from werkzeug.routing import BuildError
@ -121,7 +121,7 @@ def admin():
@login_required
def logout():
logout_user()
return redirect(url_for("login"))
return redirect(url_for("index"))
@APP.errorhandler(CSRFError)

14
verse/static/css/style.css

@ -42,6 +42,20 @@ section#buttons{
align-items: center;
}
section#buttons .logout input{
border: none;
background: #E0B0FF;
text-decoration: none;
margin: 1px;
}
section#buttons .distribusi input{
border: none;
background: #fff600;
text-decoration: none;
margin: 1px;
}
.signin input {
border: none;
background: #E0B0FF;

5
verse/templates/base.html

@ -14,11 +14,6 @@
<body>
{% block main %}
{% endblock main %}
<section id="summary">
</section>
</body>
<script src="{{ url_for('static', filename='js/script.js')}}"></script>
</html>

4
verse/templates/distribusi.html

@ -0,0 +1,4 @@
{% extends "base.html" %}
{% block main %}
{% endblock main %}

13
verse/templates/index.html

@ -1,6 +1,7 @@
{% extends "base.html" %}
{% block main %}
<section id="buttons">
{% if not current_user.is_authenticated %}
<div class="signin">
<a href="/login">
<input type="button" name="button" value="Sign in"></input>
@ -11,6 +12,18 @@
<input type="button" name="button" value="Register"></input>
</a>
</div>
{% else %}
<div class="distribusi">
<a href="/distribusi">
<input type="button" name="button" value="Distribusi"></input>
</a>
</div>
<div class="logout">
<a href="/logout">
<input type="button" name="button" value="Logout"></input>
</a>
</div>
{% endif %}
</section>
{% if current_user.is_authenticated %}

Loading…
Cancel
Save