diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-06 15:08:20 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-06 15:08:20 +0000 |
commit | a9524ab189e8340e0b6ea64a1355b9484d1d9731 (patch) | |
tree | 0a89643db007329ca3c1930c58d34e0e657f0601 /app/views | |
parent | 53fb4ad16325d4963fdc5396b8510ab748a45e50 (diff) | |
download | gitlab-ce-a9524ab189e8340e0b6ea64a1355b9484d1d9731.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/profiles/chat_names/_chat_name.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/profiles/chat_names/_chat_name.html.haml b/app/views/profiles/chat_names/_chat_name.html.haml index 0b45869bdf9..ce2fc2098c5 100644 --- a/app/views/profiles/chat_names/_chat_name.html.haml +++ b/app/views/profiles/chat_names/_chat_name.html.haml @@ -1,18 +1,20 @@ - integration = chat_name.integration -- project = integration.project +- project = integration&.project %tr %td %strong - - if can?(current_user, :read_project, project) + - if project.present? && can?(current_user, :read_project, project) = link_to project.full_name, project_path(project) - else .light= _('Not applicable.') %td %strong - - if can?(current_user, :admin_project, project) + - if integration.present? && can?(current_user, :admin_project, project) = link_to integration.title, edit_project_settings_integration_path(project, integration) - - else + - elsif integration.present? = integration.title + - else + .light= _('Not applicable.') %td = chat_name.team_domain %td |