From 33954dccbeb90fc8443f6887e95c3cf59f5705f5 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 28 Sep 2011 18:06:35 -0400 Subject: [PATCH] implemented tinami sources --- app/views/sources/_info.html.erb | 2 +- app/views/uploads/_image.html.erb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/sources/_info.html.erb b/app/views/sources/_info.html.erb index 5ca63ffd4..2552d19e8 100644 --- a/app/views/sources/_info.html.erb +++ b/app/views/sources/_info.html.erb @@ -4,7 +4,7 @@ <% if source.try(:available?) %>
-

This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => params[:url]), :id => "fetch-data" %>.

+

This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => params[:ref] || params[:url]), :id => "fetch-data" %>.