File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<%#
2- Full post view, containing all details and interactions.
2+ " Full post view, containing all details and interactions.
33
44 Instance variables:
55 ? @category : Category the post belongs to, if any
1313 Variables:
1414 post : the Post instance to display
1515 ? float_notice : whether to display the float notice
16- %>
16+ " %>
1717
1818<% float_notice ||= false %>
1919<% category ||= defined?(@category) && @category.id == post.category_id ? @category : post.category %>
259259 <% end %>
260260 <% elsif current_user . present? %>
261261 <% if post . pending_suggested_edit? %>
262- < span class ="tools--item "> suggested edit pending...</ span >
262+ <%= link_to 'suggested edit pending...' ,
263+ suggested_edit_url ( post . pending_suggested_edit . id ) ,
264+ class : "tools--item" %>
263265 <% elsif post_type . is_freely_editable %>
264266 <%= render 'posts/edit_link' , post : post %>
265267 <% else %>
You can’t perform that action at this time.
0 commit comments