debian-mirror-gitlab/app/views/profiles/chat_names/_chat_name.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
899 B
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
- integration = chat_name.integration
- project = integration.project
2017-08-17 22:00:37 +05:30
%tr
%td
%strong
- if can?(current_user, :read_project, project)
2018-03-27 19:54:05 +05:30
= link_to project.full_name, project_path(project)
2017-08-17 22:00:37 +05:30
- else
2021-04-29 21:17:54 +05:30
.light= _('N/A')
2017-08-17 22:00:37 +05:30
%td
%strong
- if can?(current_user, :admin_project, project)
2022-03-02 08:16:31 +05:30
= link_to integration.title, edit_project_integration_path(project, integration)
2017-08-17 22:00:37 +05:30
- else
2021-06-08 01:23:25 +05:30
= integration.title
2017-08-17 22:00:37 +05:30
%td
= chat_name.team_domain
%td
= chat_name.chat_name
%td
- if chat_name.last_used_at
= time_ago_with_tooltip(chat_name.last_used_at)
- else
2019-09-04 21:01:54 +05:30
= _('Never')
2017-08-17 22:00:37 +05:30
%td
2022-05-07 20:08:51 +05:30
= 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' }