Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

disable bookmarklet if not logged in

  • Loading branch information...
commit 6881db8bfca12ba4285b16f4b24fb385468c6e15 1 parent 7065e28
@ednapiranha authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 templates/shared/footer.html
View
4 templates/shared/footer.html
@@ -1,6 +1,8 @@
<section class="footer">
<ul>
- <li><a href="javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://refrig.in/bookmarklet',l=d.location,e=encodeURIComponent,p='?u='+e(l.href),u=f+p;try{if(!/^(.*\.)?refrig[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0)" class="bookmarklet_button">Refrig bookmarklet</a><div class="tooltip url"><div class="pointer_up"><div class="pointer_up_inner"></div></div>Drag this to your browser bookmark bar</div></li>
+ {% if user %}
+ <li><a href="javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://refrig.in/bookmarklet',l=d.location,e=encodeURIComponent,p='?u='+e(l.href),u=f+p;try{if(!/^(.*\.)?refrig[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a =function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();}void(0)" class="bookmarklet_button">Refrig bookmarklet</a><div class="tooltip url"><div class="pointer_up"><div class="pointer_up_inner"></div></div>Drag this to your browser bookmark bar</div></li>
+ {% endif %}
<li><a href="/dashboard">Dashboard</a></li>
{% if user %}
<li><a href="/yours">Your posts</a></li>
Please sign in to comment.
Something went wrong with that request. Please try again.