From 0c812544214af8fb29e416925f4f30b623eb7c5e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 21 Sep 2018 14:22:46 +0300 Subject: [PATCH] Add message about disabled oauth feature in user profile Signed-off-by: Dmitriy Zaporozhets --- app/views/doorkeeper/applications/index.html.haml | 3 +++ locale/gitlab.pot | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/views/doorkeeper/applications/index.html.haml b/app/views/doorkeeper/applications/index.html.haml index b11f441b3ba..1f5c70a6c6e 100644 --- a/app/views/doorkeeper/applications/index.html.haml +++ b/app/views/doorkeeper/applications/index.html.haml @@ -16,6 +16,9 @@ = _('Add new application') = render 'form', application: @application %hr + - else + .bs-callout.bs-callout-disabled + = _('Adding new applications is disabled in your GitLab instance. Please contact your GitLab administrator to get the permission') - if user_oauth_applications? .oauth-applications %h5 diff --git a/locale/gitlab.pot b/locale/gitlab.pot index dc8fc1e53a0..c9c13b1b720 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -355,6 +355,9 @@ msgstr "" msgid "Add users to group" msgstr "" +msgid "Adding new applications is disabled in your GitLab instance. Please contact your GitLab administrator to get the permission" +msgstr "" + msgid "Admin Area" msgstr ""