-
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
1 parent
c1cd3fa
commit 9cf9f50
Showing
10 changed files
with
156 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
<%= form_tag bus_stops_path, :method => 'get' do %> | ||
<%= form_tag bus_stops_path, method: 'get' do %> | ||
<div class="input-group"> | ||
<%= text_field_tag :q, params[:q], placeholder: 'バス停名を省略すると周辺を検索します。', class: 'form-control' %> | ||
<% if menu then %> | ||
<span class="input-group-btn"> | ||
<a title="ホーム" href="<%= root_path %>" class="btn btn-default"> | ||
<span class="glyphicon glyphicon-home" aria-hidden="true"></span> | ||
</a> | ||
</span> | ||
<% end %> | ||
<%= text_field_tag :q, params[:q], placeholder: 'バス停名を省略すると周辺を検索します', class: 'form-control' %> | ||
<span class="input-group-btn"> | ||
<%= submit_tag '検索', name: nil, class: 'btn btn-primary', data: { geolocation: '' } %> | ||
<%= button_tag title: '検索', name: nil, class: 'btn btn-primary', data: { geolocation: '' } do %> | ||
<span class="glyphicon glyphicon-search" aria-hidden="true"></span> | ||
<% end %> | ||
</span> | ||
</div> | ||
<% 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,15 @@ | ||
<div class="row menu-bar"> | ||
<div class="col-xs-12 col-sm-8 hidden-xs"> | ||
<h2> | ||
<a href="<%= root_path %>" class="brand-link"> | ||
<img src="<%= image_path "apple-touch-icon.png" %>" width="34" height="34" class="round-image"> | ||
chi-bus.jp | ||
</a> | ||
</h2> | ||
</div> | ||
<div class="col-xs-12 col-sm-4"> | ||
<div class="search-box"> | ||
<%= render partial: 'bus_stop_search_form', locals: { menu: true } %> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
<% cache params[:id] do %> | ||
<div class="row page-top-search-box"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-8"> | ||
<%= render partial: 'map', locals: { bus_stops: @bus_route.bus_stops, bus_routes: [@bus_route] } %> | ||
</div> | ||
<div class="col-xs-12 col-sm-4"> | ||
<%= render partial: 'bus_stop_search_form' %> | ||
<h1><%= @bus_route.line_name %></h1> | ||
<h3><%= @bus_route.line_name %></h3> | ||
<p><%= "#{@bus_route.operation_company} #{@bus_route.bus_type_label}" %></p> | ||
<p> | ||
<span class="label label-default"><%= "平日 #{@bus_route.weekday_rate}" %></span> | ||
<span class="label label-primary"><%= "土曜 #{@bus_route.saturday_rate}" %></span> | ||
<span class="label label-danger"><%= "日祝 #{@bus_route.holiday_rate}" %></span> | ||
</p> | ||
<div class="list-group"> | ||
<% @bus_route.bus_stops.each_with_index do |bus_stop, index| %> | ||
<a href="<%= bus_stop_path(bus_stop) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_stop.bus_routes.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_stop.name}" %></div> | ||
</a> | ||
<% end %> | ||
<div class="list-window"> | ||
<div class="list-group"> | ||
<% @bus_route.bus_stops.each_with_index do |bus_stop, index| %> | ||
<a href="<%= bus_stop_path(bus_stop) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_stop.bus_routes.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_stop.name}" %></div> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-sm-8"> | ||
<%= render partial: 'map', locals: { bus_stops: @bus_route.bus_stops, bus_routes: [@bus_route] } %> | ||
</div> | ||
</div> | ||
<%= link_to 'ホーム', root_path, class: 'btn btn-default' %> | ||
<%= link_to '戻る', 'javascript:history.back()', class: 'btn btn-default' %> | ||
<% 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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
<% cache params[:q].to_s + params[:position].to_s do %> | ||
<div class="row page-top-search-box"> | ||
<div class="col-xs-12 col-sm-4"> | ||
<%= render partial: 'bus_stop_search_form' %> | ||
<h1>検索結果</h1> | ||
<div class="list-group"> | ||
<% @bus_stops.each_with_index do |bus_stop, index| %> | ||
<a href="<%=bus_stop_path(bus_stop) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_stop.bus_routes.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_stop.name}" %></div> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-8"> | ||
<%= render partial: 'map', locals: { bus_stops: @bus_stops, bus_routes: nil } %> | ||
</div> | ||
<div class="col-xs-12 col-sm-4"> | ||
<h3>検索結果</h3> | ||
<% if @bus_stops.empty? then %> | ||
<p>検索結果はありません。</p> | ||
<% end %> | ||
<div class="list-window"> | ||
<div class="list-group"> | ||
<% @bus_stops.each_with_index do |bus_stop, index| %> | ||
<a href="<%=bus_stop_path(bus_stop) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_stop.bus_routes.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_stop.name}" %></div> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<%= link_to 'ホーム', root_path, class: 'btn btn-default' %> | ||
<%= link_to '戻る', 'javascript:history.back()', class: 'btn btn-default' %> | ||
<% 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 |
---|---|---|
@@ -1,23 +1,22 @@ | ||
<% cache params[:id] do %> | ||
<div class="row page-top-search-box"> | ||
<div class="row"> | ||
<div class="col-xs-12 col-sm-8"> | ||
<%= render partial: 'map', locals: { bus_stops: [@bus_stop], bus_routes: @bus_stop.bus_routes } %> | ||
</div> | ||
<div class="col-xs-12 col-sm-4"> | ||
<%= render partial: 'bus_stop_search_form' %> | ||
<h1><%= @bus_stop.name %></h1> | ||
<h3><%= @bus_stop.name %></h3> | ||
<p><%= link_to @bus_stop.address + '付近', "http://maps.google.co.jp/maps?q=#{@bus_stop.latitude},#{@bus_stop.longitude}" %></p> | ||
<div class="list-group"> | ||
<% @bus_stop.bus_routes.each_with_index do |bus_route, index| %> | ||
<a href="<%= bus_route_path(bus_route) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_route.bus_stops.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_route.operation_company} #{bus_route.line_name}" %></div> | ||
</a> | ||
<% end %> | ||
<div class="list-window"> | ||
<div class="list-group"> | ||
<% @bus_stop.bus_routes.each_with_index do |bus_route, index| %> | ||
<a href="<%= bus_route_path(bus_route) %>" class="list-group-item"> | ||
<div class="badge"><%= bus_route.bus_stops.size %></div> | ||
<div class="list-number"><%= "#{index + 1}." %></div> | ||
<div class="list-content"><%= "#{bus_route.operation_company} #{bus_route.line_name}" %></div> | ||
</a> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xs-12 col-sm-8"> | ||
<%= render partial: 'map', locals: { bus_stops: [@bus_stop], bus_routes: @bus_stop.bus_routes } %> | ||
</div> | ||
</div> | ||
<%= link_to 'ホーム', root_path, class: 'btn btn-default' %> | ||
<%= link_to '戻る', 'javascript:history.back()', class: 'btn btn-default' %> | ||
<% 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 |
---|---|---|
@@ -1,27 +1,26 @@ | ||
<div class="row title"> | ||
<div class="col-md-12 text-center"> | ||
<%= image_tag 'chi-ba-kun-small.png'%> | ||
</div> | ||
<div class="col-md-12 text-center"> | ||
<h1> | ||
chi-bus.jp<br /> | ||
<small>チーバス・ジェイピー</small> | ||
</h1> | ||
</div> | ||
<div class="col-md-12 text-center"> | ||
<p class="lead"> | ||
千葉のカオスを解消する<br /> | ||
千葉県民のためのバス停情報サイト<br /> | ||
<small>(こっそり東京都にも対応)</small> | ||
</p> | ||
</div> | ||
<div class="col-sm-offset-4 col-sm-4 text-center"> | ||
<%= render partial: 'bus_stop_search_form' %> | ||
</div> | ||
<div class="col-sm-offset-4 col-sm-4"> | ||
<ul class="reference-info"> | ||
<li>本サービスでは国土交通省国土政策局の平成22年度バス停留所データ及び平成23年度バスルートデータを利用しています。</li> | ||
<li>千葉県PRマスコットキャラクター チーバくん</li> | ||
</ul> | ||
<div class="row home-parent"> | ||
<div class="row home-child"> | ||
<div class="col-xs-12 text-center"> | ||
<%= image_tag 'chi-ba-kun-small.png'%> | ||
<h1> | ||
chi-bus.jp<br /> | ||
<small>チーバス・ジェイピー</small> | ||
</h1> | ||
<p class="lead"> | ||
千葉のカオスを解消する<br /> | ||
千葉県民のためのバス停情報サイト<br /> | ||
<small>(こっそり東京都にも対応)</small> | ||
</p> | ||
</div> | ||
<div class="col-xs-12 col-sm-offset-4 col-sm-4"> | ||
<%= render partial: 'bus_stop_search_form', locals: { menu: false } %> | ||
<script type="text/javascript"> | ||
$(".home-parent #q").focus(); | ||
</script> | ||
<ul class="reference-info"> | ||
<li>本サービスでは国土交通省国土政策局の平成22年度バス停留所データ及び平成23年度バスルートデータを利用しています。</li> | ||
<li>千葉県PRマスコットキャラクター チーバくん</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</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