Made many buttons and titles more consistent.

This commit is contained in:
Logan Fick
2018-03-12 19:26:55 -04:00
parent 5eadded99c
commit 16a2b0fa18
22 changed files with 57 additions and 57 deletions

View File

@@ -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 %>

View File

@@ -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>