diff --git a/.travis.yml b/.travis.yml
index 2818a5f..2896159 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,10 @@ cache:
- output
- tmp
+branches:
+ only:
+ - master
+
rvm:
- 2.3.1
notifications:
@@ -23,4 +27,6 @@ script:
after_success:
- mv deploy_key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
-- '[[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]] && bundle exec nanoc --env=prod deploy public'
+- chmod +x ./deploy.sh
+- echo -e "Host $TRAVIS_PULL_REQUEST.zeus.werthen.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
+- ./deploy.sh
diff --git a/commands/fetch.rb b/commands/fetch.rb
index b63a3d2..6e8d804 100644
--- a/commands/fetch.rb
+++ b/commands/fetch.rb
@@ -10,16 +10,19 @@ description 'Fetch an event from facebook'
run do |_opts, args, _cmd|
fb_token = File.read('.fb_token')
- uri = URI("https://graph.facebook.com/v2.10/#{args[0]}?fields=cover,name,description,start_time,place,end_time&access_token=#{fb_token}")
+ event_id = args[0]
+ uri = URI("https://graph.facebook.com/v2.10/#{event_id}?fields=cover,name,description,start_time,place,end_time&access_token=#{fb_token}")
o = JSON.parse(Net::HTTP.get(uri))
-
puts <<~EOS
---
title: "#{o['name']}"
+ description: #Fill in
time: #{o['start_time']}
- location: #{o['place']['name']}
end: #{o['end_time']}
+ location: #{o['place']['name']}
banner: #{o['cover']['source']}
+ created_at: #Fill in
+ facebook: 'https://www.facebook.com/events/#{event_id}/'
---
#{o['description']}
diff --git a/content/about/about.erb b/content/about/about.erb
index a69d307..fe5a731 100644
--- a/content/about/about.erb
+++ b/content/about/about.erb
@@ -12,16 +12,16 @@ narrow_page: true
- We organize various tech related talks by experts (eg. professors, PhD's, Richard Stallman, Julia Roberts, ...), hands-on coding events and introductory lectures for cool technologies.
+ We organize various tech related talks by experts (eg. professors, PhD's, Richard Stallman, Julia Reda, ...), hands-on coding events and introductory lectures for cool technologies.
Together we build interesting applications for Ghent University students (Hydra), for FaculteitenKonvent and 12Urenloop, and ofcourse for ourselves.
- Be sure to check out the project-page!
+ Be sure to check out the project page!
- Everybody is welcom at Zeus WPI, even if you don't study computer science. The only requirement is a healthy dose of motivation and some (toleration for) geekyness.
+ Everybody is welcome at Zeus WPI, even if you don't study computer science. The only requirement is a healthy dose of motivation and some (toleration for) geekyness.
The board
@@ -56,13 +56,15 @@ narrow_page: true
<%= lid[:mail] %>
+ <% if lid[:mail] %>
<%= fa :envelope %>
+ <% end %>
|
<% end %>
-
\ No newline at end of file
+
diff --git a/content/assets/stylesheets/includes/tiles.scss b/content/assets/stylesheets/includes/tiles.scss
index 358ad03..438bda6 100644
--- a/content/assets/stylesheets/includes/tiles.scss
+++ b/content/assets/stylesheets/includes/tiles.scss
@@ -35,8 +35,16 @@ a.box {
.event-text {
display: inline-block;
font-size: 1.1em;
+ margin-left: 10px;
+ margin-right: 10px;
+
+ .event-time-loc {
+ margin-left: 10px;
+ margin-right: 10px;
+ }
}
+
.is-divider {
margin: 0.5em;
}
diff --git a/content/events/17-18/hydra-codenight.md b/content/events/17-18/hydra-codenight.md
new file mode 100644
index 0000000..10e7d29
--- /dev/null
+++ b/content/events/17-18/hydra-codenight.md
@@ -0,0 +1,32 @@
+---
+title: "Hydra Introsessie & Codenight"
+time: 2017-10-16T18:00:00+0200
+end: 2017-10-16T23:59:00+0200
+location: Zeus WPI
+description: Word een Hydra-held in no time
+created_at: '13-10-2017'
+color: '#3454b4'
+---
+
+Join het team van de coolste app van de UGent!
+
+# Wat
+
+Zin om mee te werken? Op de Hydra codenight wordt je persoonlijk begeleid en geholpen door de developers achter de app. Zo fix je in no-time je eerste issue leer je op 1 avond door de volledige codebase wandelen. We maken er samen een productieve maar ook plezante avond van, en wie weet ben jij tegen volgend jaar 1 van de core-devs!
+
+# Waarom
+
+- Een cool team
+- Een relevant project voor jou en je vrienden
+- Ideale intro tot app-development
+- Ideale ervaring voor app-development
+
+# Praktisch
+We beginnen officieel om **18u**, maar je mag komen wanneer je wilt. Alles gebeurt in de **Zeus kelder**. Probeer het project al eens werkende te krijgen op voorhand, of installeer de relevante programma's toch al (Android Studio en XCode (voor iOS)).
+Er wordt achter eten gegaan door Zeusleden.
+
+[ Android ](https://github.com/ZeusWPI/hydra-android/)
+
+[ iOS ](https://github.com/ZeusWPI/hydra-iOS/)
+
+~~ We proberen productieve coders wat in de watten te leggen ~~
\ No newline at end of file
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..373ba4e
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,11 @@
+#! /bin/bash
+echo "Pull Request: $TRAVIS_PULL_REQUEST"
+echo "Branch: $TRAVIS_BRANCH"
+
+if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
+ if [[ $TRAVIS_BRANCH == "master" ]]; then
+ bundle exec nanoc --env=prod deploy public
+ fi
+else
+ rsync -aglpPrtvz --delete output/ "deploy@$TRAVIS_PULL_REQUEST.zeus.werthen.com:/var/www/html/$TRAVIS_PULL_REQUEST/"
+fi
diff --git a/layouts/partials/_events_tile.erb b/layouts/partials/_events_tile.erb
index 42d6b11..971b1e3 100644
--- a/layouts/partials/_events_tile.erb
+++ b/layouts/partials/_events_tile.erb
@@ -19,7 +19,7 @@
-
+
<%= fa :'clock-o' , fw: true %><%= @event[:time].strftime('%A %d %B, %H:%M') %>
<%= fa :'map-marker', fw: true %><%= @event[:location] %>
diff --git a/lib/helpers/events.rb b/lib/helpers/events.rb
index 4872a7c..db4ec84 100644
--- a/lib/helpers/events.rb
+++ b/lib/helpers/events.rb
@@ -22,7 +22,7 @@ module EventsHelper
end
def academic_years_event_items
- items.find_all('/events/*').map { |e| [e[:academic_year], e] }.sort_by(&:first)
+ items.find_all('/events/*').map { |e| [e[:academic_year], e] }.sort_by(&:first).reverse
end
def grouped_events