Separated ŠOLAR from other portals.

This commit is contained in:
msinkec
2021-10-12 11:11:37 +02:00
parent 7d9d2b175c
commit cead80ed79
16 changed files with 803 additions and 1317 deletions

View File

@@ -7,12 +7,12 @@
<script src="/static/chart.js"></script>
</head>
<body>
<a href="/solar/logout">Odjavi se</a>
<a href="../logout">Odjavi se</a>
{% if is_institution_coordinator %}
<br><a href="/solar/manage-institution">Upravljaj z institucijo</a>
<br><a href="../manage-institution">Upravljaj z institucijo</a>
{% endif %}
{% if is_admin %}
<br><a href="/solar/admin">Administracijski meni</a>
<br><a href="../admin">Administracijski meni</a>
{% endif %}
<br><a href="mailto:email@example.com">Pomoč</a>
<div class="bg"></div>
@@ -24,9 +24,9 @@
</div>
<h1 id="title" style="font-size: 25px; position: relative;">Korpus ŠOLAR</h1>
<div class="selection-tabs">
<button onclick="window.location.replace('/solar/oddaja');" class="selection-tab-button">ODDAJA</button>
<button onclick="window.location.replace('/solar/zgodovina');" class="selection-tab-button selected">ZGODOVINA</button>
<button onclick="window.location.replace('/solar/pogodbe');" class="selection-tab-button">POGODBE</button>
<button onclick="window.location.replace('../oddaja');" class="selection-tab-button">ODDAJA</button>
<button onclick="window.location.replace('../zgodovina');" class="selection-tab-button selected">ZGODOVINA</button>
<button onclick="window.location.replace('../pogodbe');" class="selection-tab-button">POGODBE</button>
</div>
</div>
<div id="history-container" style="padding: 20px;">
@@ -113,7 +113,7 @@
}
});
}
fetch('/solar/topuploads').then(r => r.json()).then(j => drawChart(j));
fetch('../topuploads').then(r => r.json()).then(j => drawChart(j));
</script>
</div>