mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-28 08:09:16 +00:00
71 lines
2.1 KiB
Django/Jinja
71 lines
2.1 KiB
Django/Jinja
{% from "pedagogy/macros.jinja" import display_star %}
|
|
|
|
{% if is_fragment %}
|
|
{% include "pedagogy/fragments/ue_detail.jinja" %}
|
|
{% else %}
|
|
{% extends "core/base.jinja" %}
|
|
|
|
{% block additional_css %}
|
|
<link rel="stylesheet" href="{{ static('pedagogy/css/pedagogy.scss') }}">
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
{% trans %}UE Details{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="pedagogy">
|
|
<div id="ue_detail">
|
|
<button onclick='(function(){
|
|
// If comes from the guide page, go back with history
|
|
if (document.referrer.replace(/\?(.+)/gm,"").endsWith(`{{ url("pedagogy:guide") }}`)){
|
|
window.history.back();
|
|
return;
|
|
}
|
|
// Simply goes to the guide page
|
|
window.location.href = `{{ url("pedagogy:guide") }}`;
|
|
})()' hidden>{% trans %}Back{% endtrans %}</button>
|
|
|
|
<h1>{{ object.code }} - {{ object.title }}</h1>
|
|
<br>
|
|
<div class="ue-quick-info-container">
|
|
<div class="hours-cm">
|
|
<b>{% trans %}CM: {% endtrans %}</b>{{ object.hours_CM }}
|
|
</div>
|
|
<div class="hours-td">
|
|
<b>{% trans %}TD: {% endtrans %}</b>{{ object.hours_TD }}
|
|
</div>
|
|
<div class="hours-tp">
|
|
<b>{% trans %}TP: {% endtrans %}</b>{{ object.hours_TP }}
|
|
</div>
|
|
<div class="hours-te">
|
|
<b>{% trans %}TE: {% endtrans %}</b>{{ object.hours_TE }}
|
|
</div>
|
|
<div class="hours-the">
|
|
<b>{% trans %}THE: {% endtrans %}</b>{{ object.hours_THE }}
|
|
</div>
|
|
|
|
<div class="department">
|
|
{{ object.department }}
|
|
</div>
|
|
<div class="credit-type">
|
|
{{ object.credit_type }}
|
|
</div>
|
|
<div class="semester">
|
|
{{ object.get_semester_display() }}
|
|
</div>
|
|
</div>
|
|
|
|
<br>
|
|
|
|
{% include "pedagogy/fragments/ue_detail.jinja" %}
|
|
|
|
{{ comments }}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|
|
{% endif %}
|