app/views/layouts/settings.html.haml in iugusdk-1.0.5 vs app/views/layouts/settings.html.haml in iugusdk-1.0.6
- old
+ new
@@ -28,29 +28,10 @@
%meta{ name:"apple-mobile-web-app-capable", :content => "yes" }
%body
- %nav{ class: "navbar navbar-default navbar-fixed-top", role: "navigation" }
- .navbar-header
- %button{ class: "navbar-toggle", type: "button", data: { toggle: "collapse", target: ".navbar-ex1-collapse" } }
- %span.sr-only
- Toggle Navigation
- %span.icon-bar
- %span.icon-bar
- %span.icon-bar
- .navbar-brand
- = link_to image_tag('application_logo.png'), IuguSDK::app_main_url
- %div.collapse.navbar-collapse.navbar-ex1-collapse
- %ul.nav.navbar-nav
- %li{ :class => "#{controller_name=='profile'?'active':''}" }
- %a{ :href => profile_settings_path }
- = I18n.t "iugu.profile"
- %li{ class: "#{controller_name=='account'?'active':''}" }
- - if IuguSDK::enable_multiple_accounts == false && current_user.accounts.count <= 1
- = link_to I18n.t("iugu.account"), account_view_path
- - else
- = link_to I18n.t("iugu.accounts"), account_settings_path
+ = render :partial => "iugu/shared/settings.header"
- unless flash[:social] || flash[:group]
- flash.each do |name, msg|
- if msg.is_a? String
.notice.notice-red{ :class => name }