From 96448fc3740a932924cd3f0f84e70caec5daf72e Mon Sep 17 00:00:00 2001 From: Nic Haynes Date: Tue, 20 Mar 2012 19:43:18 -0500 Subject: Add draft label to admin index --- app/views/refinery/blog/admin/posts/_post.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/refinery/blog/admin/posts/_post.html.erb b/app/views/refinery/blog/admin/posts/_post.html.erb index b5018f3..f29db54 100644 --- a/app/views/refinery/blog/admin/posts/_post.html.erb +++ b/app/views/refinery/blog/admin/posts/_post.html.erb @@ -6,6 +6,9 @@ <%= " by #{post.author.username}" if post.author.present? %> + <% if post.draft? %> + Draft + <% end %> <%= link_to refinery_icon_tag("application_go.png"), refinery.blog_post_path(post), :title => t('.view_live_html'), -- cgit v1.2.3 From 31bdd586f221eef0460666d36bb1eed6d53a1e18 Mon Sep 17 00:00:00 2001 From: Nic Haynes Date: Tue, 20 Mar 2012 19:43:30 -0500 Subject: Move draft checkbox for better usability --- app/views/refinery/blog/admin/posts/_form.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/refinery/blog/admin/posts/_form.html.erb b/app/views/refinery/blog/admin/posts/_form.html.erb index 9bfd42a..3cdb8c0 100644 --- a/app/views/refinery/blog/admin/posts/_form.html.erb +++ b/app/views/refinery/blog/admin/posts/_form.html.erb @@ -9,6 +9,11 @@ <%= f.label :title -%> <%= f.text_field :title, :class => 'larger widest' -%> + + + <%= f.check_box :draft %> + <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> +
@@ -50,10 +55,6 @@ :id => 'toggle_advanced_options', :title => t('.toggle_advanced_options') %>

- - <%= f.check_box :draft %> - <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> -