Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 2c93a98

Browse files
Add shortcuts to creating jobs and invitations from account menu
1 parent 9434ce3 commit 2c93a98

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

app/views/shared/_navbar.html.erb

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,31 @@
134134
<% end %>
135135

136136
<% else %>
137-
138137
<%= content_tag(:li) do %>
139-
<%= link_to 'My profile', user_profile_path(current_user) %>
140-
<% end %>
138+
<%= link_to('#', class: 'dropdown-toggle', data: {toggle: 'dropdown'}) do %>
139+
My Account
140+
<%= fa_icon('caret-down') %>
141+
<% end %>
141142

142-
<%= content_tag(:li) do %>
143-
<%= link_to('Logout', destroy_user_session_path) %>
144-
<% end %>
143+
<%= content_tag(:ul, class: 'dropdown-menu') do %>
144+
<%= content_tag(:li) do %>
145+
<%= link_to 'New Job Post', new_job_path %>
146+
<% end %>
147+
148+
<%= content_tag(:li) do %>
149+
<%= link_to 'New Slack Group Invitation', invitations_path %>
150+
<% end %>
145151

152+
<%= content_tag(:li) do %>
153+
<%= link_to 'My Profile', user_profile_path(current_user) %>
154+
<% end %>
155+
156+
<%= content_tag(:li) do %>
157+
<%= link_to('Logout', destroy_user_session_path) %>
158+
<% end %>
159+
160+
<% end %>
161+
<% end %>
146162
<% end %>
147163
<% end %>
148164
<% end %>

0 commit comments

Comments
 (0)