Archived
Made many buttons and titles more consistent.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<% title "Edit News: #{@post.title}" %>
|
||||
<% title "Edit Post: #{@post.title}" %>
|
||||
|
||||
<h1>Edit post</h1>
|
||||
<h1>Edit Post: #{@post.title}</h1>
|
||||
<%= form_for @post do |f|%>
|
||||
<%= f.text_field :title %>
|
||||
<%= render partial: "md_editor", locals: {name: "blogpost[content]", content: @post.content} %>
|
||||
<p><%= f.submit "Update Post", class: "btn blue left" %></p>
|
||||
<% end %>
|
||||
<p><%= button_to "Delete post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>
|
||||
<div class="clear"></div>
|
||||
<p><%= button_to "Delete Post", @post, method: "delete", data: {confirm: "Delete post & comments forever?"}, class: "btn red right" %></p>
|
||||
<div class="clear"></div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<% title "News" %>
|
||||
|
||||
<h1>News</h1>
|
||||
<%= link_to 'Make new Post', new_blogpost_path, class: "btn blue" if mod? %>
|
||||
<%= link_to 'New Post', new_blogpost_path, class: "btn blue" if mod? %>
|
||||
<div id="posts">
|
||||
<% @posts.each do |p| %>
|
||||
<div class="item-group with-avatar" id="post-<%= p.id %>">
|
||||
|
||||
Reference in New Issue
Block a user