Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
integrated crowdsound widget into admin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Nov 14, 2008
1 parent 63f72e4 commit b0ed73b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/site_settings_controller.rb
Expand Up @@ -39,10 +39,10 @@ def choose_theme
@settings.user_theme_name = params[:theme]
@settings.save
flash[:notice] = "The theme has been changed to #{params[:theme]}"
redirect_to :action => 'edit'
redirect_to :action => 'choose_theme'
else
flash.now[:error] = "The theme selected doesn't seem to be installed. This is an error."
render :action => 'edit'
render :action => 'choose_theme'
end
else
# Render the listing to choose from
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/admin.html.erb
Expand Up @@ -54,6 +54,7 @@
</div>
<div id='sidebar'>
<%= yield :sidebar -%>
<script type='text/javascript' src='http://crowdsound.com/widgets/init?&aid=718&width=250'></script>
</div>
</div>
</div>
Expand Down

0 comments on commit b0ed73b

Please sign in to comment.