more forum stuff
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
<%= f.submit "Update Post", :id => "edit_create_post", class: "btn blue" %>
|
||||
<% end %>
|
||||
<div id="delete_post">
|
||||
<%= button_to "Delete post", @post, :method => "delete", :confirm => "Delete post + comments forever?", class: "btn red" %>
|
||||
<%= button_to "Delete post", @post, :method => "delete", :confirm => "Delete post & comments forever?", class: "btn red right" %>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<%= button_to 'Make new Post', new_blogpost_path, method: "get", class: "btn blue" if mod? %>
|
||||
<div id="posts">
|
||||
<% @posts.each do |p| %>
|
||||
<div class="post">
|
||||
<div class="post" id="post-<%= p.id %>">
|
||||
<div class="post-title">
|
||||
<h2><%= link_to truncate(p.title, length: 60, omission: " …"), p %></h2>
|
||||
<span class="comment-counter">
|
||||
@@ -15,5 +16,4 @@
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= button_to 'Make new Post', new_blogpost_path, method: "get", class: "btn blue" if mod? %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user