zeus.ugent.be/content/index.erb

76 lines
2.7 KiB
Text
Raw Normal View History

2016-09-02 00:22:01 +02:00
<% content_for :head do %>
<META NAME="Title" CONTENT="Zeus WPI: Werkgroep informatica van de Universiteit Gent">
<META NAME="Keywords" CONTENT="zeus wpi, informatica, universiteit gent">
2016-09-03 16:42:58 +02:00
<META NAME="Description" CONTENT="Studentenvereniging van de informatica aan de Universiteit Gent. Informatie over o.a. Linux (downloads en lessen), programmeren, en internetbeveiliging.">
2016-09-02 00:22:01 +02:00
<% end %>
2016-08-30 22:48:58 +02:00
<div id="homepage">
<div class="tile is-vertical is-ancestor">
2017-02-06 14:15:06 +01:00
<%= if studytime? then render '/tiles/blokmap.*'end %>
2017-02-07 20:38:51 +01:00
<div class="tile">
<!--top coders -->
<div class="tile is-parent is-4">
2017-02-08 11:25:06 +01:00
<div class="tile is-child box ">
2017-02-07 20:38:51 +01:00
<div class="content">
<h1 class="has-text-centered"><a href="https://zeus.ugent.be/game">Top Zeus WPI coders this week</a></h1>
<div id="gamification-coders" >
<!-- EMPTY -->
</div>
</div>
2016-10-13 20:05:28 +02:00
</div>
</div>
2017-02-07 20:38:51 +01:00
<!--next event -->
2017-02-07 23:30:11 +01:00
<div class="tile is-parent is-4" >
2017-02-07 20:38:51 +01:00
<%= render '/partials/_tile.*',
article: upcoming_events[0] || all_events[-1],
2017-02-07 23:30:11 +01:00
small_text: if upcoming_events[0] then "Upcoming event" else "Past event" end%>
2017-02-07 20:38:51 +01:00
</div>
<!-- latest blogpost -->
<div class="tile is-4 is-parent">
<%= render '/partials/_tile.*',
article: sorted_articles.first,
small_text: "Latest blogpost",
htmlclass:"highlighted"%>
</div>
2016-10-13 20:05:28 +02:00
</div>
2017-02-07 20:38:51 +01:00
<div class="tile">
2017-02-08 11:15:44 +01:00
<div class="tile is-vertical">
<% for i in [0,1,2] do event = upcoming_events[1+i] || all_events[-2-i] %>
<div class="tile is-parent ">
<%= render '/partials/_tile.*',
article: event,
small_text: if upcoming_events[1] then "Upcoming event" else "Past event" end,
htmlclass:"highlighted"%>
2016-10-03 22:33:52 +02:00
</div>
2017-02-08 11:15:44 +01:00
<%end%>
2016-08-27 20:15:00 +02:00
</div>
2017-02-08 11:15:44 +01:00
<div class="tile is-vertical">
<% for i in [1,2,3] do post = sorted_articles[i] %>
<div class="tile is-parent ">
<%= render '/partials/_tile.*',
article: post,
small_text: "blogpost"%>
</div>
<%end%>
</div>
</div>
</div>
</div>
<%= asset :js, :gamification %>
<%= asset :js, :quote %>
<!--
2017-02-07 20:38:51 +01:00
<div class="tile is-parent is-2">
<a class="tile box is-child imgcenter project-tile" href="/projects/#12urenloop">
<%= asset :img, '12urenloop.png' %>
</a>
</div>
<div class="tile is-parent is-2">
<a class="tile is-child imgcenter box hydra-tile" href="/projects/#hydra">
<%= asset :img, 'hydra-logo.svg' %>
</a>
</div>
2017-02-08 11:15:44 +01:00
-->