gitlab-org--gitlab-foss/app/views/projects/variables/_table.html.haml
Stan Hu a43f71ec14 Hide project variables values by default
Add a button to reveal/hide the values to help prevent accidental
disclosure of sensitive information from wandering on a page.

Closes #21358
2016-11-24 00:21:48 -08:00

25 lines
926 B
Text

.table-responsive.variables-table
%table.table
%colgroup
%col
%col
%col{ width: 100 }
%thead
%th Key
%th Value
%th
%tbody
- @project.variables.order_key_asc.each do |variable|
- if variable.id?
%tr
%td.variable-key= variable.key
%td.variable-value{ "data-value" => variable.value }******
%td
= link_to namespace_project_variable_path(@project.namespace, @project, variable), class: "btn btn-transparent btn-variable-edit" do
%span.sr-only
Update
= icon("pencil")
= 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
%span.sr-only
Remove
= icon("trash")