forked from opentok/opentok-video-embed-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard_patient.ejs
36 lines (29 loc) · 1009 Bytes
/
dashboard_patient.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<%- include('includes/header') %>
<div class="row">
<h1>Patient Dashboard</h1>
<a class="button pull-right" href="/meetings/book">+ Book meeting</a>
</div>
<% if (meetings.current.length > 0) { %>
<h3>Current meeting</h3>
<div class="column meeting-strip">
<% for (var m of meetings.current) { %>
<div class="row meeting-item">
<div class="meeting-item-time grow"><time><%= m.start_time %><time></div>
<div><a class="button" href="/meetings/join/<%= m.id %>">Join meeting</a></div>
</div>
<% } %>
</div>
<% } %>
<h2>Upcoming meetings</h2>
<% if (meetings.upcoming.length > 0) { %>
<div class="column meeting-strip">
<% for (var m of meetings.upcoming) { %>
<div class="row meeting-item">
<div class="meeting-item-time grow"><time><%= m.start_time %></time></div>
</div>
<% } %>
</div>
<% } else { %>
<p>You don't have any upcoming meetings. You can <a href="/meetings/book">book a meeting</a>.</p>
<% } %>
<%- include('includes/footer') %>