mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-27 15:33:22 -05:00
Get rid of the admin layout Get rid of the navbar custom style, use bootstrap-sass variables instead Get rid of all the scaffold files
21 lines
624 B
Ruby
21 lines
624 B
Ruby
class Admin::TracksController < ApplicationController
|
|
before_filter :verify_organizer
|
|
|
|
def show
|
|
respond_to do |format|
|
|
format.html { render :tracks_list}
|
|
format.json { render :json => @conference.tracks.to_json }
|
|
end
|
|
end
|
|
|
|
def update
|
|
if @conference.update_attributes(params[:conference])
|
|
redirect_to(admin_conference_tracks_list_path(:conference_id => @conference.short_title), :notice => 'Tracks were successfully updated.')
|
|
else
|
|
redirect_to(admin_conference_tracks_list_path(:conference_id => @conference.short_title), :notice => 'Tracks update failed.')
|
|
end
|
|
|
|
end
|
|
|
|
end
|