mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-02 13:41:00 -05:00
Revert modifications to menu
This commit is contained in:
@@ -20,63 +20,61 @@
|
||||
= render 'crops/search_bar'
|
||||
|
||||
.navbar-collapse.collapse#navbar-collapse
|
||||
.navbar-right
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: crops_path }
|
||||
= t('.crops')
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.browse_crops'), crops_path
|
||||
%li= link_to t('.seeds'), seeds_path
|
||||
%li= link_to t('.plantings'), plantings_path
|
||||
%li= link_to t('.harvests'), harvests_path
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: members_path }
|
||||
= t('.community')
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.community_map'), places_path
|
||||
%li= link_to t('.browse_members'), members_path
|
||||
%li= link_to t('.posts'), posts_path
|
||||
%li= link_to t('.forums'), forums_path
|
||||
%ul.nav.navbar-nav.navbar-right
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: crops_path }
|
||||
= t('.crops')
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.browse_crops'), crops_path
|
||||
%li= link_to t('.seeds'), seeds_path
|
||||
%li= link_to t('.plantings'), plantings_path
|
||||
%li= link_to t('.harvests'), harvests_path
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: members_path }
|
||||
= t('.community')
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.community_map'), places_path
|
||||
%li= link_to t('.browse_members'), members_path
|
||||
%li= link_to t('.posts'), posts_path
|
||||
%li= link_to t('.forums'), forums_path
|
||||
|
||||
- if member_signed_in?
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: root_path }
|
||||
- if member_signed_in?
|
||||
%li.dropdown<
|
||||
%a.dropdown-toggle{ 'data-toggle': 'dropdown', href: root_path }
|
||||
- if current_member.notifications.unread_count.positive?
|
||||
= t('.your_stuff', unread_count: current_member.notifications.unread_count)
|
||||
- else
|
||||
= t('.current_memberlogin_name', current_memberlogin_name: current_member.login_name)
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.profile'), member_path(current_member)
|
||||
%li= link_to t('.gardens'), gardens_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.plantings'), plantings_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.harvest'), harvests_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.seeds'), seeds_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.posts'), posts_by_author_path(author: current_member.slug)
|
||||
%li
|
||||
- if current_member.notifications.unread_count.positive?
|
||||
= t('.your_stuff', unread_count: current_member.notifications.unread_count)
|
||||
= link_to(t('.inbox_unread', unread_count: current_member.notifications.unread_count),
|
||||
notifications_path)
|
||||
- else
|
||||
= t('.current_memberlogin_name', current_memberlogin_name: current_member.login_name)
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to t('.profile'), member_path(current_member)
|
||||
%li= link_to t('.gardens'), gardens_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.plantings'), plantings_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.harvest'), harvests_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.seeds'), seeds_by_owner_path(owner: current_member.slug)
|
||||
%li= link_to t('.posts'), posts_by_author_path(author: current_member.slug)
|
||||
%li
|
||||
- if current_member.notifications.unread_count.positive?
|
||||
= link_to(t('.inbox_unread', unread_count: current_member.notifications.unread_count),
|
||||
notifications_path)
|
||||
- else
|
||||
= link_to(t('.inbox'), notifications_path)
|
||||
- if current_member.role?(:crop_wrangler) || current_member.role?(:admin)
|
||||
%li.divider{ role: 'presentation' }
|
||||
- if current_member.role?(:crop_wrangler)
|
||||
%li= link_to t('.crop_wrangling'), wrangle_crops_path
|
||||
- if current_member.role?(:admin)
|
||||
%li= link_to t('.admin'), admin_path
|
||||
= link_to(t('.inbox'), notifications_path)
|
||||
- if current_member.role?(:crop_wrangler) || current_member.role?(:admin)
|
||||
%li.divider{ role: 'presentation' }
|
||||
- if current_member.role?(:crop_wrangler)
|
||||
%li= link_to t('.crop_wrangling'), wrangle_crops_path
|
||||
- if current_member.role?(:admin)
|
||||
%li= link_to t('.admin'), admin_path
|
||||
|
||||
|
||||
%li= link_to t('.sign_out'), destroy_member_session_path, method: :delete
|
||||
%li= link_to t('.sign_out'), destroy_member_session_path, method: :delete
|
||||
|
||||
- else
|
||||
%li= link_to t('.sign_in'), new_member_session_path, id: 'navbar-signin'
|
||||
%li= link_to t('.sign_up'), new_member_registration_path, id: 'navbar-signup'
|
||||
|
||||
- else
|
||||
%li= link_to t('.sign_in'), new_member_session_path, id: 'navbar-signin'
|
||||
%li= link_to t('.sign_up'), new_member_registration_path, id: 'navbar-signup'
|
||||
|
||||
|
||||
-# anchor tag for accessibility link to skip the navigation menu
|
||||
%a{ name: 'skipnav' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user