Sha256: 10c17543e424d98b71f0e50816d729d29e795bd9202318bf5f00e543d5ae1e95

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

- personal ||= false
- caption = personal ? :personal_lists : :global_lists

.panel.lists
  .caption #{t caption}
  %ul
    - if lists.none?
      %div #{t :no_saved_lists}
    - else
      - lists.sort.each_with_index do |item, i|
        %li[item]{ :class => i < lists.size - 1 ? "" : "last" }
          %dt= link_to(truncate(item.name, :length => 25), h(item.url), :title => item.name)
          %tt
            = link_to(url_for(item), :method => :delete, :confirm => t(:confirm_delete, value: 'list'), :remote => true, :class => "list_icon delete_on_hover") do
              %i.fa{:"data-controller" => item.controller, class: get_icon(item.controller)}

  .list_save{ hidden_if(!params[:q]) }
    = link_to(t(:make_current_view_list), '#')

  .list_form{ hidden }
    = simple_form_for(List.new, :remote => true) do |f|
      = f.text_field :name, :size => 25
      = image_tag(asset_path('info_tiny.png'), :title => t(:list_name_info), class: "input_info")
      = f.hidden_field :url
      %input{:type => "hidden", :name => "is_global", :value => (personal ? 0 : 1) }
      %div
        = f.submit( t(:save) )
        #{t :or}
        = link_to(t(:cancel), '#', :class => "cancel")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 app/views/lists/_sidebar.html.haml
fat_free_crm-0.13.5 app/views/lists/_sidebar.html.haml
fat_free_crm-0.13.4 app/views/lists/_sidebar.html.haml
fat_free_crm-0.13.3 app/views/lists/_sidebar.html.haml