summaryrefslogtreecommitdiff
path: root/app/views/call_routes/_index_core.html.haml
blob: a665b5d20e5116092f494d93f0ef5bf7a1a3ff34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- cache(['call_routes_table', call_routes.count, call_routes.reorder(:updated_at).last]) do 
  %table{:class => 'table table-striped'}
    %thead
      %tr
        %th= t('call_routes.index.name')
        %th= t('route_elements.index.pattern')
        %th= t('call_routes.index.endpoint_type')

    %tbody
      - for call_route in call_routes
        - cache(['call_route_single_table_row', call_route, call_routes.count]) do 
          %tr
            %td= call_route.name
            %td
              - if call_route.route_elements.any?
                = call_route.route_elements.first.pattern
                - if call_route.route_elements.count > 1
                  = ', ...'
              - else
                = '-'
            %td= call_route.endpoint_type
            =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => call_route}