Sat, 10 Jun 2017 22:30:55 +0300
Lisätty pysäkkiryhmän aikataulunäkymä
| 0 | 1 | <html> |
| 2 | <head> | |
|
11
e18ad36fbbf5
Lisätty favicon, korjattu tr()-funktio joka ei olettunut suomen kieleen (vaan kääntämättömään)
Teemu Piippo <teemu@hecknology.net>
parents:
4
diff
changeset
|
3 | <link rel="icon" type="image/png" href="/static/favicon.png" /> |
| 0 | 4 | <meta charset='UTF-8' /> |
| 5 | ||
| 6 | <style> | |
| 7 | body | |
| 8 | { | |
| 4 | 9 | font-family: "Oxygen-Sans", FreeSans, Arial, sans-serif; |
| 0 | 10 | background: white; |
| 11 | color: black; | |
| 12 | margin: 0; | |
| 13 | padding: 0; | |
| 14 | font-size: 24pt; | |
| 15 | } | |
| 16 | h1 | |
| 17 | { | |
| 18 | padding-top: 10pt; | |
| 19 | padding-bottom: 10pt; | |
| 20 | text-align: center; | |
| 21 | background: #dc9e00; | |
| 22 | background: linear-gradient(to bottom, #dc9e00 0%,#eaaf19 49%,#dc9e00 92%,#906700 100%); | |
| 23 | color: white; | |
| 24 | } | |
| 25 | a | |
| 26 | { | |
| 27 | color: inherit; | |
| 28 | text-decoration: none; | |
| 29 | } | |
| 30 | a:hover | |
| 31 | { | |
| 32 | text-decoration: underline; | |
| 33 | } | |
| 34 | #aikataulu | |
| 35 | { | |
| 36 | width:100%; | |
| 37 | margin: auto; | |
| 38 | } | |
| 39 | #aikataulu td | |
| 40 | { | |
| 41 | text-align: center; | |
| 42 | } | |
| 43 | td, th, body | |
| 44 | { | |
| 45 | font-size: 24pt; | |
| 46 | } | |
| 47 | ||
| 48 | .sarake-aika, .sarake-tunniste | |
| 49 | { | |
| 50 | width: 15%; | |
| 51 | } | |
| 52 | ||
| 53 | h1 | |
| 54 | { | |
| 55 | font-variant: small-caps; | |
| 56 | } | |
| 57 | </style> | |
| 4 | 58 | <!--<title>Ajovuoro #{{numero}}: {{linja}} {{selite}}</title>--> |
| 59 | <title>{{linja}} {{selite}}</title> | |
| 0 | 60 | </head> |
| 61 | <body> | |
| 4 | 62 | <h1> |
| 63 | {% if yö %} | |
| 64 | 🌙 | |
| 65 | {% endif %} | |
| 66 | <!--Ajo {{numero}}: -->{{linja}} {{selite}}</h1> | |
| 0 | 67 | <table id='aikataulu'> |
| 68 | <tr> | |
| 69 | <th class='sarake-aika'>Aika</th> | |
| 70 | <th class='sarake-linja'>Viite</th> | |
| 2 | 71 | <th class='sarake-nimi'>Nimi</th> |
| 72 | <th class='sarake-alue'>Alue</th> | |
| 0 | 73 | </tr> |
| 74 | {% for rivi in reitti %} | |
| 75 | <tr> | |
| 76 | <td class='sarake-aika'>{{rivi['aika']}}</td> | |
| 77 | <td class='sarake-tunniste'> | |
| 78 | <a href="/pysäkki/{{rivi['tunniste']}}">{{rivi['tunniste']}}</a> | |
| 79 | </td> | |
| 80 | <td class='sarake-nimi'> | |
| 81 | <a href="/pysäkki/{{rivi['tunniste']}}">{{rivi['nimi']}}</a> | |
| 82 | </td> | |
| 2 | 83 | <td class='sarake-alue'> |
| 84 | {{rivi['alue'] or ''}} | |
| 85 | </td> | |
| 0 | 86 | </tr> |
| 87 | {% endfor %} | |
| 88 | </table> | |
| 89 | </body> | |
| 4 | 90 | </html> |