stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

meetings.html (2197B)


      1 {% extends 'base.html' %}
      2 
      3 {% block title %}Meetings{% endblock %}
      4 
      5 {% block content %}
      6 	{% with messages = get_flashed_messages() %}
      7 	{% if messages %}
      8 		{% for message in messages %}
      9 		<div id="messagebanner"><p>{{ message }}</p></div>
     10 		{% endfor %}
     11 	{% endif %}
     12 	{% endwith %}
     13 	<section class="hours-grid">
     14 	{% if ongoingMeetings is defined %}
     15 		<section class="ongoing">
     16 			<h2 style="color:red">Ongoing</h2>
     17 			{% for ongoing in ongoingMeetings %}
     18 			<a href="{{ url_for('meetings.meeting',meeting_id=ongoing['meeting_id']) }}"><div class="action-button">{{ ongoing.timestamp.date().isoformat() }} <a style="color:red" href="{{ ongoing['location'] }}" target="_blank"><div class="action-button">Join</div></a></div>
     19 				<p>{{ ongoing['meeting_description'] }} </p>
     20 				<p>{{ ongoing['expected_end'].time().isoformat(timespec='minutes') }}</p>
     21 			</a>
     22 			{% endfor %}
     23 		</section>
     24 	{% endif %}
     25 	{% if upcomingMeetings %}
     26 		<section class="upcoming">
     27 			<h2>Upcoming:</h2>
     28 			{%- for upcoming in upcomingMeetings %}
     29 			<a href="{{ url_for('meetings.meeting',meeting_id=upcoming['meeting_id']) }}"><div>{{ upcoming.timestamp.date().isoformat() }} @ {{ upcoming.timestamp.time().isoformat(timespec='minutes') }}</div>
     30 				<p>{{ upcoming['meeting_description'] }}</p>
     31 			</a>
     32 			{%- endfor %}
     33 		</section>
     34 	{% endif %}
     35 	{% if pastMeetings %}
     36 		<section style="margin-bottom:1em;">
     37 			<h2>Past Meetings:</h2>
     38 			{%- for meeting in pastMeetings %}
     39 			<div style="padding-bottom:1em;">
     40 			<a href="{{ url_for('meetings.meeting',meeting_id=meeting['meeting_id']) }}"><div>{{ meeting.timestamp.date().isoformat() }} @ {{ meeting.timestamp.time().isoformat(timespec='minutes') }}</div>{% if allOldMeetings %}<div>{{meeting['meeting_description']}}</div>{% endif %}</a>
     41 			</div>
     42 			{%- endfor %}
     43 			{% if not allOldMeetings %}<a href="{{ url_for('meetings.past_meetings') }}" class="action-button">View older meetings</a>{% endif %}
     44 			{% if allOldMeetings %}<a href="{{ url_for('meetings.meetings') }}"class="action-button">Back to meetings</a>{% endif %}
     45 		</section>
     46 	{% endif %}
     47 	<a href="{{ url_for('meetings.new_meeting') }}" class="action-button">Schedule Meeting</a>
     48 	</section>
     49 {% endblock %}