debian-mirror-gitlab/app/views/ci/variables/_table.html.haml

29 lines
933 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
.table-responsive.variables-table
%table.table
%colgroup
2017-09-10 17:25:29 +05:30
%col
2016-06-02 11:05:42 +05:30
%col
%col
%col{ width: 100 }
%thead
%th Key
%th Value
2017-09-10 17:25:29 +05:30
%th Protected
2016-06-02 11:05:42 +05:30
%th
%tbody
2017-09-10 17:25:29 +05:30
- @variables.each do |variable|
2016-06-02 11:05:42 +05:30
- if variable.id?
%tr
2017-08-17 22:00:37 +05:30
%td.variable-key= variable.key
%td.variable-value{ "data-value" => variable.value }******
2017-09-10 17:25:29 +05:30
%td.variable-protected= Gitlab::Utils.boolean_to_yes_no(variable.protected)
2017-08-17 22:00:37 +05:30
%td.variable-menu
2017-09-10 17:25:29 +05:30
= link_to variable.edit_path, class: "btn btn-transparent btn-variable-edit" do
2016-06-02 11:05:42 +05:30
%span.sr-only
Update
= icon("pencil")
2017-09-10 17:25:29 +05:30
= link_to variable.delete_path, class: "btn btn-transparent btn-variable-delete", method: :delete, data: { confirm: "Are you sure?" } do
2016-06-02 11:05:42 +05:30
%span.sr-only
Remove
= icon("trash")