mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Improve rendering of client tokens table
Making sure that wiki providers show up correctly in the "Integration type" column.
This commit is contained in:
@@ -43,12 +43,7 @@ module My
|
||||
end
|
||||
|
||||
def integration_type
|
||||
integration_class_name = client_token.oauth_client.integration_type
|
||||
integration_class = begin
|
||||
integration_class_name.constantize
|
||||
rescue NameError
|
||||
nil
|
||||
end
|
||||
integration_class = client_token.oauth_client.integration&.class
|
||||
|
||||
return I18n.t("my_account.access_tokens.oauth_client.unknown_integration") unless integration_class
|
||||
|
||||
|
||||
@@ -20,10 +20,15 @@ en:
|
||||
one: Inline page link
|
||||
other: Inline page links
|
||||
wikis/internal_provider: Internal wiki
|
||||
wikis/provider:
|
||||
one: Wiki provider
|
||||
other: Wiki providers
|
||||
wikis/relation_page_link:
|
||||
one: Relation page link
|
||||
other: Relation page links
|
||||
wikis/xwiki_provider: XWiki provider
|
||||
wikis/xwiki_provider:
|
||||
one: XWiki provider
|
||||
other: XWiki providers
|
||||
permission_manage_wiki_page_links: Manage Wiki Page Links
|
||||
project_module_wiki_platforms: Wiki providers
|
||||
wikis:
|
||||
|
||||
Reference in New Issue
Block a user