changes in history
This commit is contained in:
parent
2de5727ea2
commit
e909ee8405
4
app.py
4
app.py
|
@ -304,12 +304,14 @@ def solar(text):
|
|||
enable_upload_school_contract = False
|
||||
show_upload_form = False
|
||||
collaborators = []
|
||||
institution_id = ""
|
||||
cooperation_history = dict()
|
||||
if current_user_institution:
|
||||
collaborators = portal.solar.get_all_active_institution_users(current_user_institution.id)
|
||||
show_upload_form = True
|
||||
contract_school = portal.solar.get_institution_contract(current_user_institution.id)
|
||||
cooperation_history = portal.solar.get_institution_cooperation_history(current_user_institution.id)
|
||||
institution_id = current_user_institution.id
|
||||
if portal.solar.is_institution_coordinator(current_user_obj.id, current_user_institution.id):
|
||||
contracts_students = portal.solar.get_institution_student_contracts(current_user_institution.id)
|
||||
enable_upload_school_contract = True
|
||||
|
@ -323,7 +325,7 @@ def solar(text):
|
|||
collaborators=collaborators,
|
||||
cooperation_history=cooperation_history,
|
||||
user_id=current_user.id,
|
||||
institution_id=current_user_institution.id,
|
||||
institution_id=institution_id,
|
||||
is_admin=is_admin, is_institution_coordinator=current_user_institution_coordinator)
|
||||
elif text.startswith('admin/') or text == 'admin':
|
||||
users = portal.solar.get_all_users_join_institutions()
|
||||
|
|
|
@ -168,6 +168,8 @@ em {
|
|||
position: relative;
|
||||
height: 3.125rem;
|
||||
border-bottom: 1px solid #848C90; }
|
||||
.history-item .history-item-files-full .file-item:last-child {
|
||||
border-bottom: none; }
|
||||
.history-item .history-item-files-full .file-item .file-icon {
|
||||
position: absolute;
|
||||
width: 1.5rem;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"version": 3,
|
||||
"mappings": "AAAQ,+IAAuI;AAa/I,IAAK;EACH,WAAW,EAAE,oBAAoB;EACjC,SAAS,EAAC,IAAI;EACd,KAAK,EAZC,OAAO;;AAef,IAAK;EACH,SAAS,EAAC,IAAI;EACd,OAAO,EAAC,CAAC;EACT,MAAM,EAAC,CAAC;;ACpBV,EAAG;EACD,SAAS,EAAE,IAAI;EACf,U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sCAAyB;IACvB,OAAO,EAAE,IAAI;IACb,iDAAW;MACT,QAAQ,EAAC,QAAQ;MACjB,MAAM,EAAC,QAAQ;MACf,aAAa,EAAE,iBAAoB;MACnC,4DAAa;QACX,aAAa,EAAC,IAAI;MAEpB,4DAAW;QACT,QAAQ,EAAC,QAAQ;QACjB,KAAK,EAAC,MAAM;QACZ,MAAM,EAAC,MAAM;QACb,IAAI,EAAC,CAAC;QACN,GAAG,EAAC,IAAI;MAEV,4DAAW;QACT,QAAQ,EAAC,QAAQ;QACjB,IAAI,EAAC,IAAI;QACT,GAAG,EAAC,IAAI;QACR,KAAK,EFxEL,OAAO;QEyEP,eAAe,EAAE,IAAI;QACrB,MAAM,EAAC,OAAO;QACd,kEAAQ;UACN,eAAe,EAAE,SAAS;EAKlC,kBAAO;IACL,UAAU,EAAE,KAAK;IACjB,qCAAmB;MAAC,OAAO,EAAC,KAAK;IACjC,yCAAuB;MACrB,OAAO,EAAC,KAAK;MACb,YAAY,EAAC,CAAC;MACd,WAAW,EAAC,CAAC;MACb,WAAW,EAAE,IAAI;IAEnB,qCAAmB;MACjB,OAAO,EAAE,IAAI;IAEf,0CAAwB;MACtB,OAAO,EAAE,KAAK;IAEhB,2CAAyB;MACvB,OAAO,EAAE,KAAK;IAEhB,wCAAsB;MACpB,SAAS,EAAC,cAAc",
|
||||
"sources": ["slovenscina-theme.scss","slovenscina-elements.scss","history.scss"],
|
||||
"names": [],
|
||||
"file": "history.css"
|
||||
|
|
|
@ -60,6 +60,9 @@
|
|||
position:relative;
|
||||
height:3.125rem;
|
||||
border-bottom: 1px solid $grey-dark;
|
||||
&:last-child {
|
||||
border-bottom:none;
|
||||
}
|
||||
.file-icon {
|
||||
position:absolute;
|
||||
width:1.5rem;
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="team-item">
|
||||
<div class="team-item-name">{{item.name}} <span class="team-item-role">{{item.badge_text}}</span></div>
|
||||
<div class="team-item-name">{{item.name}} <span class="team-item-role">{%if item.role == "mentor" %}Mentor{%elif item.role == "coordinator" %}Koordinator{%elif item.role == "other" %}{{item.badge_text}}{%endif%}</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -96,11 +96,6 @@
|
|||
}
|
||||
</style>
|
||||
<script>
|
||||
// set the dimensions and margins of the graph
|
||||
|
||||
|
||||
// append the svg object to the body of the page
|
||||
|
||||
var data;
|
||||
// Parse the Data
|
||||
d3.json("/topuploads-institution/{{institution_id}}").then(function(jsondata) {
|
||||
|
@ -131,6 +126,7 @@
|
|||
var x = d3.scaleLinear()
|
||||
.domain([0,d3.max(data, function (d) { return d.value})])
|
||||
.range([ 0, width]);
|
||||
|
||||
svg.append("g")
|
||||
.attr("transform", "translate(0," + height + ")")
|
||||
.call(d3.axisBottom(x))
|
||||
|
|
Loading…
Reference in New Issue
Block a user