Refactor browsed object loading

This commit is contained in:
John Firebaugh 2013-10-04 14:37:22 -07:00
parent a4e38ea695
commit 6157280d19
4 changed files with 39 additions and 53 deletions

View file

@ -1,5 +1,5 @@
<div class="note">
<a class="icon link permalink deemphasize" href="/?note=<%- note.id %>"><span><%- I18n.t('javascripts.notes.show.permalink', { id: note.id }) %></span></a>
<a class="icon link permalink deemphasize" href="/browse/note/<%- note.id %>"><span><%- I18n.t('javascripts.notes.show.permalink', { id: note.id }) %></span></a>
<% if (note.comments.some(function (comment) { return !comment.user })) { %>
<small class="warning"><%- I18n.t('javascripts.notes.show.anonymous_warning') %></small>
<% } %>