Hide navigation section if Canny is not configured

This commit is contained in:
Andreas Nedbal 2022-01-22 10:02:16 +01:00 committed by Andreas Nedbal
parent 2f7d7b2601
commit eecaaeab2d
2 changed files with 18 additions and 16 deletions

View File

@ -32,14 +32,15 @@
%i.fa.fa-fw.fa-gavel
= t("views.navigation.moderation")
.dropdown-divider
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
%i.fa.fa-fw.fa-flask
Feature Requests
%a.dropdown-item{ href: feedback_bugs_path }
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
- if APP_CONFIG["canny"]
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
%i.fa.fa-fw.fa-flask
Feature Requests
%a.dropdown-item{ href: feedback_bugs_path }
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
%i.fa.fa-fw.fa-sign-out
= t("views.sessions.destroy")

View File

@ -26,14 +26,15 @@
%i.fa.fa-fw.fa-gavel
= t("views.navigation.moderation")
.dropdown-divider
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
%i.fa.fa-fw.fa-flask
Feature Requests
%a.dropdown-item{ href: feedback_bugs_path }
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
- if APP_CONFIG["canny"]
%h6.dropdown-header.d-none.d-sm-block Feedback
%a.dropdown-item{ href: feedback_features_path }
%i.fa.fa-fw.fa-flask
Feature Requests
%a.dropdown-item{ href: feedback_bugs_path }
%i.fa.fa-fw.fa-bug
Bugs
.dropdown-divider
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
%i.fa.fa-fw.fa-sign-out
= t("views.sessions.destroy")