implemented tinami sources

This commit is contained in:
albert
2011-09-28 18:06:35 -04:00
parent 600fe67444
commit 33954dccbe
2 changed files with 5 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<% if source.try(:available?) %>
<div id="source-info">
<p>This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => params[:url]), :id => "fetch-data" %>.</p>
<p>This looks like a <%= source.site_name %> upload. <%= link_to "Fetch data", source_path(:format => "json", :url => params[:ref] || params[:url]), :id => "fetch-data" %>.</p>
<ul>
<li><strong>Artist</strong>: <span id="source-artist"></span></li>

View File

@@ -1,4 +1,8 @@
<% if params[:url] %>
<%= image_tag(params[:url], :title => "Preview", :id => "image") %>
<% if params[:ref] %>
<p><strong>Referrer: </strong> <%= params[:ref] %></p>
<% end %>
<p id="scale"></p>
<% end %>