diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-16 10:26:11 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-16 10:26:11 +0100 |
commit | c9b3c08c21daf421ec36828c990ccceb21e1577f (patch) | |
tree | 3ffab1f98ca9fdc33050d074651d0abdecb41049 /app/views/projects/variables | |
parent | 99428f193b2fe51b16e43f7cd98029326b5c30f9 (diff) | |
download | gitlab-ce-c9b3c08c21daf421ec36828c990ccceb21e1577f.tar.gz |
Changed table border colorproject-variables-ui
Fixed issue with form errors not displaying
Diffstat (limited to 'app/views/projects/variables')
-rw-r--r-- | app/views/projects/variables/_table.html.haml | 25 | ||||
-rw-r--r-- | app/views/projects/variables/index.html.haml | 2 |
2 files changed, 14 insertions, 13 deletions
diff --git a/app/views/projects/variables/_table.html.haml b/app/views/projects/variables/_table.html.haml index f51a52d7cb3..6c43f822db4 100644 --- a/app/views/projects/variables/_table.html.haml +++ b/app/views/projects/variables/_table.html.haml @@ -10,15 +10,16 @@ %th %tbody - @project.variables.each do |variable| - %tr - %td= variable.key - %td= 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") + - if variable.id? + %tr + %td= variable.key + %td= 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") diff --git a/app/views/projects/variables/index.html.haml b/app/views/projects/variables/index.html.haml index 89ef79fb2e9..09bb54600af 100644 --- a/app/views/projects/variables/index.html.haml +++ b/app/views/projects/variables/index.html.haml @@ -11,7 +11,7 @@ %h5.prepend-top-0 Your variables (#{@project.variables.size}) - if @project.variables.empty? - %p.profile-settings-message.text-center.append-bottom-0 + %p.settings-message.text-center.append-bottom-0 No variables found, add one with the form above. - else = render "table" |