gitlab-org--gitlab-foss/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
920 B
Plaintext
Raw Normal View History

- integration = chat_name.integration
- project = integration.project
2016-11-17 13:58:03 +00:00
%tr
%td
%strong
- if can?(current_user, :read_project, project)
= link_to project.full_name, project_path(project)
2016-11-17 13:58:03 +00:00
- else
.light= _('Not applicable.')
2016-11-17 13:58:03 +00:00
%td
%strong
- if can?(current_user, :admin_project, project)
= link_to integration.title, edit_project_settings_integration_path(project, integration)
2016-11-17 13:58:03 +00:00
- else
= integration.title
2016-11-17 13:58:03 +00:00
%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)
2016-11-17 13:58:03 +00:00
- else
= _('Never')
2016-11-17 13:58:03 +00:00
%td
= 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' }