Skip to content

Commit

Permalink
Update _comment.html.erb (#2387)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkc-al authored and jywarren committed Feb 26, 2018
1 parent 694ae9c commit 869f393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/views/notes/_comment.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
<p class="alert alert-info">Is this a question? <a href="/questions/new?title=<%= comment.body %>">Click here</a> to post it to the <a href="/questions">Questions page</a>.
</p>
<% end %>
+ <% if comment.parent.has_power_tag('activity') && current_user && current_user.id == comment.uid %>
+ <div class="alert alert-info">Have you attempted or completed this activity? Consider <a href="/post?n=15798&tags=replication:<%= comment.nid %>,<%= comment.parent.tagnames.join(',') %>">sharing how it went</a> to help refine and improve it.</div>
+ <% end %>
</div>

<% if current_user %>
Expand Down

0 comments on commit 869f393

Please sign in to comment.