summaryrefslogtreecommitdiff
path: root/app/views/projects/project_variables/_table.html.haml
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-06-28 22:40:14 +0900
committerShinya Maeda <shinya@gitlab.com>2017-06-28 22:40:14 +0900
commit3a23766a3c354fb226f9826603dcb6cd529775b2 (patch)
tree499bd30e6cb9ab9c1eb20c0252ac7e04f3ee7526 /app/views/projects/project_variables/_table.html.haml
parentd26e15da56739ccc3b240c9be4b52842959804bc (diff)
downloadgitlab-ce-3a23766a3c354fb226f9826603dcb6cd529775b2.tar.gz
Diffstat (limited to 'app/views/projects/project_variables/_table.html.haml')
-rw-r--r--app/views/projects/project_variables/_table.html.haml29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/projects/project_variables/_table.html.haml b/app/views/projects/project_variables/_table.html.haml
new file mode 100644
index 00000000000..132f3a5cd4b
--- /dev/null
+++ b/app/views/projects/project_variables/_table.html.haml
@@ -0,0 +1,29 @@
+.table-responsive.variables-table
+ %table.table
+ %colgroup
+ %col
+ %col
+ %col
+ %col{ width: 100 }
+ %thead
+ %th Key
+ %th Value
+ %th Protected
+ %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.variable-protected= Gitlab::Utils.boolean_to_yes_no(variable.protected)
+ %td.variable-menu
+ - puts "variable: #{variable}"
+ = link_to namespace_project_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_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")