From 44cd136ae03ae7e0c6d66b368185437d74afc2e2 Mon Sep 17 00:00:00 2001 From: Ridhwana Date: Fri, 29 Oct 2021 18:18:54 +0200 Subject: [PATCH] feat: update the admin foreme links (#15230) --- .../admin/application_controller.rb | 27 ++++++++++--------- app/views/layouts/admin.html.erb | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb index 0c84ad77f..33196af0a 100644 --- a/app/controllers/admin/application_controller.rb +++ b/app/controllers/admin/application_controller.rb @@ -5,18 +5,21 @@ module Admin after_action :verify_authorized HELP_URLS = { - badges: "https://admin.forem.com/docs/admin/badges", - badge_achievements: "https://admin.forem.com/docs/admin/badges", - configs: "https://admin.forem.com/docs/admin/config/README", - navigation_links: "https://admin.forem.com/docs/admin/navigation-links", - pages: "https://admin.forem.com/docs/admin/pages", - podcasts: "https://admin.forem.com/docs/admin/podcasts", - reports: "https://admin.forem.com/docs/admin/reports", - users: "https://admin.forem.com/docs/admin/users/README", - html_variants: "https://admin.forem.com/docs/admin/html-variants", - display_ads: "https://admin.forem.com/docs/admin/display-ads", - chat_channels: "https://admin.forem.com/docs/admin/chat-channels", - tags: "https://admin.forem.com/docs/admin/tags" + articles: "https://admin.forem.com/docs/forem-basics/posts", + badges: "https://admin.forem.com/docs/forem-basics/badges", + badge_achievements: "https://admin.forem.com/docs/forem-basics/badges", + chat_channels: "https://admin.forem.com/docs/advanced-customization/chat-channels", + display_ads: "https://admin.forem.com/docs/advanced-customization/display-ads", + feedback_messages: "https://admin.forem.com/docs/advanced-customization/reports", + html_variants: "https://admin.forem.com/docs/advanced-customization/html-variants", + navigation_links: "https://admin.forem.com/docs/advanced-customization/navigation-links", + organizations: "https://admin.forem.com/docs/managing-your-community/organization-pages", + pages: "https://admin.forem.com/docs/forem-basics/pages", + permissions: "https://admin.forem.com/docs/forem-basics/user-roles", + podcasts: "https://admin.forem.com/docs/advanced-customization/content-manager/podcasts", + settings: "https://admin.forem.com/docs/advanced-customization/config/api-tokens", + tags: "https://admin.forem.com/docs/forem-basics/tags", + users: "https://admin.forem.com/docs/forem-basics/user-roles" }.freeze protected diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index 941e7803d..8afc1c0d9 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb @@ -96,7 +96,7 @@ <% end %> <%= yield %> - <% if false #@help_url HELP BUTTON NOT CURRENTLY LINKING TO PROPER PAGES %> + <% if @help_url %> <%= inline_svg_tag("circle-question.svg", aria: true, title: "Forem Admin Guide") %>