Sha256: 5666a3d42212dcb47cc3c0adb06ea5111114e2cf8cf6c3c82b089ecbc4f2ea70

Contents?: true

Size: 869 Bytes

Versions: 7

Compression:

Stored size: 869 Bytes

Contents

%h1=_("Listing Dynamic Menus")

.box{style: "width: 550px;"}
  %table.list{width: "100%"}
    %thead
      %tr
        %th=_("Menu")
        %th=_("URL")
        %th=_("Sort")
        %th=_("Actions")
    %tbody
      -DynamicMenus.recursive_walkthrough(pass_args: {controller: self}, all: true) do |data|
        %tr
          %td
            =("   " * data[:level]).html_safe
            =link_to(data[:menu].title!, data[:menu])
          %td=data[:menu].url
          %td=data[:menu].sort
          %td
            (
            =link_to(_("sub"), new_dynamic_menu_path(dynamic_menu_id: data[:menu].id))
            =link_to(_("delete"), data[:menu], method: :delete, data: _("Are you sure?"))
            )
      -if @menus.empty?
        %td.notice{colspan: 2}
          =_("No menus was found.")

%br
=link_to(_("New menu"), new_dynamic_menu_path)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynamic_menus-0.0.8 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.7 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.6 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.5 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.4 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.3 app/views/dynamic_menus/index.html.haml
dynamic_menus-0.0.2 app/views/dynamic_menus/index.html.haml