Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_chat_name.html.haml « chat_names « profiles « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6805824cebc73a8ffb053531c3281a6a94628aae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- service = chat_name.service
- project = service.project
%tr
  %td
    %strong
      - if can?(current_user, :read_project, project)
        = link_to project.full_name, project_path(project)
      - else
        .light N/A
  %td
    %strong
      - if can?(current_user, :admin_project, project)
        = link_to service.title, edit_project_service_path(project, service)
      - else
        = service.title
  %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
      = _('Never')

  %td
    = link_to _('Remove'), profile_chat_name_path(chat_name), method: :delete, class: 'gl-button btn btn-danger float-right', data: { confirm: _('Are you sure you want to revoke this nickname?') }