debian-mirror-gitlab/app/views/shared/integrations/_index.html.haml

27 lines
1.5 KiB
Text
Raw Normal View History

2021-02-22 17:27:13 +05:30
%table.table.b-table.gl-table{ role: 'table', 'aria-busy': false, 'aria-colcount': 4 }
2020-04-22 19:07:51 +05:30
%colgroup
%col
%col
%col.d-none.d-sm-table-column
2020-11-24 15:15:51 +05:30
%col{ width: 135 }
2020-04-22 19:07:51 +05:30
%thead{ role: 'rowgroup' }
%tr{ role: 'row' }
%th{ role: 'columnheader', scope: 'col', 'aria-colindex': 1 }
%th{ role: 'columnheader', scope: 'col', 'aria-colindex': 2 }= _('Integration')
%th.d-none.d-sm-block{ role: 'columnheader', scope: 'col', 'aria-colindex': 3 }= _('Description')
%th{ role: 'columnheader', scope: 'col', 'aria-colindex': 4 }= _('Last updated')
%tbody{ role: 'rowgroup' }
- integrations.each do |integration|
2020-05-24 23:13:21 +05:30
- activated_label = (integration.activated? ? s_("ProjectService|%{service_title}: status on") : s_("ProjectService|%{service_title}: status off")) % { service_title: integration.title }
2020-04-22 19:07:51 +05:30
%tr{ role: 'row' }
2021-02-22 17:27:13 +05:30
%td{ role: 'cell', 'aria-colindex': 1, 'aria-label': activated_label, title: activated_label }
2020-05-24 23:13:21 +05:30
= boolean_to_icon integration.operating?
2020-04-22 19:07:51 +05:30
%td{ role: 'cell', 'aria-colindex': 2 }
2021-02-22 17:27:13 +05:30
= link_to integration.title, scoped_edit_integration_path(integration), class: 'gl-font-weight-bold', data: { qa_selector: "#{integration.to_param}_link" }
2020-05-24 23:13:21 +05:30
%td.d-none.d-sm-table-cell{ role: 'cell', 'aria-colindex': 3 }
2020-04-22 19:07:51 +05:30
= integration.description
%td{ role: 'cell', 'aria-colindex': 4 }
- if integration.updated_at.present?
= time_ago_with_tooltip integration.updated_at