.contextual
  = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
  = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
  = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings]
  = contextual_links_for

= boot_page_title

.tabbable
  %ul.nav.nav-tabs
    %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}}

.tab-content
  #tab-bookings.tab-pane.active= render 'show_bookings'
  #tab-info.tab-pane= render "form"
  #tab-attachments.tab-pane= render 'show_attachments'

= render 'bookings/sidebar'

.contextual
  = icon_link_to 'only_credit_bookings', url_for(:only_credit_bookings => true) unless params[:only_credit_bookings]
  = icon_link_to 'only_debit_bookings', url_for(:only_debit_bookings => true) unless params[:only_debit_bookings]
  = icon_link_to 'all_bookings', @account if params[:only_credit_bookings] || params[:only_debit_bookings]
  = icon_link_to :print, :format => :pdf, :by_value_period => params[:by_value_period], :years => params[:years], :per_page => 10000
  = contextual_links_for

= boot_page_title

.tabbable
  %ul.nav.nav-tabs
    %li.active= link_to t_title(:journal, Account), '#tab-bookings', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:info, Account), '#tab-info', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}}

.tab-content
  #tab-bookings.tab-pane.active= render 'show_bookings'
  #tab-info.tab-pane= render "form"
  #tab-attachments.tab-pane= render 'show_attachments'

= render 'bookings/sidebar'

Add print/pdf link for accounts view.
Add print/pdf link for accounts view.
