2021-05-24 08:15:54 +00:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< title > Portal za oddajanje besedil< / title >
2023-01-14 12:45:33 +00:00
< link rel = "icon" href = "/static/favicon.ico" type = "image/x-icon" >
< link rel = "icon" href = "static/favicon.svg" sizes = "any" type = "image/svg+xml" >
2022-11-06 12:51:12 +00:00
< link rel = "stylesheet" href = "{{ROUTE_PREFIX}}/static/css/header.css" type = "text/css" >
< link rel = "stylesheet" href = "{{ROUTE_PREFIX}}/static/css/form.css" type = "text/css" >
< link rel = "stylesheet" href = "{{ROUTE_PREFIX}}/static/css/simple-grid.css" type = "text/css" >
< link rel = "stylesheet" href = "{{ROUTE_PREFIX}}/static/css/contracts.css" type = "text/css" >
2023-01-17 18:09:18 +00:00
< link rel = "stylesheet" href = "{{ROUTE_PREFIX}}/static/css/footer.css" type = "text/css" >
2021-05-24 08:15:54 +00:00
< / head >
< body >
2021-11-26 12:50:32 +00:00
< header >
2022-11-06 12:51:12 +00:00
< div class = "logo" > < a href = "{{ROUTE_PREFIX}}/" > < img src = "{{ROUTE_PREFIX}}/static/image/logo-white.svg" / > < / a > < / div >
2022-02-14 20:56:10 +00:00
< div class = "menu-items" >
{% if is_institution_coordinator %}
2023-01-14 12:45:33 +00:00
< a href = "{{ROUTE_PREFIX}}/manage-institution" > Upravljaj z ekipo< / a >
2022-02-14 20:56:10 +00:00
{% endif %}
{% if is_admin %}
2022-11-06 12:51:12 +00:00
< a href = "{{ROUTE_PREFIX}}/admin" > Administracijski meni< / a >
2022-02-14 20:56:10 +00:00
{% endif %}
2023-01-21 17:02:16 +00:00
< a href = "https://rsdo.slovenscina.eu/zbiranje-besedil-za-korpus-solar" target = "_blank" > Več informacij o sodelovanju< / a >
2022-11-06 12:51:12 +00:00
< a href = "{{ROUTE_PREFIX}}/logout" > Odjava< / a >
2021-11-26 12:50:32 +00:00
< / div >
< / header >
< div class = "container" style = "margin-top:8rem;" >
< div class = "row" >
< div class = "col-12" >
2021-12-15 20:23:26 +00:00
< h1 class = "title" > Korpus Šolar< / h1 >
2021-12-13 20:01:28 +00:00
< p class = "subtitle" > < / p >
2021-11-26 12:50:32 +00:00
< div class = "tab-nav" >
2022-11-06 12:51:12 +00:00
< a href = "{{ROUTE_PREFIX}}/oddaja" > Oddaja besedil< / a >
< a href = "{{ROUTE_PREFIX}}/zgodovina" > Zgodovina sodelovanja< / a >
< a href = "{{ROUTE_PREFIX}}/pogodbe" class = "active" > Ekipa< / a >
2021-11-26 12:50:32 +00:00
< / div >
< / div >
< / div >
2021-12-15 20:23:26 +00:00
<!-- <div class="row">
2021-11-26 12:50:32 +00:00
< div class = "col-12" >
< h2 > Sodelujoči< / h2 >
< / div >
2021-12-15 20:23:26 +00:00
< / div > -->
2023-01-16 17:52:30 +00:00
< div class = "row" >
< div class = "col-6" >
< h2 > Sodelujoči< / h2 >
{% for u in institution_users %}
2022-01-08 15:25:25 +00:00
< div class = "team-item" >
2023-01-16 17:52:30 +00:00
< div class = "team-item-name" > {{u.name}} < span class = "team-item-role" > {{role_map[u.id]}}< / span > < / div >
2022-01-08 15:25:25 +00:00
< / div >
2023-01-16 17:52:30 +00:00
{% endfor %}
2021-11-26 12:50:32 +00:00
2023-01-17 18:09:18 +00:00
{% if cooperation_history |length > 0 %}
2023-01-16 17:52:30 +00:00
< h2 style = "margin-top:2rem" > Zgodovina sprememb< / h2 >
{% for item in cooperation_history %}
< div class = "team-item" >
< div class = "team-item-name" >
{{item.name}}
2023-01-17 18:09:18 +00:00
< span class = "team-item-role" style = "margin-left:0" > {{item.timestamp.strftime('%d. %m. %Y')}} postane {% if item.role == "coordinator"%}koordinator/-ka{% elif item.role == "mentor" %}mentor/-ica{% elif item.role == "other" %}druga vloga{% endif %}< / span >
2023-01-16 17:52:30 +00:00
< / div >
2023-01-16 16:52:59 +00:00
< / div >
2023-01-16 17:52:30 +00:00
{% endfor %}
2023-01-17 18:09:18 +00:00
{% endif %}
2023-01-16 16:52:59 +00:00
< / div >
2021-11-26 12:50:32 +00:00
2023-01-14 12:45:33 +00:00
< div class = "col-6" >
2023-01-16 17:52:30 +00:00
< div id = "my_dataviz_title" >
< h2 > Število oddaj na uporabnika< / h2 >
< div id = "my_dataviz" > < / div >
2023-01-14 12:45:33 +00:00
< / div >
2023-01-16 17:52:30 +00:00
< div id = "my_dataviz__region_title" >
< h2 > Število vseh oddaj po regijah< / h2 >
< div id = "my_dataviz_region" >
2023-01-14 12:45:33 +00:00
2023-01-16 17:52:30 +00:00
< / div >
< div >
< div style = "display:inline-block;width:12px;height:12px;background:#006CB7" > < / div >
< p style = "display:inline-block" > Osnovne šole< / p >
< div style = "margin-left:32px;display:inline-block;width:12px;height:12px;background:#B86D00" > < / div >
< p style = "display:inline-block" > Srednje šole< / p >
< / div >
2023-01-14 12:45:33 +00:00
< / div >
< / div >
< / div >
2021-11-26 12:50:32 +00:00
2022-01-08 15:25:25 +00:00
< / div >
2021-11-26 12:50:32 +00:00
2022-01-08 15:25:25 +00:00
< br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / > < br / >
2021-11-26 12:50:32 +00:00
2023-01-17 18:09:18 +00:00
< footer >
< div class = "container" >
< div class = "row" >
< div class = "col-6" >
< p class = "mb-3.5 font-medium text-sm" > slovenščina.eu< / p >
< ul class = "text-sm font-light gap-3.5 grid md:grid-cols-2 links-grid" >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/prevajalnik" > Prevajalnik< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/razpoznavalnik" > Razpoznavalnik< / a > < / li >
< li > < a class = "hover:text-primary" href = "http://terminoloski.slovenscina.eu" > Terminološki portal< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/prepoznavanje-imenskih-entitet" > Prepoznavanje imenskih entitet< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/ekstrakcija-povezav" > Ekstrakcija povezav< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/odkrivanje-koreferencnosti" > Odkrivanje koreferenčnosti< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/povzemanje" > Povzemanje< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/odgovarjanje-na-vprasanja" > Odgovarjanje na vprašanja< / a > < / li >
< li > < a class = "hover:text-primary" href = "https://slovenscina.eu/razdvoumljanje" > Razdvoumljanje< / a > < / li >
< / ul >
< / div >
< div class = "col-6" >
< div class = "row" >
< div class = "col-4" style = "margin-top:0;" >
< p > < a href = "https://rsdo.slovenscina.eu/" style = "font-weight:400;" > PROJEKT RSDO< / a > < / p >
< / div >
< div class = "col-8" >
< div >
< div class = "logos" >
< img src = "{{ROUTE_PREFIX}}/static/image/mk.svg" alt = "Ministrstvo za kulturo Republike Slovenije" >
< img src = "{{ROUTE_PREFIX}}/static/image/ess.svg" alt = "Evropski sklad za regionalni razvoj" >
< / div >
< p style = "font-size:12px;margin-top:10px;font-weight:300;" > Naložbo sofinancirata Republika Slovenija in Evropska unija iz Evropskega sklada za regionalni razvoj< / p >
< p style = "font-size:12px;" >
< a style = "font-weight:400;" href = "https://www.eu-skladi.si" > https://www.eu-skladi.si< / a >
< / p >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / footer >
2021-09-16 15:25:20 +00:00
2021-05-24 08:15:54 +00:00
< / body >
2021-12-15 20:23:26 +00:00
< script src = "https://d3js.org/d3.v6.js" > < / script >
2022-01-04 17:36:42 +00:00
< style >
#my_dataviz .tick line{
visibility:hidden;
}
#my_dataviz path.domain{
visibility:hidden;
}
2023-01-14 12:45:33 +00:00
#my_dataviz_region .tick line{
visibility:hidden;
}
#my_dataviz_region path.domain{
visibility:hidden;
}
2022-01-04 17:36:42 +00:00
< / style >
2021-11-26 12:50:32 +00:00
< script >
2022-01-04 17:36:42 +00:00
var data;
// Parse the Data
2022-01-23 21:53:11 +00:00
d3.json("/topuploads-institution/{{institution_id}}").then(function(jsondata) {
2022-01-05 18:33:43 +00:00
if(Object.keys(jsondata).length < 1 ) {
2022-02-14 16:37:41 +00:00
document.getElementById("my_dataviz_title").remove();
2022-01-05 18:33:43 +00:00
return;
}
2022-01-04 17:36:42 +00:00
data = [];
2022-01-05 18:33:43 +00:00
console.log(Object.keys(jsondata).length);
var margin = {top: 20, right: 0, bottom: 40, left: 0};
var width = document.getElementById("my_dataviz").clientWidth - margin.left - margin.right;
var height = Object.keys(jsondata).length * 56;
var svg = d3.select("#my_dataviz")
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.style("overflow","visible")
.append("g")
.attr("transform",
"translate(" + margin.left + "," + margin.top + ")");
2022-01-04 17:36:42 +00:00
for(var key in jsondata) {
data.push({'name': key, 'value':jsondata[key]});
}
console.log(data);
// Add X axis
var x = d3.scaleLinear()
.domain([0,d3.max(data, function (d) { return d.value})])
.range([ 0, width]);
2023-01-16 17:52:30 +00:00
2022-01-04 17:36:42 +00:00
svg.append("g")
.attr("transform", "translate(0," + height + ")")
2023-01-16 17:52:30 +00:00
.call(d3.axisBottom(x)/*.ticks(5)*/)
2022-01-04 17:36:42 +00:00
.selectAll("text")
.style("text-anchor", "center");
// Y axis
var y = d3.scaleBand()
2022-01-05 18:33:43 +00:00
.range([ 0, data.length*56 ])
2022-01-04 17:36:42 +00:00
.domain(data.map(function(d) { return d.name; }))
2022-01-05 18:33:43 +00:00
.padding(0);
2022-01-04 17:36:42 +00:00
svg.append("g")
.call(d3.axisLeft(y))
2022-01-05 18:33:43 +00:00
.selectAll("text")
.style("text-anchor", "start")
.style("font-size", "14px")
.attr("transform", "translate(8,-36)");
2022-01-04 17:36:42 +00:00
//Bars
svg.selectAll("myRect")
.data(data)
.enter()
.append("rect")
.attr("x", x(0) )
.attr("y", function(d) { return y(d.name); })
.attr("width", function(d) { return x(d.value); })
2022-01-05 18:33:43 +00:00
.attr("height", 32 )
.attr("fill", "#006CB7");
2023-01-14 12:45:33 +00:00
})
< / script >
< script >
var data;
// Parse the Data
d3.json("/uploadstats-per-region").then(function(jsondata) {
data = [];
console.log(Object.keys(jsondata).length);
var margin = {top: 20, right: 0, bottom: 40, left: 0};
var width = document.getElementById("my_dataviz_region").clientWidth - margin.left - margin.right;
var height = Object.keys(jsondata).length * 56;
var svg = d3.select("#my_dataviz_region")
.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.style("overflow","visible")
.append("g")
.attr("transform",
"translate(" + margin.left + "," + margin.top + ")");
for(var key in jsondata) {
data.push({'name': key, 'value':jsondata[key]});
}
2022-01-05 18:33:43 +00:00
2022-01-04 17:36:42 +00:00
2023-01-14 12:45:33 +00:00
console.log(data);
// Add X axis
var x = d3.scaleLinear()
.domain([0,d3.max(data, function (d) { return Math.max(...d.value)})])
.range([ 0, width]);
2022-01-04 17:36:42 +00:00
2023-01-14 12:45:33 +00:00
svg.append("g")
.attr("transform", "translate(0," + height + ")")
.call(d3.axisBottom(x))
.selectAll("text")
.style("text-anchor", "center");
2022-01-04 17:36:42 +00:00
2023-01-14 12:45:33 +00:00
// Y axis
var y = d3.scaleBand()
.range([ 0, data.length*56 ])
.domain(data.map(function(d) { return d.name; }))
.padding(0);
svg.append("g")
.call(d3.axisLeft(y))
.selectAll("text")
.style("text-anchor", "start")
.style("font-size", "14px")
.attr("transform", "translate(8,-36)");
//Bars
svg.selectAll("myRect")
.data(data)
.enter()
.append("rect")
.attr("x", x(0) )
.attr("y", function(d) { return y(d.name); })
.attr("width", function(d) { return x(d.value[0]); })
.attr("height", 16 )
.attr("fill", "#006CB7");
svg.selectAll("myRect")
.data(data)
.enter()
.append("rect")
.attr("x", x(0) )
.attr("y", function(d) { return y(d.name); })
.attr("width", function(d) { return x(d.value[1]); })
.attr("height", 16 )
.attr("transform", "translate(0,16)")
.attr("fill", "#B86D00");
2022-01-04 17:36:42 +00:00
})
2021-11-26 12:50:32 +00:00
< / script >
2021-05-24 08:15:54 +00:00
< / html >