handle contribution for now-unused swf

This commit is contained in:
Emi Matchu 2010-11-15 16:44:57 -05:00
parent 98d908d33c
commit 9fc24a2eab
2 changed files with 12 additions and 5 deletions

View file

@ -13,11 +13,15 @@ module ContributionHelper
end end
def contributed_item(item, adverbial) def contributed_item(item, adverbial)
output do |html| if item
html << 'the' output do |html|
html << link_to(item.name, item, :class => 'contributed-name') html << 'the'
html << adverbial html << link_to(item.name, item, :class => 'contributed-name')
html << image_tag(item.thumbnail_url) html << adverbial
html << image_tag(item.thumbnail_url)
end
else
"data for an item that has since been updated"
end end
end end

View file

@ -0,0 +1,3 @@
# Mirror of the development environment. Designed to allow the ability to plug
# in the production database, while still behaving like development.
require Rails.root.join('config', 'environments', 'development')