zeus.ugent.be/layouts/partials/_navbar.erb
Lorin Werthen e44a6a3d35
cleaner
2017-04-03 22:32:02 +02:00

72 lines
2.5 KiB
Text

<div id="navbar">
<div class="columns">
<div class="logo-wrapper column is-narrow is-hidden-mobile">
<a id="logo-link" href="/">
<% if christmastime? %>
<img id="santa" src="https://upload.wikimedia.org/wikipedia/commons/c/c0/Santa_hat.svg">
<% end %>
<img id="logo" src="<%= zeus_logo_url color: @zeus_logo_color %>" alt="" />
</a>
</div>
<div class="actual-nav-bar column">
<nav class="nav">
<a class="is-hidden-tablet nav-item" href="/">
<img id="inline-logo" src="<%= zeus_logo_url color: @zeus_logo_color %>" alt="" />
</a>
<div class="nav-menu nav-left">
<% navigables.each do |i| %>
<a class="nav-item is-tab <%= 'is-active' if child_of(i) %>" href="<%= i.path %>">
<%= i[:title] %>
</a>
<% end %>
</div>
<!-- Filler for when mobile -->
<div class="nav-left is-hidden-tablet"></div>
<div class="nav-right">
<form action="/search/?" method="get">
<div id="tipue_search_input" class="nav-item nav-search">
<input type="text" name="q" id="tipue_search_input_field" autocomplete="off">
</div>
</form>
</div>
<span class="nav-toggle">
<span></span>
<span></span>
<span></span>
</span>
<div class="nav-right is-hidden-mobile">
<a class="nav-item social-icon" href="https://github.com/ZeusWPI" target="_blank">
<span class="icon">
<%= fa :github %>
</span>
</a>
<a class="nav-item social-icon" href="https://www.facebook.com/zeus.wpi/" target="_blank">
<span class="icon">
<%= fa :facebook %>
</span>
</a>
<a class="nav-item social-icon" href="/feed.xml" target="_blank">
<span class="icon">
<%= fa :rss %>
</span>
</a>
<a class="nav-item social-icon" href="/ical.ics">
<span class="icon">
<%= fa :calendar %>
</span>
</a>
<a class="nav-item social-icon" href="//zeus.ugent.be/wiki">
<span class="icon">
<%= fa :'wikipedia-w' %>
</span>
</a>
</div>
</nav>
</div>
</div>
</div>