zeus.ugent.be/layouts/partials/_navbar.erb

73 lines
2.5 KiB
Text
Raw Normal View History

2016-08-23 20:21:02 +02:00
<div id="navbar">
<div class="columns">
2016-11-01 13:28:23 +01:00
<div class="logo-wrapper column is-narrow is-hidden-mobile">
2016-08-23 20:21:02 +02:00
<a id="logo-link" href="/">
2016-12-29 13:37:22 +01:00
<% if christmastime? %>
<img id="santa" src="https://upload.wikimedia.org/wikipedia/commons/c/c0/Santa_hat.svg">
<% end %>
2016-09-02 00:05:38 +02:00
<img id="logo" src="<%= zeus_logo_url color: @zeus_logo_color %>" alt="" />
2016-08-02 19:54:18 +02:00
</a>
</div>
2016-11-01 13:28:23 +01:00
<div class="actual-nav-bar column">
2016-08-23 20:21:02 +02:00
<nav class="nav">
2016-10-31 17:51:52 +01:00
<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">
2017-04-03 22:32:02 +02:00
<% navigables.each do |i| %>
<a class="nav-item is-tab <%= 'is-active' if child_of(i) %>" href="<%= i.path %>">
<%= i[:title] %>
2016-08-23 20:21:02 +02:00
</a>
<% end %>
</div>
2016-10-04 16:25:03 +02:00
2016-10-31 17:51:52 +01:00
<!-- Filler for when mobile -->
2016-11-01 14:24:34 +01:00
<div class="nav-left is-hidden-tablet"></div>
2016-10-31 17:51:52 +01:00
2016-10-08 21:24:55 +02:00
<div class="nav-right">
<form action="/search/?" method="get">
2016-12-12 20:06:48 +01:00
<div id="tipue_search_input" class="nav-item nav-search">
2016-10-08 21:24:55 +02:00
<input type="text" name="q" id="tipue_search_input_field" autocomplete="off">
</div>
</form>
</div>
2016-07-27 20:27:28 +02:00
2016-10-31 17:51:52 +01:00
<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">
2016-08-23 20:21:02 +02:00
<span class="icon">
2016-10-04 17:42:56 +02:00
<%= fa :github %>
2016-08-23 20:21:02 +02:00
</span>
</a>
<a class="nav-item social-icon" href="https://www.facebook.com/zeus.wpi/" target="_blank">
2016-08-23 20:21:02 +02:00
<span class="icon">
2016-10-04 17:42:56 +02:00
<%= fa :facebook %>
2016-08-23 20:21:02 +02:00
</span>
</a>
<a class="nav-item social-icon" href="/feed.xml" target="_blank">
2016-08-23 20:21:02 +02:00
<span class="icon">
2016-10-04 17:42:56 +02:00
<%= fa :rss %>
2016-08-23 20:21:02 +02:00
</span>
</a>
<a class="nav-item social-icon" href="/ical.ics">
2016-08-23 20:21:02 +02:00
<span class="icon">
2016-10-04 17:42:56 +02:00
<%= fa :calendar %>
</span>
</a>
<a class="nav-item social-icon" href="//zeus.ugent.be/wiki">
2016-10-04 17:42:56 +02:00
<span class="icon">
<%= fa :'wikipedia-w' %>
2016-08-23 20:21:02 +02:00
</span>
</a>
</div>
</nav>
2016-08-02 19:54:18 +02:00
</div>
2016-08-23 20:21:02 +02:00
</div>
</div>