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

Commit

Permalink
fixed deploy script a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Oct 5, 2008
1 parent 7edfcc8 commit 0af899d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/admin/site_settings/edit.html.erb
@@ -1,7 +1,8 @@
<%= title "Edit Site Settings" -%>
<ul class='grid'>
<% @themes.each do |theme| -%>
<li class='item'>
<% klass = (theme == @settings.user_theme_name) ? 'active' : 'inactive' -%>
<li class='item <%= klass -%>'>
<%= link_to "<img src='#{fetch_theme_preview_admin_site_settings_path(:id => theme)}' alt='#{theme}' />", choose_theme_admin_site_settings_path(:theme => theme) -%>
<%= link_to theme, choose_theme_admin_site_settings_path(:theme => theme) -%>
</li>
Expand Down
1 change: 1 addition & 0 deletions config/deploy.rb
Expand Up @@ -24,6 +24,7 @@
task :sym_files do
run "ln -s #{deploy_to}/shared/attached_files #{current_release}/public/attached_files"
run "ln -s #{deploy_to}/shared/photo_album_photo_images #{current_release}/public/photo_album_photo_images"
run "ln -s #{deploy_to}/shared/themes #{current_release}/themes"
end
task :run_plugin_migrations do
run "cd #{current_release}; export RAILS_ENV=production; rake db:migrate:plugins"
Expand Down
3 changes: 3 additions & 0 deletions public/stylesheets/admin.css
Expand Up @@ -119,3 +119,6 @@ ul.grid li.item img{
ul.grid li.item img:hover {
border: 10px solid #bbb;
}
ul.grid li.item.active img {
border-color: #0084FF;
}

0 comments on commit 0af899d

Please sign in to comment.