Simplify sidebar and navigation
Check existence of supporter levels
This commit is contained in:
parent
59933115fc
commit
0982be8579
21 changed files with 93 additions and 169 deletions
|
|
@ -3,55 +3,27 @@
|
|||
%li.nav-header
|
||||
=@conference.short_title
|
||||
Settings
|
||||
- if activated == "Conference"
|
||||
%li.active= link_to "Conference", "#"
|
||||
- else
|
||||
%li= link_to "Conference", admin_conference_path(@conference.short_title)
|
||||
- if activated == "Levels"
|
||||
%li.active= link_to "Supporter Levels", "#"
|
||||
- else
|
||||
%li= link_to "Supporter Levels", admin_conference_supporter_levels_path(@conference.short_title)
|
||||
- if activated == "Call for Papers"
|
||||
%li.active= link_to "Call for Papers", "#"
|
||||
- else
|
||||
%li= link_to "Call for Papers", admin_conference_cfp_info_path(@conference.short_title)
|
||||
- if activated == "Venue"
|
||||
%li.active= link_to "Venue", "#"
|
||||
- else
|
||||
%li= link_to "Venue", admin_conference_venue_info_path(@conference.short_title)
|
||||
- if activated == "Rooms"
|
||||
%li.active= link_to "Rooms", "#"
|
||||
- else
|
||||
%li= link_to "Rooms", admin_conference_rooms_list_path(@conference.short_title)
|
||||
- if activated == "Tracks"
|
||||
%li.active= link_to "Tracks", "#"
|
||||
- else
|
||||
%li= link_to "Tracks", admin_conference_tracks_list_path(@conference.short_title)
|
||||
- if activated == "Event Types"
|
||||
%li.active= link_to "Event Types", "#"
|
||||
- else
|
||||
%li= link_to "Event Types", admin_conference_eventtype_list_path(@conference.short_title)
|
||||
- if activated == "Difficulty Levels"
|
||||
%li.active= link_to "Difficulty Levels", "#"
|
||||
- else
|
||||
%li= link_to "Difficulty Levels", admin_conference_difficulty_levels_path(@conference.short_title)
|
||||
- if activated == "Social Events"
|
||||
%li.active= link_to "Social Events", "#"
|
||||
- else
|
||||
%li= link_to "Social Events", admin_conference_social_events_path(@conference.short_title)
|
||||
- if activated == "Emails"
|
||||
%li.active= link_to "Emails", "#"
|
||||
- else
|
||||
%li= link_to "Emails", admin_conference_email_settings_path(@conference.short_title)
|
||||
- if activated == "Diet"
|
||||
%li.active= link_to "Dietary Choices", "#"
|
||||
- else
|
||||
%li= link_to "Dietary Choices", admin_conference_dietary_list_path(@conference.short_title)
|
||||
- if activated == "Questions"
|
||||
%li.active= link_to "Questions", "#"
|
||||
- else
|
||||
%li= link_to "Questions", admin_conference_questions_path(@conference.short_title)
|
||||
- if activated == "volunteers"
|
||||
%li.active= link_to "Volunteer Options", "#"
|
||||
- else
|
||||
%li= link_to "Volunteer Options", admin_conference_volunteer_options_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_path(@conference.short_title))}
|
||||
= link_to "Conference", admin_conference_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_venue_info_path(@conference.short_title))}
|
||||
= link_to "Venue", admin_conference_venue_info_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_cfp_info_path(@conference.short_title))}
|
||||
= link_to "Call for Papers", admin_conference_cfp_info_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_rooms_list_path(@conference.short_title))}
|
||||
= link_to "Rooms", admin_conference_rooms_list_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_tracks_list_path(@conference.short_title))}
|
||||
= link_to "Tracks", admin_conference_tracks_list_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_eventtype_list_path(@conference.short_title))}
|
||||
= link_to "Event Types", admin_conference_eventtype_list_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_difficulty_levels_path(@conference.short_title))}
|
||||
= link_to "Difficulty Levels", admin_conference_difficulty_levels_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_social_events_path(@conference.short_title))}
|
||||
= link_to "Social Events", admin_conference_social_events_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_supporter_levels_path(@conference.short_title))}
|
||||
= link_to "Supporter Levels", admin_conference_supporter_levels_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_email_settings_path(@conference.short_title))}
|
||||
= link_to "Emails", admin_conference_email_settings_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_questions_path(@conference.short_title))}
|
||||
= link_to "Questions", admin_conference_questions_path(@conference.short_title)
|
||||
%li{:class=> active_nav_li(admin_conference_volunteers_info_path(@conference.short_title))}
|
||||
= link_to "Volunteers", admin_conference_volunteers_info_path(@conference.short_title)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
.container-fluid
|
||||
.row-fluid
|
||||
.span3
|
||||
= render 'admin/conference/sidebar', :activated => "Conference"
|
||||
= render 'admin/conference/sidebar'
|
||||
.span9
|
||||
= semantic_form_for(@conference, :url => admin_conference_path(@conference.short_title),:html => {:multipart => true}) do |f|
|
||||
= f.input :title, :hint => "The full name of the conference, such as 'OpenSUSE Conference 2013'"
|
||||
|
|
@ -17,4 +17,4 @@
|
|||
= image_tag @conference.logo(:thumb)
|
||||
= f.input :logo, :label => "Conference Logo", :hint => "This will be displayed on the front page."
|
||||
= f.input :html_export_path, :hint => "The path for static HTML exports"
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue