forked from hiway/freedive
Disable unimplemented paths in menu
This commit is contained in:
parent
6cbcd313ee
commit
01e5bb7467
1 changed files with 13 additions and 19 deletions
|
@ -12,7 +12,7 @@
|
|||
</.navbar_brand>
|
||||
|
||||
<.navbar_menu id="navbar_top">
|
||||
<%= if @current_user do %>
|
||||
<%!-- <%= if @current_user do %>
|
||||
<.navbar_start>
|
||||
<.navbar_item has-dropdown is-hoverable>
|
||||
<.navbar_link>
|
||||
|
@ -50,7 +50,7 @@
|
|||
</.navbar_dropdown>
|
||||
</.navbar_item>
|
||||
</.navbar_start>
|
||||
<% end %>
|
||||
<% end %> --%>
|
||||
|
||||
<.navbar_end>
|
||||
<%= if @current_user do %>
|
||||
|
@ -58,7 +58,7 @@
|
|||
<%= @current_user.email %>
|
||||
</.navbar_item>
|
||||
|
||||
<.navbar_item has-dropdown is-hoverable>
|
||||
<%!-- <.navbar_item has-dropdown is-hoverable>
|
||||
<.navbar_link>
|
||||
System
|
||||
</.navbar_link>
|
||||
|
@ -75,7 +75,7 @@
|
|||
<.link>Services</.link>
|
||||
</.navbar_item>
|
||||
</.navbar_dropdown>
|
||||
</.navbar_item>
|
||||
</.navbar_item> --%>
|
||||
<% end %>
|
||||
<.navbar_item has-dropdown is-hoverable>
|
||||
<.navbar_link>
|
||||
|
@ -84,22 +84,16 @@
|
|||
|
||||
<.navbar_dropdown>
|
||||
<%= if @current_user do %>
|
||||
<.navbar_item>
|
||||
<.link href={~p"/users/settings"}>
|
||||
Settings
|
||||
</.link>
|
||||
</.navbar_item>
|
||||
<.navbar_item>
|
||||
<.link href={~p"/users/log_out"} method="delete">
|
||||
Log out
|
||||
</.link>
|
||||
</.navbar_item>
|
||||
<.link href={~p"/users/settings"} class="navbar-item">
|
||||
Settings
|
||||
</.link>
|
||||
<.link href={~p"/users/log_out"} method="delete" class="navbar-item">
|
||||
Log out
|
||||
</.link>
|
||||
<% else %>
|
||||
<.navbar_item>
|
||||
<.link href={~p"/users/log_in"}>
|
||||
Log in
|
||||
</.link>
|
||||
</.navbar_item>
|
||||
<.link href={~p"/users/log_in"} class="navbar-item">
|
||||
Log in
|
||||
</.link>
|
||||
<% end %>
|
||||
</.navbar_dropdown>
|
||||
</.navbar_item>
|
||||
|
|
Loading…
Reference in a new issue