update oqs sidebar

This commit is contained in:
Aung Myo
2018-08-20 16:42:30 +06:30
parent 5c73de2aff
commit 4d83a8ebe8
2 changed files with 5 additions and 6 deletions

View File

@@ -19,8 +19,10 @@
<a href="javascript:void(0);" class="bars"></a> <a href="javascript:void(0);" class="bars"></a>
<% if current_login_employee.role == "administrator" || current_login_employee.role == "manager" || current_login_employee.role == "account" %> <% if current_login_employee.role == "administrator" || current_login_employee.role == "manager" || current_login_employee.role == "account" %>
<a class="navbar-brand" href="<%=dashboard_path%>" style="margin-left: 20px;"> <a class="navbar-brand" href="<%=dashboard_path%>" style="margin-left: 20px;">
<% else %> <% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %>
<a class="navbar-brand" href="<%=origami_dashboard_path%>" style="margin-left: 20px;"> <a href="<%= origami_dashboard_path %>">
<%else%>
<a class="navbar-brand" href="" style="margin-left: 20px;">
<% end %> <% end %>
<% else %> <% else %>
<a class="navbar-brand m-0" href="<%= origami_dashboard_path%>"> <a class="navbar-brand m-0" href="<%= origami_dashboard_path%>">

View File

@@ -35,14 +35,11 @@
<% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %> <% elsif current_login_employee.role == "supervisor" || current_login_employee.role == "cashier" || current_login_employee.role == "waiter" %>
<a href="<%= origami_dashboard_path %>"> <a href="<%= origami_dashboard_path %>">
<%end%> <%end%>
<a href="#"> <a href="">
<i class="material-icons">home</i> <i class="material-icons">home</i>
<span><%= t :dashboard %></span> <span><%= t :dashboard %></span>
</a> </a>
</li> </li>
<% if current_login_employee.role == "kitchen" %>
<li class="header"><%= t :main_navigation %></li>
<% end %>
<% if can? :menage, OrderQueueStation %> <% if can? :menage, OrderQueueStation %>
<li> <li>
<a href="<%= oqs_root_path %>"> <a href="<%= oqs_root_path %>">