From 1dcfe47494b834c2b04e33b6b72023b3cdaf53d1 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jul 29 2015 17:11:25 +0000 Subject: Add fedmenu to the resultsdb_frontend template. Summary: This adds fedmenu to the resultsdb_frontend. - You can view a demo of fedmenu here: http://threebean.org/fedmenu - Or see our progress on adding apps to it here: https://fedoraproject.org/wiki/Infrastructure/FY16_frontend - There is an open discussion on its experience for users here: https://fedorahosted.org/design-team/ticket/374 Test Plan: Open up the app and see that fedmenu renders correctly on the page. Reviewers: jskladan, tflink Reviewed By: jskladan, tflink Subscribers: tflink Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D363 --- diff --git a/resultsdb_frontend/config.py b/resultsdb_frontend/config.py index 75426d9..d9e4dec 100644 --- a/resultsdb_frontend/config.py +++ b/resultsdb_frontend/config.py @@ -35,6 +35,9 @@ class Config(object): PRODUCTION = False + FEDMENU_URL = 'https://apps.fedoraproject.org/fedmenu' + FEDMENU_DATA_URL = 'https://apps.fedoraproject.org/js/data.js' + class ProductionConfig(Config): DEBUG = False @@ -48,3 +51,5 @@ class DevelopmentConfig(Config): class TestingConfig(Config): TRAP_BAD_REQUEST_ERRORS = True TESTING = True + FEDMENU_URL = 'https://apps.stg.fedoraproject.org/fedmenu' + FEDMENU_DATA_URL = 'https://apps.stg.fedoraproject.org/js/data.js' diff --git a/resultsdb_frontend/templates/layout.html b/resultsdb_frontend/templates/layout.html index 87b9b46..793064b 100644 --- a/resultsdb_frontend/templates/layout.html +++ b/resultsdb_frontend/templates/layout.html @@ -113,5 +113,19 @@ + {% if config['FEDMENU_URL'] is defined %} + + + {% endif %} +