Link to snipt in API if public.

master
Nick Sergeant 2015-09-24 16:53:55 -04:00
parent 0a9bef3d8d
commit 6182b43868
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,9 @@
<li class="raw">
<a href="<%= snipt.raw_url %>">Raw</a> /
<a href="<%= snipt.raw_url %>?nice">Raw Nice</a>
<% if (snipt.public) { %>
/ <a href="/api/public/snipt/<%= snipt.id %>/?format=json">API</a>
<% } %>
</li>
</ul>
</footer>

View File

@ -169,6 +169,9 @@
<li class="raw">
<a href="{{ snipt.get_raw_url }}">Raw</a> /
<a href="{{ snipt.get_raw_url }}?nice">Raw Nice</a>
{% if snipt.public %}
/ <a href="/api/public/snipt/{{ snipt.id }}/?format=json">API</a>
{% endif %}
</li>
{% if detail and snipt.public %}
<li class="tweet">