-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from RSid/listofpopularcities-79-rsid
Listofpopularcities 79 rsid
- Loading branch information
Showing
9 changed files
with
152 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
*= require nav | ||
*= require search | ||
*= require _mobile | ||
*= require top_cities | ||
*/ | ||
|
||
@import 'variables'; | ||
|
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,49 @@ | ||
#welcome-container{ | ||
margin-top: 25px; | ||
width: 100%; | ||
display: inline-block; | ||
} | ||
|
||
#top-cities-content { | ||
border: 5px solid #41326b; | ||
width: 30%; | ||
display: inline-block; | ||
float: left; | ||
margin-left: 10px; | ||
overflow: scroll; | ||
} | ||
|
||
#top-cities-content > p{ | ||
font-size: 18px; | ||
background-color: #8377AF; | ||
border-bottom: 2px solid #41326b; | ||
color: white; | ||
padding: 3px; | ||
} | ||
|
||
ul { | ||
margin-top: 5px; | ||
} | ||
|
||
ul li{ | ||
text-align: left; | ||
} | ||
|
||
ul li > a{ | ||
text-decoration: none; | ||
color: black; | ||
} | ||
|
||
ul li > a:hover{ | ||
text-decoration: none; | ||
color: #8377AF; | ||
} | ||
|
||
#preamble { | ||
width: 60%; | ||
display: inline-block; | ||
float: left; | ||
padding-left: 3em; | ||
text-align: left; | ||
padding-top: 2em; | ||
} |
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,3 +1,7 @@ | ||
class WelcomeController < ApplicationController | ||
layout 'splash', only: [:index] | ||
|
||
def index | ||
@cities = Restroom.top_cities | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
%div{:id => "top-cities-content"} | ||
%p | ||
Popular Cities | ||
%ul | ||
- @cities.each do |city| | ||
%li | ||
= link_to city.join(", "), restrooms_path(search: city) |
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