Sha256: 385d39b10d6a1b37fb798990918cbd2df006dc1854d8a3932616013b4ca89794

Contents?: true

Size: 468 Bytes

Versions: 5

Compression:

Stored size: 468 Bytes

Contents

- model_name = controller_name.singularize
- model_klass = model_name.camelcase.constantize

.title_tools
  #buttons
    = view_buttons
  .create_asset
    = link_to_inline("create_#{model_name}".to_sym, send("new_#{model_name}_path"), {text: t("create_#{model_name}".to_sym), class: 'btn-sm btn-primary'})

.title
  %span{id: "create_#{model_name}_title"} #{t controller_name.to_sym}
  = image_tag("loading.gif", size: :thumb, id: "loading", style: "display: none;")

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/entities/_title_bar.html.haml
fat_free_crm-0.22.0 app/views/entities/_title_bar.html.haml
fat_free_crm-0.21.0 app/views/entities/_title_bar.html.haml
fat_free_crm-0.20.1 app/views/entities/_title_bar.html.haml
fat_free_crm-0.20.0 app/views/entities/_title_bar.html.haml