app/helpers/foundationstone/application_helper.rb in foundationstone-0.0.2 vs app/helpers/foundationstone/application_helper.rb in foundationstone-0.0.3
- old
+ new
@@ -86,10 +86,10 @@
def localization_bar object
content_tag :ul, class: 'nav nav-tabs translations' do
result = ''
object.translations.each_with_index do |translation, i|
result += content_tag :li, class: ('active' if i == 0) do
- content_tag :a, href: "#translation_#{i}", data: { toggle: 'tab' } do
+ content_tag :a, href: "#tab-#{i}", data: { toggle: 'tab' } do
(!translation.to_s or translation.to_s.empty?) ? t('foundationstone.new_translation') : translation.to_s
end
end
end
result.html_safe