Commit 1193462bb2b780227ccc4a11f3ec0c8115eb2a4f

Authored by Francisco Júnior
1 parent 970e8f50

minor fixes

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
app/helpers/article_helper.rb
... ... @@ -81,8 +81,7 @@ module ArticleHelper
81 81 end
82 82  
83 83 def visibility_mode_options(article, tokenized_children)
84   - content_tag('div',
85   -
  84 + (article.profile.community? ? content_tag('div',
86 85 content_tag('div',
87 86 radio_button(:article, :visibility_mode, 1) +
88 87 content_tag('label', _('For all community members'), :for => 'article_visibility_mode_1', :id => "label_private")) +
... ... @@ -94,7 +93,7 @@ module ArticleHelper
94 93 content_tag('label', _('Fill in the search field to add the exception users to see this content'), :id => "text-input-search-exception-users") +
95 94 token_input_field_tag(:q, 'search-article-privacy-exceptions', {:action => 'search_article_privacy_exceptions'},
96 95 {:focus => false, :hint_text => _('Type in a search term for a user'), :pre_populate => tokenized_children})) :
97   - ''), :style => 'padding-left: 15px;')
  96 + ''), :style => 'padding-left: 15px;') : '' )
98 97 end
99 98  
100 99 def prepare_to_token_input(array)
... ...