include mixins
include mixins_day

						
.new_flex_zero
	.container-fluid
		button(class="btn btn-success btn-xs", onclick="history.back();", style="margin-bottom: 5px;")
			span(class="glyphicon glyphicon-ok", aria-hidden="true")
			span 
			span Zurück
			
		- var red_class = litinfo.decoration_hint_red ? "litpanel_red" : "litpanel_black";
		- litinfo.celebration = litinfo.celebration.replace("\\n", "<br/>");
		- litinfo.celebration_add = litinfo.celebration_add.replace("\n", "<br/>");
		- litinfo.infos = litinfo.infos.replace("\\n","<br/>");
		- var celebration_class = "";
		- if(litinfo.decoration_hint == 2) celebration_class = "litpanel_bold";
		- if(litinfo.decoration_hint == 1) celebration_class = "litpanel_italic";
		form(id="control", style="min-height: min-content;")
			table(width="100%")
				tr
					td(colspan=2, width="25%")
					td(colspan=2, class=["litpanel_day_mobile_littime", red_class], style="text-align: center; width: 50%;") #{litinfo.time}
					td(colspan=2, width="25%")
				tr
					td(colspan=2, width="25%")
					td(colspan=2, style="text-align: center; width: 50%;")
						p(style="white-space: nowrap; margin-bottom: 0px;", class=["litpanel_day_mobile", red_class]) #{date.weekday_short}, #{date.day}. #{date.month_short} #{date.year} 
					td(colspan=2, style="text-align: right; width: 25%;")
				tr
					td(colspan=6, class="litpanel_month_week_weekday litpanel_celebration_parent")
						span(class=["litpanel_celebration", celebration_class, red_class]) !{litinfo.celebration}
				if litinfo.celebration_add != ""
					tr
						td(colspan=6, class=["litpanel_month_week_weekday", "litpanel_celebration_parent", red_class])
							span(class="litpanel_celebration_add") !{litinfo.celebration_add}
				if litinfo.infos != ""
					tr
						td(colspan=6, class="litpanel_month_week_weekday litpanel_celebration_parent")
							span(class="litpanel_infos") !{litinfo.infos}	

.new_flex_one(style="overflow: auto; padding-left: 15px; padding-right: 15px; padding-top: 15px;")
	+pevent_with_thereafter(date.date, event, true, "timeline")
