Sha256: 32d357fe9594cc339ec450315418e09a19f7679101a41fdd70b1624a264794cf

Contents?: true

Size: 748 Bytes

Versions: 2

Compression:

Stored size: 748 Bytes

Contents

- purse ||= @purse
.maxwidth
  .header
    %h5.title
      Purse `#{purse.slug}`
      = link_to '[~]', edit_purse_path(purse)
      = link_to '[view GameUI]', gameui_purse_path(purse)
      = link_to '[view]', purse_path(purse)
      (#{purse.positions.length})

    = link_to '[+position]', new_position_path({ purse_id: purse.id })
    = link_to '[+long]',     new_position_path({ purse_id: purse.id, long_or_short: Iro::Strategy::LONG })
    = link_to '[+short]',    new_position_path({ purse_id: purse.id, long_or_short: Iro::Strategy::SHORT })

  - if params[:template] == 'gameui'
    .mini-inputs
      = form_for purse, html: { class: 'd-flex' } do |f|
        = render '/iro/purses/form_extra_fields', f: f
        = f.submit '>'

  %br

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.22 app/views/iro/purses/_header.haml
iron_warbler-2.0.7.21 app/views/iro/purses/_header.haml