new story: make bookmarklet look less like a button

closes #276
This commit is contained in:
joshua stein 2016-06-01 14:33:29 -05:00
parent 6537e7dc36
commit 647d7d5da8
1 changed files with 7 additions and 11 deletions

View File

@ -116,21 +116,17 @@
</a>
<div id="story_guidelines" style="<%= show_guidelines?? "" :
"display: none;" %>">
<div style="float: right;">
<a href="javascript:{window.open(%22<%= Rails.application.root_url
%>stories/new?url=%22+encodeURIComponent(document.location)+<%
%>%22&title=%22+encodeURIComponent(document.title));%20void(0);}"
style="border: 1px solid #ddd; padding: 0.5em; background-color:
#f8f8f8; line-height: 1.5em; margin-left: 1em;">Submit to
<%= Rails.application.name %></a>
</div>
<ul>
<li><p>
To be able to easily submit a page you're viewing in your browser
to <%= Rails.application.name %>, drag the bookmarklet to the right
to your bookmark bar. You'll be taken to this page with the viewed
page's URL and title.
to <%= Rails.application.name %>, drag this bookmarklet to your
bookmark bar:
[<a href="javascript:{window.open(%22<%= Rails.application.root_url
%>stories/new?url=%22+encodeURIComponent(document.location)+<%
%>%22&title=%22+encodeURIComponent(document.title));%20void(0);}<%
%>">Submit to <%= Rails.application.name %></a>].
You'll be taken to this page with the viewed page's URL and title.
</p></li>
<li><p>