- Previous Events
+
+
+ Previous Events
+
+
<% previous_events[0..3].each do |event| %>
@@ -72,7 +84,11 @@
-
About Zeus WPI
++ + About Zeus WPI + +
Zeus WPI is the student association for Computer Science at Ghent University. Our goal is to provide a stimulating environment for motivated students looking to expand their skills by engaging in interesting real-world projects.
@@ -82,7 +98,11 @@
- Blogposts
+
+
+ Blogpost
+
+
<% sorted_articles[0..3].each do |post| %>
<%= render '/partials/_blog_preview.*', post: post %>
diff --git a/lib/helpers/time.rb b/lib/helpers/time.rb
index 0439f1ad..d4e6b594 100644
--- a/lib/helpers/time.rb
+++ b/lib/helpers/time.rb
@@ -29,4 +29,12 @@ def timehelper(ranges)
def periodhelper(startdate, enddate)
$tz.now.between?(startdate, enddate)
end
+
+ def current_academic_year
+ year = Time.now.year
+ month = Time.now.month
+ start_year = month < 9 ? year - 1 : year
+ "#{start_year % 100}-#{(start_year + 1) % 100}"
+ end
+
end