mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Sponsors dashboard
Removed explicit rendering of sponsors
This commit is contained in:
parent
e38a654af1
commit
67dab025a9
9 changed files with 139 additions and 4 deletions
17
app/controllers/admin/sponsors_controller.rb
Normal file
17
app/controllers/admin/sponsors_controller.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module Admin
|
||||
class SponsorsController < ApplicationController
|
||||
before_filter :verify_organizer
|
||||
|
||||
def update
|
||||
if @conference.update_attributes(params[:conference])
|
||||
redirect_to(admin_conference_sponsors_path(
|
||||
conference_id: @conference.short_title),
|
||||
notice: 'Sponsorships were successfully updated.')
|
||||
else
|
||||
redirect_to(admin_conference_sponsors_path(
|
||||
conference_id: @conference.short_title),
|
||||
alert: 'Sponsorships updation failed')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue