zeus.ugent.be/layouts/partials/_navbar.erb
2016-10-08 21:24:55 +02:00

59 lines
2.1 KiB
Text

<div id="navbar">
<div class="columns">
<div class="column is-narrow is-hidden-mobile">
<a id="logo-link" href="/">
<img id="logo" src="<%= zeus_logo_url color: @zeus_logo_color %>" alt="" />
</a>
</div>
<div class="column">
<nav class="nav">
<div class="nav-left">
<a class="is-hidden-tablet nav-item" href="/">
<img id="inline-logo" src="<%= zeus_logo_url color: @zeus_logo_color %>" alt="" />
</a>
<% nav_items do |item, active| %>
<a class="nav-item is-tab <%= 'is-active' if active %>" href="<%= relative_path_to(item) %>">
<%= item[:title] %>
</a>
<% end %>
</div>
<div class="nav-right">
<form action="/search/?" method="get">
<div id="tipue_search_input" class="nav-item">
<input type="text" name="q" id="tipue_search_input_field" autocomplete="off">
</div>
</form>
</div>
<div class="nav-right is-hidden-mobile social-icons">
<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>