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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 16:58:03 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-17 16:58:03 +0300
commit1ddfc574ce1753ba783c5c1734efb6105f20f3d7 (patch)
treef7907cc6f74047d16f9850f19c8b0dd59741ec75 /app/views/profiles/chat_names/index.html.haml
parent9b86a5e19d902771ce13f3ddffe89b804479fcbc (diff)
Add chat_name partial
Diffstat (limited to 'app/views/profiles/chat_names/index.html.haml')
-rw-r--r--app/views/profiles/chat_names/index.html.haml31
1 files changed, 2 insertions, 29 deletions
diff --git a/app/views/profiles/chat_names/index.html.haml b/app/views/profiles/chat_names/index.html.haml
index a8dd258732f..20cc636b2da 100644
--- a/app/views/profiles/chat_names/index.html.haml
+++ b/app/views/profiles/chat_names/index.html.haml
@@ -9,7 +9,7 @@
You can see your Chat accounts.
.col-lg-9
- %h5 Active chat names (#{@chat_names.length})
+ %h5 Active chat names (#{@chat_names.size})
- if @chat_names.present?
.table-responsive
@@ -23,34 +23,7 @@
%th Last used
%th
%tbody
- - @chat_names.each do |chat_name|
- - 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)
- = link_to service.title, edit_namespace_project_service_path(project.namespace, 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: 'btn btn-danger pull-right', data: { confirm: 'Are you sure you want to revoke this nickname?' }
+ = render @chat_names
- else
.settings-message.text-center