2021-05-12 08:10:24 -04:00
|
|
|
- integration = chat_name.integration
|
|
|
|
- project = integration.project
|
2016-11-17 08:58:03 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
- if can?(current_user, :read_project, project)
|
2018-03-05 08:45:35 -05:00
|
|
|
= link_to project.full_name, project_path(project)
|
2016-11-17 08:58:03 -05:00
|
|
|
- else
|
2021-04-09 11:09:10 -04:00
|
|
|
.light= _('N/A')
|
2016-11-17 08:58:03 -05:00
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
- if can?(current_user, :admin_project, project)
|
2021-12-30 13:13:34 -05:00
|
|
|
= link_to integration.title, edit_project_integration_path(project, integration)
|
2016-11-17 08:58:03 -05:00
|
|
|
- else
|
2021-05-12 08:10:24 -04:00
|
|
|
= integration.title
|
2016-11-17 08:58:03 -05:00
|
|
|
%td
|
|
|
|
= chat_name.team_domain
|
|
|
|
%td
|
|
|
|
= chat_name.chat_name
|
|
|
|
%td
|
|
|
|
- if chat_name.last_used_at
|
2016-11-21 14:53:18 -05:00
|
|
|
= time_ago_with_tooltip(chat_name.last_used_at)
|
2016-11-17 08:58:03 -05:00
|
|
|
- else
|
2019-05-28 13:27:57 -04:00
|
|
|
= _('Never')
|
2016-11-17 08:58:03 -05:00
|
|
|
|
|
|
|
%td
|
2022-02-18 01:14:34 -05:00
|
|
|
= link_to _('Remove'), profile_chat_name_path(chat_name), method: :delete, class: 'gl-button btn btn-danger float-right', aria: { label: _('Remove') }, data: { confirm: _('Are you sure you want to remove this nickname?'), confirm_btn_variant: 'danger' }
|