Files
danbooru/app/views/static/bookmarklet.html.erb
evazion 6a984de3d5 views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
2020-01-25 01:52:18 -06:00

17 lines
684 B
Plaintext

<% page_title "Upload Bookmarklet" %>
<div id="c-static">
<div id="a-bookmarklet">
<h1>Bookmarklet</h1>
<p>
<%= link_to "Post to #{Danbooru.config.app_name}", "javascript:location.href='#{request.protocol + request.host_with_port}/uploads/new?url='+encodeURIComponent(location.href)+'&ref='+encodeURIComponent(document.referrer)" %>
| <%= link_to "Batch to #{Danbooru.config.app_name}", "javascript:location.href='#{request.protocol + request.host_with_port}/uploads/batch?url='+encodeURIComponent(location.href)" %>
</p>
<div class="prose">
<%= format_text(WikiPage.find_by_title("help:bookmarklet_notice")&.body) %>
</div>
</div>
</div>