implemented tinami sources
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<% if source.try(:available?) %>
|
<% if source.try(:available?) %>
|
||||||
<div id="source-info">
|
<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>
|
<ul>
|
||||||
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
|
<li><strong>Artist</strong>: <span id="source-artist"></span></li>
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
<% if params[:url] %>
|
<% if params[:url] %>
|
||||||
<%= image_tag(params[:url], :title => "Preview", :id => "image") %>
|
<%= image_tag(params[:url], :title => "Preview", :id => "image") %>
|
||||||
|
<% if params[:ref] %>
|
||||||
|
<p><strong>Referrer: </strong> <%= params[:ref] %></p>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<p id="scale"></p>
|
<p id="scale"></p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user