mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
- Added a permission to show or hide update version information on that dashboard as a card that will only show when new update info is available and not yet dismissed.
- Updated Lists so list items added will have their fist letter auto-capitalized
- Updated Lists so list items are searched against the products before being added to the list, so we have store info more commonly in lists
- Updated Products so new products will have their first letter capitalized automatically
- Updated the dashboard to show the Update Available card if this is enbaled in permissions.
- The dashboard card only shows for System Admin roles.
- The dashboard card is enabled by default
- The dashboard card is pulled from the GitLab releases RSS feed.
- The RSS Feed is only checked every 30 minutes using node-cron
- Updated System Configuration to have a toggle for the update available card
- Added a bell icon to the top and slide out navigation, shown when a new update is available, if update available is enabled in system configuration.
43 lines
2.7 KiB
HTML
43 lines
2.7 KiB
HTML
<template name="headerBar">
|
|
<ul id="drop-manage" class="dropdown-content">
|
|
|
|
</ul>
|
|
<nav>
|
|
<div class="nav-wrapper blue darken-4">
|
|
<a href="#" class="brand-logo center {{#if $eq myTheme 'dark'}}white-text{{/if}}" id="brandLogo">Get My</a>
|
|
<a href="#" data-target="mobile-demo" class="sidenav-trigger {{#if $eq myTheme 'dark'}}white-text{{/if}}"><i class="material-icons">menu</i></a>
|
|
<ul class="right hide-on-med-and-down">
|
|
{{#if currentUser}}
|
|
<li><a href="#" id="mylists" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Lists</a></li>
|
|
<li><a href="#" id="mymenus" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Menus</a></li>
|
|
<li><a href="#" id="myTasks" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Tasks</a></li>
|
|
<li><a href="#" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}" id="mySettings">My Settings</a></li>
|
|
{{#if isInRole 'systemadmin'}}
|
|
<li><a href="#" id="manage" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">Manage</a></li>
|
|
{{/if}}
|
|
<li class="signOut {{#if $eq myTheme 'dark'}}white-text{{/if}}"><a href="#" class="signOut">Log Out</a></li>
|
|
{{#if $eq updateExists true}}
|
|
<li><a href="#!"><i class="material-icons white-text navBtn" id='dashboard'>notifications</i></a></li>
|
|
{{/if}}
|
|
{{else}}
|
|
<li><a href="#!" id="login" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">Login</a></li>
|
|
{{/if}}
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
<ul class="sidenav" id="mobile-demo">
|
|
{{#if currentUser}}
|
|
<li><a href="#!" id="mylists" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Lists</a></li>
|
|
<li><a href="#!" id="mymenus" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Menus</a></li>
|
|
<li><a href="#!" id="myTasks" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Tasks</a></li>
|
|
<li><a href="#!" class="navBtn" id="mySettings {{#if $eq myTheme 'dark'}}white-text{{/if}}">My Settings</a></li>
|
|
{{#if isInRole 'systemadmin'}}
|
|
<li><a href="#!" id="manage" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">Manage</a></li>
|
|
<li><a href="#!"><i class="material-icons">notifications</i></a></li>
|
|
{{/if}}
|
|
<li><a href="#!" class="signOut {{#if $eq myTheme 'dark'}}white-text{{/if}}">Sign Out</a></li>
|
|
{{else}}
|
|
<li><a href="#!" id="login" class="navBtn {{#if $eq myTheme 'dark'}}white-text{{/if}}">Login</a></li>
|
|
{{/if}}
|
|
</ul>
|
|
</template>
|