BigW Consortium Gitlab

_table.html.haml 860 Bytes
Newer Older
1
.table-responsive.variables-table
Phil Hughes committed
2 3 4 5 6 7 8 9 10 11 12
  %table.table
    %colgroup
      %col
      %col
      %col{ width: 100 }
    %thead
      %th Key
      %th Value
      %th
    %tbody
      - @project.variables.each do |variable|
13 14 15 16 17 18 19 20 21 22 23 24 25
        - 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")