Skip to content

Commit

Permalink
Don't wrap hidden and draft labels in ().
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Mar 29, 2012
1 parent fd5c735 commit fa8127a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/app/models/refinery/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ def title_with_meta
title = [self.translations.detect {|t| t.title.present?}.title]
end

title << "<span class='label'>(#{::I18n.t('hidden', :scope => 'refinery.admin.pages.page')})</span>" unless show_in_menu?
title << "<span class='label notice'>(#{::I18n.t('draft', :scope => 'refinery.admin.pages.page')})</span>" if draft?
title << "<span class='label'>#{::I18n.t('hidden', :scope => 'refinery.admin.pages.page')}</span>" unless show_in_menu?
title << "<span class='label notice'>#{::I18n.t('draft', :scope => 'refinery.admin.pages.page')}</span>" if draft?

title.join(' ')
end
Expand Down

0 comments on commit fa8127a

Please sign in to comment.