summaryrefslogtreecommitdiff
path: root/app/views/gateway_headers/_index_core.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-03 11:27:50 +0200
committerPeter Kozak <spag@golwen.net>2013-08-03 11:27:50 +0200
commitf7bdfab32a165742c29cf687af0c28531f871706 (patch)
tree2c91ebff27a8c98dbf25ce3e248a12df2b6685f0 /app/views/gateway_headers/_index_core.html.haml
parent4c1061fb7cdbaf1bf5614a5f255316cbc426d52d (diff)
gateway_headers views added
Diffstat (limited to 'app/views/gateway_headers/_index_core.html.haml')
-rw-r--r--app/views/gateway_headers/_index_core.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/gateway_headers/_index_core.html.haml b/app/views/gateway_headers/_index_core.html.haml
new file mode 100644
index 0000000..b468026
--- /dev/null
+++ b/app/views/gateway_headers/_index_core.html.haml
@@ -0,0 +1,20 @@
+%table.table.table-striped
+ %thead
+ %tr
+ %th= t('gateway_headers.index.header_type')
+ %th= t('gateway_headers.index.constraint')
+ %th= t('gateway_headers.index.name')
+ %th= t('gateway_headers.index.value')
+
+ %tbody
+ - for gateway_header in gateway_headers
+ %tr
+ %td= gateway_header.header_type
+ %td
+ = gateway_header.constraint_source
+ - if !gateway_header.constraint_source.blank?
+ %strong ~=
+ = gateway_header.constraint_value
+ %td= gateway_header.name
+ %td= gateway_header.value
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => gateway_header.gateway, :child => gateway_header}