Browse Source

Some last small edits for the day and give some love to fancyboi

current_wdka_release
crunk 3 years ago
parent
commit
59e7679034
  1. 1
      verse/static/css/style.css
  2. 12
      verse/statuspengguna/helper.py
  3. 12
      verse/templates/distribusi.html
  4. 6
      verse/templates/index.html

1
verse/static/css/style.css

@ -141,6 +141,7 @@ a:active {
div.maincontent{
width: 55%;
border: 3px solid #E0B0FF;
margin-top: 0.5em;
padding: 0.5em;
border-style: outset;
}

12
verse/statuspengguna/helper.py

@ -2,16 +2,18 @@ import os
from flask_login import current_user
from usermodel import User
def AreFilesUploaded():
user = User.query.filter_by(email=current_user.email).first()
if user.distribusiname is None:
print("distribusi name is empty")
return False;
return False
userfolder = os.path.join("stash", user.distribusiname)
if os.path.exists(userfolder):
print("folder found, files are uploaded")
return True;
return True
#def IsThemeSelected
#def IsCustomThemePresent
#def IsDistribusiLive
# def IsThemeSelected
# def IsCustomThemePresent
# def IsDistribusiLive

12
verse/templates/distribusi.html

@ -1,5 +1,17 @@
{% extends "base.html" %}
{% block main %}
<div id="buttons">
<div class="overview">
<a href="/">
<input type="button" name="button" value="Overview"></input>
</a>
</div>
<div class="logout">
<a href="/logout">
<input type="button" name="button" value="Logout"></input>
</a>
</div>
</div>
<div id="mainworkflow">
{% block upload %}
{% include "distribusiworkflow/upload.html" %}

6
verse/templates/index.html

@ -35,14 +35,16 @@
</p>
<hr>
<p>
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 <a href="https://tildeverse.org/">Tildeverse</a> or <a href="https://tilde.club/">Tilde club</a>, but also be neither of these ideas.</p>
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 combine the ideas of distribusi with the ideas of a <a href="https://tildeverse.org/">Tildeverse</a> and <a href="https://tilde.club/">Tilde club</a>, but also be neither of these ideas. See a full list of tildeverse members <a href="https://tildeverse.org/members/">here</a>.</p>
<hr>
<p>This project is made for <a href="https://www.wdka.nl/practices/autonomous-practices/">Autonomous Practices </a>at the <a href="https://www.wdka.nl/">WDKA</a> in Rotterdam.</p>
</div>
<!-- a div with all the distribusis listed in the distribusiverse -->
<div id="distribusiverse" class="maincontent">
<h2>List of distribusis</h2>
<ul>
{% for distribusi in distribusies %}
<li><a href="stash/{{distribusies[distribusi]}}/index.html">{{distribusi}}: {{distribusies[distribusi]}}</a></li>
<li>{{distribusi}}: <a href="stash/{{distribusies[distribusi]}}/index.html">{{distribusies[distribusi]}}</a></li>
{% endfor%}
</ul>
</div>

Loading…
Cancel
Save