-
Notifications
You must be signed in to change notification settings - Fork 1
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
11 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
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.
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,51 @@ | ||
#stops.show h2 { | ||
height : 37px; | ||
padding-left : 37px; | ||
line-height : 37px; | ||
} | ||
|
||
#stops.show #map { | ||
width : 400px; | ||
height : 300px; | ||
} | ||
width : 300px; | ||
height : 200px; | ||
margin-bottom : 20px; | ||
} | ||
|
||
#stops.show ul { | ||
margin-top : 15px; | ||
} | ||
|
||
#stops.show ul li { | ||
padding : 5px 0; | ||
margin-bottom : 10px; | ||
min-height : 50px; | ||
} | ||
|
||
#stops.show ul li strong { | ||
/* line-height : 50px;*/ | ||
} | ||
|
||
#stops.show ul li > .img_wrap { | ||
float : left; | ||
width : 50px; | ||
} | ||
|
||
#stops.show ul li > .img_wrap img { | ||
height : 40px; | ||
} | ||
|
||
#stops.show .date { | ||
font-size : 9px; | ||
} | ||
|
||
#stops.show div.description { | ||
font-style: italic; | ||
width : 500px; | ||
} | ||
|
||
#stops.show div.description p { | ||
margin : 5px; | ||
} | ||
|
||
/*#stops.show ul li.odd { | ||
background-color : #eee; | ||
}*/ |
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,3 +1,2 @@ | ||
<h3><%= link_to "Station list", stops_path %></h3> | ||
|
||
<div id="map"></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,12 +1,28 @@ | ||
<h2><%= @stop.name %></h2> | ||
<strong><%= link_to "Report something", new_stop_incident_path(@stop) %></strong> | ||
<h2 style="background: transparent url('<%= line_icon_url(@stop.line) %>') no-repeat scroll top left;"> | ||
<%= @stop.display_name %> | ||
</h2> | ||
|
||
<div id="map" data-lat="<%= @stop.lat %>" data-lon="<%= @stop.lon %>" data-label="<%= @stop.name %>"></div> | ||
|
||
<h3>Reported Incidents</h3> | ||
<strong><%= link_to "Report something", new_stop_incident_path(@stop) %></strong> | ||
|
||
<ul> | ||
<% for incident in @incidents %> | ||
<li><%= link_to incident.title, stop_incident_path(@stop, incident) %></li> | ||
<li class="<%= incident.kind %> <%= cycle("odd", "even") %>"> | ||
<div class='img_wrap'> | ||
<%= image_tag "#{incident.kind}.png" %> | ||
</div> | ||
|
||
<div> | ||
<strong> | ||
<%= incident.title.present? ? incident.title : incident.happened_at_display %> | ||
</strong> | ||
</div> | ||
|
||
|
||
<%= content_tag :span, "@#{incident.happened_at_display}", :class => "date" if incident.title.present? %> | ||
<%= content_tag :div, simple_format(incident.description), :class => "description" if incident.description.present? %> | ||
</li> | ||
<% end %> | ||
</ul> |