From 8d031ed0c717a32f6a5ad28ccd37e748026dc21c Mon Sep 17 00:00:00 2001 From: Johan Bruning Date: Mon, 4 Jul 2011 16:22:48 +0200 Subject: Added ability to disable teaser independent of teaser length I prefer full length articles at all times on blogs and don't like teasers. I added the ability for people to disable teasers so full articles will be shown by default. The teasers can e enabled just like comments from the admin page or trough the normal settings. However not sure if the post partial now is conform standards. Maybe the helper method "blog_post_teaser" could encapsulate the check which is now done in the view and return the full length article instead of a teaser if the teasers are disabled. --- app/views/admin/blog/_submenu.html.erb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views/admin/blog/_submenu.html.erb') diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index 9d06898..25f437b 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -85,6 +85,10 @@ notification_recipients_admin_blog_settings_url(:dialog => true, :height => 400), :class => 'user_comment_icon' %> +
  • + <%= link_to t('.settings.teasers'), + teasers_admin_blog_settings_url, :class => "#{BlogPost.teasers_enabled? ? 'success' : 'failure'}_icon" %> +
  • -- cgit v1.2.3