Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use local photo object instead of the instance variable.

  • Loading branch information...
commit 11143b2683a406bc04f0b7e88e096dc1e681552a 1 parent ab60818
@skorfmann skorfmann authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/helpers/application_helper.rb
View
6 app/helpers/application_helper.rb
@@ -4,11 +4,11 @@ def commit_link(commit_sha, link_text = nil)
end
def license_link(photo)
- link_to @photo[:license_name], @photo[:license_url], :class => 'license', :target => '_blank'
+ link_to photo[:license_name], photo[:license_url], :class => 'license', :target => '_blank'
end
def flickr_photo_backlink(photo)
- link_text = "#{@photo[:username]} - \"#{@photo[:title]}\""
- link_to link_text, @photo[:url_photopage], :target => '_blank'
+ link_text = "#{photo[:username]} - \"#{photo[:title]}\""
+ link_to link_text, photo[:url_photopage], :target => '_blank'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.