2016-11-17 08:58:03 -05:00
|
|
|
- service = chat_name.service
|
|
|
|
- project = service.project
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
- if can?(current_user, :read_project, project)
|
|
|
|
= link_to project.name_with_namespace, project_path(project)
|
|
|
|
- else
|
|
|
|
.light N/A
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
- if can?(current_user, :admin_project, project)
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to service.title, edit_project_service_path(project, service)
|
2016-11-17 08:58:03 -05:00
|
|
|
- else
|
|
|
|
= service.title
|
|
|
|
%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
|
|
|
|
Never
|
|
|
|
|
|
|
|
%td
|
|
|
|
= link_to 'Remove', profile_chat_name_path(chat_name), method: :delete, class: 'btn btn-danger pull-right', data: { confirm: 'Are you sure you want to revoke this nickname?' }
|