diff --git a/app/helpers/article_helper.rb b/app/helpers/article_helper.rb index 2da58d2..98699df 100644 --- a/app/helpers/article_helper.rb +++ b/app/helpers/article_helper.rb @@ -8,19 +8,32 @@ module ArticleHelper 'div', check_box(:article, :published) + content_tag('label', _('This article must be published (visible to other people)'), :for => 'article_published') - ) + (article.parent && article.parent.forum? && controller.action_name == 'new' ? + ) + + + (article.profile.has_members? ? + content_tag( + 'div', + check_box(:article, :allow_members_to_edit) + + content_tag('label', _('Allow all members to edit this article'), :for => 'article_allow_members_to_edit') + ) : + '') + + + (article.parent && article.parent.forum? && controller.action_name == 'new' ? hidden_field_tag('article[accept_comments]', 1) : content_tag( 'div', check_box(:article, :accept_comments) + content_tag('label', (article.parent && article.parent.forum? ? _('This topic is opened for replies') : _('I want to receive comments about this article')), :for => 'article_accept_comments') )) + + content_tag( 'div', check_box(:article, :notify_comments) + content_tag('label', _('I want to receive a notification of each comment written by e-mail'), :for => 'article_notify_comments') + observe_field(:article_accept_comments, :function => "$('article_notify_comments').disabled = ! $('article_accept_comments').checked") - ) + (article.can_display_hits? ? + ) + + + (article.can_display_hits? ? content_tag( 'div', check_box(:article, :display_hits) + -- libgit2 0.21.2