2021-05-24 08:15:54 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Portal za oddajanje besedil</title>
|
2021-11-16 17:45:20 +00:00
|
|
|
<!--<link rel="stylesheet" href="/static/style.css" type="text/css">-->
|
2021-08-22 17:07:19 +00:00
|
|
|
<script src="/static/chart.js"></script>
|
2021-11-16 17:45:20 +00:00
|
|
|
<link rel="stylesheet" href="/static/css/header.css" type="text/css">
|
|
|
|
<link rel="stylesheet" href="/static/css/form.css" type="text/css">
|
|
|
|
<link rel="stylesheet" href="/static/css/simple-grid.css" type="text/css">
|
|
|
|
<link rel="stylesheet" href="/static/css/history.css" type="text/css">
|
2021-05-24 08:15:54 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-11-16 17:45:20 +00:00
|
|
|
<header>
|
|
|
|
<div class="logo"><a href="/"><img src="/static/image/logo-white.svg"/></a></div>
|
|
|
|
</header>
|
|
|
|
<div class="container" style="margin-top:8rem;">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h1 class="title">Koprus SOLAR</h1>
|
|
|
|
<p class="subtitle">Zbiranje besedil za korpus Šolar poteka po naslednjem postopku, ki prinaša tudi točke za napredovanje.</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tab-nav">
|
|
|
|
<a href="/oddaja">Oddaja</a>
|
|
|
|
<a href="/zgodovina" class="active">Zgodovina</a>
|
|
|
|
<a href="/pogodbe">Pogodbe</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<h2>Zgodovina naloženih datotek</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% for item in upload_history %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="history-item">
|
|
|
|
<div class="history-item-date">Dodano {{ item.timestamp.strftime('%d. %m. %Y') }}</div>
|
|
|
|
<div class="history-item-uploader">{{ uploader_names[loop.index - 1] }}</div>
|
|
|
|
<div class="history-item-filecount">Št. datotek: {{ item.upload_file_hashes|length }}</div>
|
|
|
|
<div class="history-item-desc">
|
|
|
|
|
|
|
|
{% set began = False %}
|
|
|
|
{% if institution_names[loop.index - 1] %}
|
|
|
|
{% if began %}, {% endif %} {{ institution_names[loop.index - 1] }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.program %}
|
|
|
|
{% if began %}, {% endif %} {{ item.program }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.subject %}
|
|
|
|
{% if began %}, {% endif %} {{ item.subject }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.subject_custom %}
|
|
|
|
{% if began %}, {% endif %} {{ item.subject_custom }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.grade %}
|
|
|
|
{% if began %}, {% endif %} {{ item.grade }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.text_type %}
|
|
|
|
{% if began %}, {% endif %} {{ item.text_type }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.text_type_custom %}
|
|
|
|
{% if began %}, {% endif %} {{ item.text_type_custom }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.school_year %}
|
|
|
|
{% if began %}, {% endif %} {{ item.school_year }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.grammar_corrections %}
|
|
|
|
{% if began %}, {% endif %} {{ item.grammar_corrections }}
|
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-12 09:11:37 +00:00
|
|
|
<a href="../logout">Odjavi se</a>
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if is_institution_coordinator %}
|
2021-10-12 09:11:37 +00:00
|
|
|
<br><a href="../manage-institution">Upravljaj z institucijo</a>
|
2021-08-22 17:07:19 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if is_admin %}
|
2021-10-12 09:11:37 +00:00
|
|
|
<br><a href="../admin">Administracijski meni</a>
|
2021-08-22 17:07:19 +00:00
|
|
|
{% endif %}
|
2021-09-02 12:40:54 +00:00
|
|
|
<br><a href="mailto:email@example.com">Pomoč</a>
|
2021-05-24 08:15:54 +00:00
|
|
|
<div class="bg"></div>
|
|
|
|
<div id="main-window">
|
|
|
|
<div id="rect1">
|
|
|
|
<div style="padding: 20px;">
|
|
|
|
<div id="logo-container">
|
|
|
|
<img src="/static/image/logo.svg" alt="logo"/>
|
|
|
|
</div>
|
|
|
|
<h1 id="title" style="font-size: 25px; position: relative;">Korpus ŠOLAR</h1>
|
|
|
|
<div class="selection-tabs">
|
2021-10-12 09:11:37 +00:00
|
|
|
<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>
|
2021-05-24 08:15:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="history-container" style="padding: 20px;">
|
|
|
|
{% for item in upload_history %}
|
|
|
|
<div class="history-item">
|
|
|
|
<div class="history-item-date">{{ item.timestamp }}</div>
|
|
|
|
<div class="history-item-uploader">{{ uploader_names[loop.index - 1] }}</div>
|
|
|
|
<div class="history-item-filecount">Št. datotek: {{ item.upload_file_hashes|length }}</div>
|
|
|
|
<div class="history-item-desc">
|
2021-09-02 12:40:54 +00:00
|
|
|
[
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = False %}
|
|
|
|
{% if institution_names[loop.index - 1] %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ institution_names[loop.index - 1] }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.program %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.program }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.subject %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.subject }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.subject_custom %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.subject_custom }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.grade %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.grade }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.text_type %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.text_type }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.text_type_custom %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.text_type_custom }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.school_year %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.school_year }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
|
|
|
{% if item.grammar_corrections %}
|
2021-09-02 12:40:54 +00:00
|
|
|
{% if began %}, {% endif %} {{ item.grammar_corrections }}
|
2021-05-24 08:15:54 +00:00
|
|
|
{% set began = True %}
|
|
|
|
{% endif %}
|
2021-09-02 12:40:54 +00:00
|
|
|
]
|
2021-05-24 08:15:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</br>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="rect2" class="mock-side">
|
2021-08-22 17:07:19 +00:00
|
|
|
<canvas id="myChart" width="400" height="400"></canvas>
|
|
|
|
<script>
|
|
|
|
function drawChart(data) {
|
|
|
|
var ctx = document.getElementById('myChart').getContext('2d');
|
|
|
|
var myChart = new Chart(ctx, {
|
|
|
|
type: 'bar',
|
|
|
|
data: {
|
|
|
|
labels: Object.keys(data),
|
|
|
|
datasets: [{
|
|
|
|
label: 'št. naloženih datotek',
|
|
|
|
data: Object.values(data),
|
|
|
|
backgroundColor: 'rgba(54, 162, 235, 1.0)',
|
|
|
|
borderWidth: 1
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
plugins: {
|
|
|
|
title: {
|
|
|
|
display: true,
|
|
|
|
text: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
scales: {
|
|
|
|
y: {
|
|
|
|
beginAtZero: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
indexAxis: 'y'
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2021-10-12 09:11:37 +00:00
|
|
|
fetch('../topuploads').then(r => r.json()).then(j => drawChart(j));
|
2021-08-22 17:07:19 +00:00
|
|
|
|
|
|
|
</script>
|
2021-05-24 08:15:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|