hackathon_manager 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ada44c422fef916f3f8ff3523e1e79295130b9
|
4
|
+
data.tar.gz: cbd65ffc0718a35379a357513b26eb8261c0b172
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041cb1c01079842c38c1a00c871b17420798d938bc1b6b569edf3ab19299bcfd5fbdcdcd175c7318af12190f0d11c43114e8046873c9fb00c53bc2b9d6371fcb
|
7
|
+
data.tar.gz: 0ce36a1fdf7e8cc26033f0714d880dce350e15eafe3caba2ace831a2d7b901fe802c3d678b717c82a19a8b2f2448c3b22ed4a0a500876061f4e9d69650623594
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
@import '../variables'
|
1
2
|
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600')
|
2
3
|
|
3
4
|
body
|
@@ -63,7 +64,7 @@ h1, h2
|
|
63
64
|
font-weight: 300
|
64
65
|
text-transform: uppercase
|
65
66
|
font-size: 36px
|
66
|
-
color:
|
67
|
+
color: $primary
|
67
68
|
|
68
69
|
h3
|
69
70
|
font-weight: 600
|
@@ -95,7 +96,7 @@ h1.center,h2.center,h3.center,h4.center,h5.center,h6.center,p.center
|
|
95
96
|
text-align: center
|
96
97
|
|
97
98
|
.button
|
98
|
-
background:
|
99
|
+
background: $secondary
|
99
100
|
display: inline-block
|
100
101
|
padding: 0.8em 1.5em
|
101
102
|
font-size: 15px
|
data/app/mailers/mail_preview.rb
CHANGED
@@ -2,7 +2,7 @@ if defined?(ActionMailer::Preview)
|
|
2
2
|
class MailPreview < ActionMailer::Preview
|
3
3
|
def application_confirmation_email
|
4
4
|
questionnaire = Questionnaire.first
|
5
|
-
Mailer.application_confirmation_email(questionnaire)
|
5
|
+
Mailer.application_confirmation_email(questionnaire.id)
|
6
6
|
end
|
7
7
|
|
8
8
|
def rsvp_confirmation_email
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h2>Finish Your Application</h2>
|
2
2
|
<p>You're almost there! You completed the My MLH part of the application, but didn't finish the additional <%= Rails.configuration.hackathon['name'] %>-specific questions.</p>
|
3
3
|
<p><strong>Your application will not be considered until it is completed.</strong></p>
|
4
|
-
<p>Not to worry! Just head on back to the website,
|
5
|
-
<p
|
4
|
+
<p>Not to worry! Just <%= link_to 'head on back to the website', questionnaires_url %>, sign in with your existing My MLH account (if necessary), and complete the application.</p>
|
5
|
+
<p><%= link_to 'Finish Application »', questionnaires_url, class: 'button' %></p>
|
6
6
|
<p>Happy hacking!<br> - The <%= Rails.configuration.hackathon['name'] %> Team</p>
|
data/db/seeds.rb
CHANGED
@@ -10,7 +10,8 @@ require 'csv'
|
|
10
10
|
|
11
11
|
puts "Seeding school list..."
|
12
12
|
|
13
|
-
|
13
|
+
csv_file = File.join(File.dirname(__FILE__), 'schools.csv')
|
14
|
+
csv_text = File.read(csv_file)
|
14
15
|
csv = CSV.parse(csv_text, headers: true)
|
15
16
|
csv.each do |row|
|
16
17
|
School.create(row.to_hash)
|