-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
223 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class ChangeMailer < ApplicationMailer | ||
|
||
def page(change) | ||
@change = change | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,8 @@ def previous | |
# Change.where(before: previous, after: self).first_or_create | ||
# end | ||
|
||
def parent | ||
page | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="container"> | ||
<div class="klax-app-name"> | ||
Klaxon | ||
</div> | ||
<h2>Change</h2> | ||
|
||
<%= @change.to_json %> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,88 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<%= yield %> | ||
</body> | ||
<head> | ||
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /> | ||
<style> | ||
body { | ||
color: #ff0b3a; | ||
padding: 30px; | ||
font-family: "Helvetica Neue", Helvetica, sans-serif; | ||
} | ||
p { | ||
font-size: 14px; | ||
line-height: 1.4em; | ||
word-wrap: break-word; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
border-top: 0.2em solid #ff0b3a; | ||
padding-top: 10px; | ||
} | ||
|
||
h1 { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
font-size: 5.063em; | ||
} | ||
|
||
h2 {font-size: 3.375em;} | ||
|
||
h3 {font-size: 2.25em;} | ||
|
||
h4 {font-size: 1.5em;} | ||
|
||
.container { | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
} | ||
|
||
.klax-app-name { | ||
padding-bottom: 50px; | ||
font-weight: bold; | ||
font-size: 18px; | ||
} | ||
|
||
.klax-button { | ||
padding: 10px 16px; | ||
font-size: 18px; | ||
line-height: 1.33333; | ||
border: 1px solid #ff0b3a; | ||
display: block; | ||
text-align: center; | ||
} | ||
|
||
.klax-button:hover, .klax-button:hover a { | ||
background-color: #ff0b3a; | ||
color: #ffffff !important; | ||
text-decoration: none; | ||
} | ||
|
||
.klax-button { | ||
text-decoration: none !important; | ||
} | ||
|
||
.klax-lead { | ||
margin-bottom: 20px; | ||
font-size: 16px; | ||
font-weight: 300; | ||
line-height: 1.4; | ||
font-size: 21px; | ||
} | ||
|
||
.klax-fine-print { | ||
margin-top: 30px; | ||
font-size: 12px; | ||
} | ||
|
||
a { | ||
color: #ff0b3a; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe Change, type: :mailer do | ||
|
||
end |
Oops, something went wrong.