added conference wide information page and linked to the admin sidebar

This commit is contained in:
AnithaPal 2016-07-06 15:30:39 -04:00
parent 710b4d26a4
commit 35afdcead4
5 changed files with 54 additions and 1 deletions

View file

@ -173,6 +173,12 @@ module Admin
end
end
def conference_wide_screen
#To display sponsors in the conference wide information page
@conference = Conference.find_by(short_title: params[:id])
@sponsors = @conference.sponsors
end
private
def conference_params

View file

@ -0,0 +1,13 @@
.container
- if @conference.present?
.row
.col-md-12.text-center
%h2 Upcoming Events
.row
.col-md-12.text-center
%h2 Tweets About Conference
.row
.col-md-12
- if @sponsors.any?
%section#sponsors
= render 'conference/sponsors'

View file

@ -136,3 +136,9 @@
= link_to(admin_conference_roles_path(@conference.short_title)) do
%span.fa.fa-group
Roles
- if can? :show, @conference
%li{:class=> active_nav_li(conference_wide_screen_admin_conference_path(@conference.short_title))}
= link_to(conference_wide_screen_admin_conference_path(@conference.short_title)) do
%span.fa.fa-expand
Conference Wide Information