app/views/spina/admin/pages/edit.html.haml in spina-0.8.3 vs app/views/spina/admin/pages/edit.html.haml in spina-0.9.0

- old
+ new

@@ -1,5 +1,17 @@ -- content_for(:tertiary_navigation) do +- content_for :header_actions do + - if Spina.config.locales.size > 1 + .pull-right{data: {dropdown: true}} + = link_to '#', class: 'button button-round button-hollow button-small', data: {trigger: 'dropdown', target: '#locales'} do + = icon('comment') + = @locale.upcase + + %ul#locales + - Spina.config.locales.each do |locale| + %li + = link_to t("languages.#{locale}"), "?locale=#{locale}", style: ('font-weight: 600' if @locale.to_s == locale.to_s) + +- content_for :tertiary_navigation do %nav.tabs %ul - @tabs.each_with_index do |tab, i| %li{class: (i==0 ? 'active' : '')} = link_to t("spina.pages.#{tab}"), "##{tab}"