Commit e9d7fcb3 authored by Andreas Valder's avatar Andreas Valder

made schedule printer friendly, the normal schedule should now print nicely on...

made schedule printer friendly, the normal schedule should now print nicely on a single page of A4 paper
parent da17facb
......@@ -25,7 +25,7 @@
</head>
<body>
{% block navbar %}
<nav class="navbar navbar-default navbar-static-top">
<nav class="hidden-print navbar navbar-default navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
......@@ -98,10 +98,10 @@
<div class="col-xs-12 col-md-offset-{{ page_border }} col-md-{{ 12-(2*page_border) }}">
{% endif %}
{% for msg in get_flashed_messages() %}
<div class="alert alert-danger" role="alert">{{ msg }}</div>
<div class="hidden-print alert alert-danger" role="alert">{{ msg }}</div>
{% endfor %}
{% for msg in get_announcements(min_announcement_level) if (not request.cookies['alert-info-'+msg.id|string]) %}
<div class="alert alert-{{levels.get(msg.level, ('info', ''))[0]}}" role="alert">
<div class="hidden-print alert alert-{{levels.get(msg.level, ('info', ''))[0]}}" role="alert">
<a href="#" class="close" data-dismiss="alert" aria-label="close" onclick="Cookies.set('alert-info-{{msg.id}}', '1');">&times;</a>
{{ msg.text|safe }}
</div>
......@@ -111,7 +111,7 @@
</div>
</div>
</div>
<footer class="footer">
<footer class="footer hidden-print">
<div class="container-fluid">
<ul class="list-inline">
<li>
......
......@@ -2,10 +2,10 @@
{% block content %}
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<div class="hidden-print panel-heading">
<h1 class="panel-title">Drehplan</h1>
</div>
<div class="row">
<div class="row hidden-print">
<div style="margin-top: 10px;" class="col-xs-12">
<a href="{{url_for('schedule', kw=kw-1) }}" class="pull-left btn btn-default">{{ "<<" }}</a>
<a href="{{url_for('schedule', kw=kw+1) }}" class="pull-right btn btn-default">{{ ">>" }}</a>
......@@ -17,7 +17,7 @@
<tr><th></th>{% for d in days if (d.index < 5) or (d.lectures|length) > 0%}<th colspan="{{d.maxcol}}">{{ d.date.strftime("%A (%d.%m.%Y)") }}</th>{% endfor %}</tr>
{% for t in times %}
{% set time_loop = loop %}
<tr height="15px">
<tr height="12px">
{% if ((loop.index - 1) is divisibleby 4) %} <td rowspan="4" style="vertical-align: top;">{{ t.strftime("%H:%M") }}</td> {% endif %}
{% for d in days if (d.index < 5) or (d.lectures|length) > 0 %}
{% for i in range(1,d.maxcol+1) %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment