Made many buttons and titles more consistent.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<h3>New comment</h3>
|
||||
<h3>New Comment</h3>
|
||||
<%= form_for [@post, @comment] do |f| %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content} %>
|
||||
<p><%= f.submit class: "btn blue" %></p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<% title "Edit Comment: #{@comment.blogpost.title}" %>
|
||||
|
||||
<h1>Edit comment</h1>
|
||||
<h1>Edit Comment</h1>
|
||||
|
||||
<%= form_for [@comment.blogpost, @comment] do |f| %>
|
||||
<%= render partial: "md_editor", locals: {name: "comment[content]", content: @comment.content} %>
|
||||
<p><%= f.submit "Update Comment", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
<p><%= button_to "Delete comment", [@comment.blogpost, @comment] , method: "delete", data: {confirm: "Delete comment forever?"}, class: "btn red right" %></p>
|
||||
<div class="clear"></div>
|
||||
<p><%= button_to "Delete Comment", [@comment.blogpost, @comment] , method: "delete", data: {confirm: "Delete comment forever?"}, class: "btn red right" %></p>
|
||||
<div class="clear"></div>
|
||||
|
||||
Reference in New Issue
Block a user