Commit ee9f86a1 authored by Leo Iannacone's avatar Leo Iannacone

show preferences only if enabled in config

parent 5f1288b6
......@@ -43,7 +43,8 @@ app.configure('production', function(){
// Routes
app.get('/', routes.index);
app.get(config.routes.distribution, routes.distribution)
app.get(config.routes.preferences, routes.preferences)
if (config.routes.preferences)
app.get(config.routes.preferences, routes.preferences)
var broadcast = new Broadcaster(io.sockets, status)
......
......@@ -18,7 +18,7 @@
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<span class="navbar-brand" href="#">Distributions</span>
<span class="navbar-brand">Distributions</span>
</div>
<div class="collapse navbar-collapse">
<div id="distributions">
......@@ -26,7 +26,9 @@
</div>
<div id="pages">
<ul class="nav navbar-nav pull-right">
<li><a href="/preferences">Preferences</a></li>
<% if (web.paths.preferences) { %>
<li><a href="<%= web.paths.preferences %>">Preferences</a></li>
<% } %>
</ul>
</div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment