mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
* Move authentication status to partial and include on each page * Move toolbar to partial Co-authored-by: Sulka Haro <sulka@sulka.net>
34 lines
1.8 KiB
Plaintext
34 lines
1.8 KiB
Plaintext
<div id="toolbar">
|
|
<h1 class="customTitle">Nightscout</h1>
|
|
|
|
<%if (type !== 'index') { %>
|
|
<a href="/" class="closeButton button-close"><span>X</span></a>
|
|
<% } %>
|
|
|
|
<%if (type === 'food') { %>
|
|
<div id="buttonbar">
|
|
<b> <span class="translate">Status</span>:</b> <span id="fe_status" class="translate">Not loaded</span>
|
|
</div>
|
|
<% } %>
|
|
<%if (type === 'profile') { %>
|
|
<div id="buttonbar">
|
|
<b> <span class="translate">Status</span>:</b> <span class="pe_status translate">Not loaded</span>
|
|
</div>
|
|
<% } %>
|
|
<%if (type === 'index') { %>
|
|
<div id="buttonbar" role="navigation" aria-label="Menu" >
|
|
<a id="editbutton" class="tip" original-title="Edit Mode" aria-label="Edit Mode" href="#" style="display:none;"><i class="icon-edit"></i></a>
|
|
<a id="testAlarms" class="tip" original-title="Alarm Test / Smartphone Enable" aria-label="Alarm Test / Smartphone Enable" href="#"><i class="icon-volume"></i></a>
|
|
<a id="drawerToggle" class="tip" original-title="Settings" aria-label="Settings" href="#"><i class="icon-menu"></i></a>
|
|
<a id="lockedToggle" class="tip" original-title="Token needed for Care Portal" aria-label="Token needed for Care Portal" href="#" style="display:none;"><i class="icon-lock"></i></a>
|
|
<a id="treatmentDrawerToggle" class="tip" original-title="Care Portal" aria-label="Care Portal" href="#" style="display:none;"><i class="icon-plus"></i></a>
|
|
<a id="boluscalcDrawerToggle" class="tip" original-title="Bolus Wizard" aria-label="Bolus Wizard" href="#" style="display:none;"><i class="icon-calc"></i></a>
|
|
</div>
|
|
<% } %>
|
|
</div>
|
|
|
|
<%if (title) { %>
|
|
<div class="toolbar-title">
|
|
<h2 class="translate"><%= title %></h1>
|
|
</div>
|
|
<% } %> |