gitlab-org--gitlab-foss/app/views/projects/variables/_table.html.haml

25 lines
810 B
Text
Raw Normal View History

2016-04-27 07:17:17 -04:00
.table-responsive.variables-table
2016-04-27 04:01:43 -04:00
%table.table
%colgroup
%col
%col
%col{ width: 100 }
%thead
%th Key
%th Value
%th
%tbody
- @project.variables.each do |variable|
%tr
%td= variable.key
%td= variable.value
%td
2016-04-27 07:17:17 -04:00
= link_to namespace_project_variable_path(@project.namespace, @project, variable), class: "btn btn-transparent btn-variable-edit" do
2016-04-27 04:01:43 -04:00
%span.sr-only
Update
= icon("pencil")
2016-04-27 07:17:17 -04:00
= link_to namespace_project_variable_path(@project.namespace, @project, variable), class: "btn btn-transparent btn-variable-delete", method: :delete, data: { confirm: "Are you sure?" } do
2016-04-27 04:01:43 -04:00
%span.sr-only
Remove
= icon("trash")