From f1fd3208bdd477992608efab9af0d304668ebc19 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sat, 23 Nov 2013 14:07:32 +0100 Subject: [PATCH] Template fixes - Agenda overview: Fixed padding of duration column. - Agenda overview: Optimize header information for small devices with bootstrap's row-fluid class. - Fixed text align in assignment detail template. --- openslides/agenda/static/styles/agenda.css | 1 - .../agenda/static/styles/agenda_sort.css | 4 +- .../agenda/templates/agenda/overview.html | 52 ++++++++++--------- .../assignment/assignment_detail.html | 2 +- 4 files changed, 31 insertions(+), 28 deletions(-) diff --git a/openslides/agenda/static/styles/agenda.css b/openslides/agenda/static/styles/agenda.css index 0c591d880..9b02ab5a1 100644 --- a/openslides/agenda/static/styles/agenda.css +++ b/openslides/agenda/static/styles/agenda.css @@ -11,7 +11,6 @@ tr.topline td { } table#agendatime { - float: right; width: auto; margin-bottom: 1em; font-size: 12px; diff --git a/openslides/agenda/static/styles/agenda_sort.css b/openslides/agenda/static/styles/agenda_sort.css index 39866ec2d..1e0eedeff 100644 --- a/openslides/agenda/static/styles/agenda_sort.css +++ b/openslides/agenda/static/styles/agenda_sort.css @@ -54,8 +54,8 @@ ol.agenda_list { } .agenda_list .openclose { width: 40px; float: left; min-height: 1px; } -.agenda_list .duration { width: 92px; float: right; min-height: 1px; padding-right: 25px; text-align: right; } -.agenda_list .manage { width: 200px; float: right; min-height: 1px; padding-left: 5px; } +.agenda_list .duration { width: 92px; float: right; min-height: 1px; text-align: right; } +.agenda_list .manage { width: 200px; float: right; min-height: 1px; padding-left: 15px; } .agenda_list .title { float: left; padding-left: 5px;} .agenda_list .optional { float: left; } .agenda_list .opener_closer { float: left; margin-right: 8px; margin-left:-4px;} diff --git a/openslides/agenda/templates/agenda/overview.html b/openslides/agenda/templates/agenda/overview.html index e7b9a9158..e40a4ab2e 100644 --- a/openslides/agenda/templates/agenda/overview.html +++ b/openslides/agenda/templates/agenda/overview.html @@ -43,31 +43,35 @@ - {% if perms.agenda.can_see_orga_items %} - {% if start and end %} - - - - - - - - - -
{% trans "Start of event" %}:{{ start|date:"DATETIME_FORMAT" }}
{% trans "Estimated end" %}:{{ end|date:"DATETIME_FORMAT" }}
- {% else %} -
- {% trans 'Set start time of event' %} -
- {% endif %} - {% endif %} - +
+
+ + {{ items|length }} + {% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %} + +
+
+ {% if perms.agenda.can_see_orga_items %} + {% if start and end %} + + + + + + + + + +
{% trans "Start of event" %}:{{ start|date:"DATETIME_FORMAT" }}
{% trans "Estimated end" %}:{{ end|date:"DATETIME_FORMAT" }}
+ {% else %} + {% trans 'Set start time of event' %} + {% endif %} + {% endif %} +
+
- {{ items|length }} - {% blocktrans count counter=items|length %}item{% plural %}items{% endblocktrans %} - diff --git a/openslides/assignment/templates/assignment/assignment_detail.html b/openslides/assignment/templates/assignment/assignment_detail.html index eed245690..5620b62af 100644 --- a/openslides/assignment/templates/assignment/assignment_detail.html +++ b/openslides/assignment/templates/assignment/assignment_detail.html @@ -150,7 +150,7 @@ {% for poll in polls %}