-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add flashes icons, add layouts for inner and landing pages, add initi…
…al autotest config for cuke
- Loading branch information
Glenn Roberts
committed
Apr 23, 2010
1 parent
a7ff418
commit 41ae0d1
Showing
15 changed files
with
93 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#Flash | ||
.success | ||
padding: 15px 10px 15px 50px | ||
border-color: #9c9 | ||
color: #4F8A10 | ||
background: url(/images/alertsuccess_icon.png) #DFF2BF left no-repeat | ||
|
||
.info | ||
padding: 15px 10px 15px 50px | ||
border-color: #9c9 | ||
color: #00529B | ||
background: url(/images/alertinfo_icon.png) #BDE5F8 left no-repeat | ||
|
||
.warning | ||
padding: 15px 10px 15px 50px | ||
border-color: #9c9 | ||
color: #9F6000 | ||
background: url(/images/alertwarning_icon.png) #FEEFB3 left no-repeat | ||
|
||
.validation_error | ||
padding: 15px 10px 15px 50px | ||
border-color: #c99 | ||
color: #D63301 | ||
background: url(/images/alertvalidation_error_icon.png) #FFCCBA left no-repeat | ||
|
||
.error | ||
padding: 15px 10px 15px 50px | ||
border-color: #c99 | ||
color: #D8000C | ||
background: url(/images/alerterror_icon.png) #FFBABA left no-repeat | ||
|
||
a | ||
color: #fff | ||
|
||
&:hover | ||
background: #000 |
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 @@ | ||
%h2 About Us |
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,10 @@ | ||
#container | ||
= render :partial => 'layouts/header' | ||
#content | ||
%h2 Inner Page Content | ||
= render :partial => 'layouts/flashes' | ||
= yield :layout | ||
= render :partial => 'layouts/footer' | ||
|
||
-# always on the last line | ||
= parent_layout 'application' |
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,12 @@ | ||
#container | ||
= render :partial => 'layouts/header' | ||
#content | ||
%h2 Content | ||
= render :partial => 'layouts/flashes' | ||
= yield :layout | ||
|
||
= render :partial => 'layouts/sidebar' | ||
= render :partial => 'layouts/footer' | ||
|
||
-# always on the last line | ||
= parent_layout 'application' |
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,19 @@ | ||
|
||
Then /^I am redirected to "([^\"]*)"$/ do |url| | ||
assert [301, 302].include?(@integration_session.status), "Expected status to be 301 or 302, got #{@integration_session.status}" | ||
location = @integration_session.headers["Location"] | ||
assert_equal url, location | ||
visit location | ||
end | ||
|
||
Then /^I am not redirected to "([^\"]*)"$/ do |url| | ||
assert ![301, 302].include?(@integration_session.status), "Expected status to be 301 or 302, got #{@integration_session.status}" | ||
location = @integration_session.headers["Location"] | ||
assert_not_equal url, location | ||
end | ||
|
||
|
||
Then /^I am redirected to the sign in page for privileged access$/ do | ||
Then 'I am redirected to "/users/sign_in?unauthenticated=true"' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
After do |scenario| | ||
save_and_open_page if scenario.status == :failed | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.