Hide navigation section if Canny is not configured
This commit is contained in:
parent
2f7d7b2601
commit
eecaaeab2d
|
@ -32,14 +32,15 @@
|
||||||
%i.fa.fa-fw.fa-gavel
|
%i.fa.fa-fw.fa-gavel
|
||||||
= t("views.navigation.moderation")
|
= t("views.navigation.moderation")
|
||||||
.dropdown-divider
|
.dropdown-divider
|
||||||
%h6.dropdown-header.d-none.d-sm-block Feedback
|
- if APP_CONFIG["canny"]
|
||||||
%a.dropdown-item{ href: feedback_features_path }
|
%h6.dropdown-header.d-none.d-sm-block Feedback
|
||||||
%i.fa.fa-fw.fa-flask
|
%a.dropdown-item{ href: feedback_features_path }
|
||||||
Feature Requests
|
%i.fa.fa-fw.fa-flask
|
||||||
%a.dropdown-item{ href: feedback_bugs_path }
|
Feature Requests
|
||||||
%i.fa.fa-fw.fa-bug
|
%a.dropdown-item{ href: feedback_bugs_path }
|
||||||
Bugs
|
%i.fa.fa-fw.fa-bug
|
||||||
.dropdown-divider
|
Bugs
|
||||||
|
.dropdown-divider
|
||||||
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
|
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
|
||||||
%i.fa.fa-fw.fa-sign-out
|
%i.fa.fa-fw.fa-sign-out
|
||||||
= t("views.sessions.destroy")
|
= t("views.sessions.destroy")
|
||||||
|
|
|
@ -26,14 +26,15 @@
|
||||||
%i.fa.fa-fw.fa-gavel
|
%i.fa.fa-fw.fa-gavel
|
||||||
= t("views.navigation.moderation")
|
= t("views.navigation.moderation")
|
||||||
.dropdown-divider
|
.dropdown-divider
|
||||||
%h6.dropdown-header.d-none.d-sm-block Feedback
|
- if APP_CONFIG["canny"]
|
||||||
%a.dropdown-item{ href: feedback_features_path }
|
%h6.dropdown-header.d-none.d-sm-block Feedback
|
||||||
%i.fa.fa-fw.fa-flask
|
%a.dropdown-item{ href: feedback_features_path }
|
||||||
Feature Requests
|
%i.fa.fa-fw.fa-flask
|
||||||
%a.dropdown-item{ href: feedback_bugs_path }
|
Feature Requests
|
||||||
%i.fa.fa-fw.fa-bug
|
%a.dropdown-item{ href: feedback_bugs_path }
|
||||||
Bugs
|
%i.fa.fa-fw.fa-bug
|
||||||
.dropdown-divider
|
Bugs
|
||||||
|
.dropdown-divider
|
||||||
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
|
= button_to destroy_user_session_path, method: "delete", class: "dropdown-item" do
|
||||||
%i.fa.fa-fw.fa-sign-out
|
%i.fa.fa-fw.fa-sign-out
|
||||||
= t("views.sessions.destroy")
|
= t("views.sessions.destroy")
|
||||||
|
|
Loading…
Reference in New Issue