Sha256: f87db9d6928663a48d5280324ade9cf023b59894e677109a18e08092bd1d56b1

Contents?: true

Size: 1.15 KB

Versions: 15

Compression:

Stored size: 1.15 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("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

15 entries across 15 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/lists/_sidebar.html.haml
fat_free_crm-0.15.2 app/views/lists/_sidebar.html.haml
fat_free_crm-0.16.4 app/views/lists/_sidebar.html.haml
fat_free_crm-0.14.1 app/views/lists/_sidebar.html.haml
fat_free_crm-0.15.1 app/views/lists/_sidebar.html.haml
fat_free_crm-0.16.3 app/views/lists/_sidebar.html.haml
fat_free_crm-0.16.2 app/views/lists/_sidebar.html.haml
fat_free_crm-0.16.1 app/views/lists/_sidebar.html.haml
fat_free_crm-0.16.0 app/views/lists/_sidebar.html.haml
fat_free_crm-0.15.0 app/views/lists/_sidebar.html.haml
fat_free_crm-0.15.0.beta.2 app/views/lists/_sidebar.html.haml
fat_free_crm-0.15.0.beta app/views/lists/_sidebar.html.haml
fat_free_crm-0.14.0 app/views/lists/_sidebar.html.haml
reduced_fat_crm-0.15.0.beta app/views/lists/_sidebar.html.haml
reduced_fat_crm-0.14.0 app/views/lists/_sidebar.html.haml