Skip to content

Commit

Permalink
fix display of navigation, and dynamism of the list of bases
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Apr 8, 2016
1 parent 67ce080 commit c14a8d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/_head.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</div>

<div class="nav">
<% if session[:access_token] && @username != '' and @base %>
<% if settings.basepaths %>
<% if session[:access_token] && @username != '' and @base %>
<% if Hieraviz::Config.basepaths %>
<div class="base">
<span class="current"><%= @base_name %></span>
<div class="all">
Expand All @@ -15,15 +15,15 @@
<input type="text" name="filter" />
</form>

<% settings.basepaths.map { |p| File.basename(p) }.each do |e| %>
<% Hieraviz::Config.basepaths.map { |p| File.basename(p) }.each do |e| %>
<div class="select"><%= e %></div>
<% end %>
</div>
</div>
<% end %>
<% end %>
<% if session[:access_token] %>
<% if session[:access_token] && @username != '' and @base %>
<a href="<%= @base %>/nodes" class="nodes">Nodes</a>
<a href="<%= @base %>/farms" class="farms">Farms</a>
<a href="<%= @base %>/modules" class="modules">Modules</a>
Expand Down

0 comments on commit c14a8d0

Please sign in to comment.