Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
adding ENABLED_MODULES so I can pull unwanted features off of the top…
Browse files Browse the repository at this point in the history
… menu bar, should still make them conditional in views.py somehow
  • Loading branch information
cshields committed Jul 19, 2012
1 parent 40279b6 commit 63f7fbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zamboni_dashboard/default_settings.py
Expand Up @@ -2,6 +2,8 @@ class DefaultSettings(object):
DASHBOARD_NAME = 'Zamboni Dashboard'
OPS_BUG_URL = 'https://bit.ly/amo_ops_bug'
OPS_DOCS_URL = 'https://mana.mozilla.org/wiki/display/websites/addons.mozilla.org'
ENABLED_MODULES = ['ganglia', 'graphite', 'nagios', 'pingdom']

GANGLIA_BASE = 'https://ganglia.mozilla.org/phx1'
GANGLIA_DEFAULT_REPORTS = ['load_report', 'cpu_report',
'mem_report', 'network_report']
Expand Down
8 changes: 8 additions & 0 deletions zamboni_dashboard/templates/base.html
Expand Up @@ -21,10 +21,18 @@
<a class="brand" href="#">{{ config.DASHBOARD_NAME }}</a>
<ul class="nav">
<li><a href="{{ url_for('index') }}">Home</a></li>
{% if 'ganglia' in config.ENABLED_MODULES %}
<li><a href="{{ url_for('ganglia') }}">Ganglia</a></li>
{% endif %}
{% if 'graphite' in config.ENABLED_MODULES %}
<li><a href="{{ url_for('graphite') }}">Graphite</a></li>
{% endif %}
{% if 'nagios' in config.ENABLED_MODULES %}
<li><a href="{{ url_for('nagios') }}">Nagios</a></li>
{% endif %}
{% if 'pingdom' in config.ENABLED_MODULES %}
<li><a href="{{ url_for('pingdom') }}">Pingdom</a></li>
{% endif %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">External<b class="caret"></b></a>
<ul class="dropdown-menu">
Expand Down

0 comments on commit 63f7fbf

Please sign in to comment.