Differential D11397 Diff 29706 plugins/messageviewer/bodypartformatter/semantic/templates/semantic.html
Changeset View
Changeset View
Standalone View
Standalone View
plugins/messageviewer/bodypartformatter/semantic/templates/semantic.html
1 | <div style="margin: 0px 5%; padding: 10px; border: 2px solid {{ style.frameColor }}; margin-bottom:10px; position:relative;"> | 1 | <div style="margin: 0px 5%; padding: 10px; border: 2px solid {{ style.frameColor }}; margin-bottom:10px; position:relative;"> | ||
---|---|---|---|---|---|
2 | <div style="position: absolute; top: 4px; right: 4px;"> | 2 | <div style="position: absolute; top: 4px; right: 4px;"> | ||
3 | <a href="x-kmail:/bodypart/0//semanticAction">{% icon "view-calendar" small _("Add reservation to calendar.") %}</a> | 3 | <a href="x-kmail:/bodypart/0//semanticAction">{% icon "view-calendar" small _("Add reservation to calendar.") %}</a> | ||
4 | </div> | 4 | </div> | ||
5 | {% for elem in data %} | 5 | {% for elem in data %} | ||
6 | {% with elem.reservation as item %} | 6 | {% with elem.reservation as item %} | ||
7 | {% if item.className == "FlightReservation" %} | 7 | {% if item.className == "FlightReservation" %} | ||
8 | {% include ":/org.kde.messageviewer/semantic/flightreservation.html" %} | 8 | {% include ":/org.kde.messageviewer/semantic/flightreservation.html" %} | ||
9 | {% elif item.className == "LodgingReservation" %} | 9 | {% elif item.className == "LodgingReservation" %} | ||
10 | {% include ":/org.kde.messageviewer/semantic/lodgingreservation.html" %} | 10 | {% include ":/org.kde.messageviewer/semantic/lodgingreservation.html" %} | ||
11 | {% elif item.className == "TrainReservation" %} | 11 | {% elif item.className == "TrainReservation" %} | ||
12 | {% include ":/org.kde.messageviewer/semantic/trainreservation.html" %} | 12 | {% include ":/org.kde.messageviewer/semantic/trainreservation.html" %} | ||
13 | {% elif item.className == "BusReservation" %} | ||||
14 | {% include ":/org.kde.messageviewer/semantic/busreservation.html" %} | ||||
13 | {% endif %} | 15 | {% endif %} | ||
14 | 16 | | |||
15 | {% if not forloop.last %} | 17 | {% if not forloop.last %} | ||
16 | <hr/> | 18 | <hr/> | ||
17 | {% endif %} | 19 | {% endif %} | ||
18 | {% endwith %} | 20 | {% endwith %} | ||
19 | {% endfor %} | 21 | {% endfor %} | ||
20 | </div> | 22 | </div> |