Skip to content

Commit

Permalink
make descriptive tag links move to bottom of page (publiclab#2770)
Browse files Browse the repository at this point in the history
  • Loading branch information
emctackett authored and jywarren committed Jun 5, 2018
1 parent 6817d3c commit 8ae17ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/notes/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= render :partial => "sidebar/related" %>

<div class="col-md-9 note-show<% if @node.status == 4 || @node.status == 0 %> moderated<% end %>">
<% if current_user && @node.tags.length == 0 %><div class="alert alert-warning"><%= raw t('notes.show.note_no_tags') %></div><% end %>
<% if current_user && @node.tags.length == 0 %><div class="alert alert-warning"><%= raw t('notes.show.note_no_tags', url: 'javascript: $(".tag-input").focus();') %></div><% end %>
<% if @node.has_power_tag('status:candidate') %><div class="alert alert-info">This was marked as a candidate activity -- <a href="https://publiclab.org/notes/warren/09-17-2016/what-makes-a-good-activity" >read about how to adapt its content</a> into a fully-fledged, step-by-step activity that can be easily replicated.</div><% end %>
<% if @node.has_power_tag('replication') %><div class="alert alert-info"><%= raw t('notes.show.replication') %> <a href="/n/<%= @node.power_tag('replication') %>"><%= raw t('notes.show.replication_link') %></a>.</div><% end %>
<% if @node.has_power_tag('series') %><div class="alert alert-info"><%= raw t('notes.show.series') %> <a href="/tag/series:<%= @node.power_tag('series') %>"><%= @node.power_tag('series') %></a>.</div><% end %>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/notes/show/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
en:
notes:
show:
note_no_tags: "This note has no tags yet; help connect it to other content by <a onClick=\"$('#taginput').focus()\">adding descriptive tags below</a>."
note_no_tags: "This note has no tags yet; help connect it to other content by <a href='%{url}'>adding descriptive tags below</a>."
replication: "This is an attempt to replicate "
series: "This is part of a series on "
replication_link: "an activity"
Expand Down

0 comments on commit 8ae17ac

Please sign in to comment.