diff --git a/app.py b/app.py index 2f51002..c1420f8 100644 --- a/app.py +++ b/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() diff --git a/static/css/history.css b/static/css/history.css index 510d82b..f21baac 100644 --- a/static/css/history.css +++ b/static/css/history.css @@ -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; diff --git a/static/css/history.css.map b/static/css/history.css.map index e826b67..925ac04 100644 --- a/static/css/history.css.map +++ b/static/css/history.css.map @@ -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,UAAU,EAAE,MAAM;EAClB,WAAW,EAAE,GAAG;EAChB,WAAW,EAAE,IAAI;EACjB,KAAK,EDLA,OAAO;;ACOd,EAAG;EACD,SAAS,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;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" diff --git a/static/css/history.scss b/static/css/history.scss index 7dd9c72..c74d1eb 100644 --- a/static/css/history.scss +++ b/static/css/history.scss @@ -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; diff --git a/templates/solar-pogodbe.html b/templates/solar-pogodbe.html index d3c5b3b..3660129 100644 --- a/templates/solar-pogodbe.html +++ b/templates/solar-pogodbe.html @@ -71,7 +71,7 @@