Sha256: 8b792ca32e0ec0dee2f2fb19169848c24382a6f77d0bd75192a19c9b77852d55

Contents?: true

Size: 1.02 KB

Versions: 15

Compression:

Stored size: 1.02 KB

Contents

- content_for :main do

  %h1.mapping_icon URL Mappings
  .dehighlight URL Mappings allow you to map a source URL (what the user asks for) to a target URL (the page the user actually gets served).

  %div(style="margin-top: 10px;")
    = icon_to "Create New Mapping", "/admin/mapping/new"

  = paginate @mappings

  %ul#mappings(style="margin: 20px 0 10px 0px;")
    - @mappings.each do |mapping|
      %li(class="clearfix" style="margin-bottom: 10px;")
        %div(style="float: left;" class="#{mapping.is_active==0} ? 'dehighlight' : ''}") 
          = icon_to "Edit", "/admin/mapping/#{mapping.id}/edit"
          = icon_to "Delete", "/admin/mapping/#{mapping.id}", false, :method=>:delete, :confirm=>"Are you sure?"
        %div(style="float: left; margin-left: 20px;" class="#{mapping.is_active==0 ? 'dehighlight' : ''} ")
          = link_to_if mapping.is_asset?, mapping.source_url, mapping.source_url
          = "→".html_safe
          = link_to mapping.target_url, mapping.target_url, :target=>"_blank"

  = paginate @mappings

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/admin/mapping/index.html.haml
kit_cms-2.3.20 app/views/admin/mapping/index.html.haml
kit_cms-2.3.19 app/views/admin/mapping/index.html.haml
kit_cms-2.3.18 app/views/admin/mapping/index.html.haml
kit_cms-2.3.17 app/views/admin/mapping/index.html.haml
kit_cms-2.3.16 app/views/admin/mapping/index.html.haml
kit_cms-2.3.15 app/views/admin/mapping/index.html.haml
kit_cms-2.3.14 app/views/admin/mapping/index.html.haml
kit_cms-2.3.13 app/views/admin/mapping/index.html.haml
kit_cms-2.3.11 app/views/admin/mapping/index.html.haml
kit_cms-2.3.10 app/views/admin/mapping/index.html.haml
kit_cms-2.3.9 app/views/admin/mapping/index.html.haml
kit_cms-2.3.8 app/views/admin/mapping/index.html.haml
kit_cms-2.3.7 app/views/admin/mapping/index.html.haml
kit_cms-2.3.6 app/views/admin/mapping/index.html.haml