From 63bc158e548ac099a5d314364ad45ca1f552308c Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Thu, 14 May 2015 00:51:19 +0200 Subject: [PATCH] Uprava zakladnich template - pridava se "admin bar" --- mamweb/templates/base.html | 7 +++++++ mamweb/templates/home.html | 2 +- mamweb/templates/menu.html | 4 ++-- seminar/templates/seminar/AktualniZadani.html | 1 - seminar/templates/seminar/cislo.html | 9 ++++----- seminar/templates/seminar/problem.html | 5 ++--- seminar/templates/seminar/rocnik.html | 3 +-- 7 files changed, 17 insertions(+), 14 deletions(-) diff --git a/mamweb/templates/base.html b/mamweb/templates/base.html index 23ca8289..4aa19173 100644 --- a/mamweb/templates/base.html +++ b/mamweb/templates/base.html @@ -12,6 +12,13 @@ + +
+ {% if view.object %} + Objekt {{ view.object }}: {{ view.object }} + {% if view.object.admin_url %}[admin]{% endif %} + {% endif %} +
Korespondenční seminář M&M diff --git a/mamweb/templates/home.html b/mamweb/templates/home.html index e7c89743..90c697d4 100644 --- a/mamweb/templates/home.html +++ b/mamweb/templates/home.html @@ -3,7 +3,7 @@ {% block content %}

Vítejte na testwebu MaM!

-

Administrátorské rozhraní (admin/admin) +

Administrátorské rozhraní (admin/admin)

{% endblock content %} diff --git a/mamweb/templates/menu.html b/mamweb/templates/menu.html index a06803b8..2c024d70 100644 --- a/mamweb/templates/menu.html +++ b/mamweb/templates/menu.html @@ -3,10 +3,10 @@

MENU

-

Aktuální zadání +

Aktuální zadání

diff --git a/seminar/templates/seminar/AktualniZadani.html b/seminar/templates/seminar/AktualniZadani.html index e24aa5b0..ba07d6d8 100644 --- a/seminar/templates/seminar/AktualniZadani.html +++ b/seminar/templates/seminar/AktualniZadani.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load staticfiles sekizai_tags %} {% block content %}
diff --git a/seminar/templates/seminar/cislo.html b/seminar/templates/seminar/cislo.html index ad2aa215..cec05a88 100644 --- a/seminar/templates/seminar/cislo.html +++ b/seminar/templates/seminar/cislo.html @@ -1,23 +1,22 @@ {% extends "base.html" %} -{% load staticfiles sekizai_tags %} {% block content %}

Číslo {{ cislo }}

-

Ročník {{ cislo.rocnik }} +

Ročník {{ cislo.rocnik }}

Zadané problémy

Řešené problémy

@@ -28,7 +27,7 @@ # Jméno {% for p in problemy %} - {{ p.cislo_zadani.cislo }}.{{ p.kod }} + {{ p.cislo_zadani.cislo }}.{{ p.kod }} {% endfor %} Sum Celkem diff --git a/seminar/templates/seminar/problem.html b/seminar/templates/seminar/problem.html index 646bf7a0..acb3d075 100644 --- a/seminar/templates/seminar/problem.html +++ b/seminar/templates/seminar/problem.html @@ -1,12 +1,11 @@ {% extends "base.html" %} -{% load staticfiles sekizai_tags %} {% block content %}

Problém {{ problem.kod_v_rocniku }} {{ problem.nazev }}

-

Zadáno v čísle {{ problem.cislo_zadani.kod }}, -

řešeno v čísle {{ problem.cislo_reseni.kod }}, +

Zadáno v čísle {{ problem.cislo_zadani.kod }}, +

řešeno v čísle {{ problem.cislo_reseni.kod }},

Text

diff --git a/seminar/templates/seminar/rocnik.html b/seminar/templates/seminar/rocnik.html index 4d202129..5bf2852b 100644 --- a/seminar/templates/seminar/rocnik.html +++ b/seminar/templates/seminar/rocnik.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load staticfiles sekizai_tags %} {% block content %}
@@ -9,7 +8,7 @@