Skip to content

Commit

Permalink
Improve UX
Browse files Browse the repository at this point in the history
  • Loading branch information
yamamuteki committed Apr 29, 2016
1 parent aa4e409 commit 6fbeeeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/views/bus_route_infos/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% cache params[:id] do %>
<div class="row page-top-search-box">
<div class="col-sm-4">
<div class="col-xs-12 col-sm-4">
<%= render partial: 'bus_stop_search_form' %>
<h1><%= @bus_route_info.line_name %></h1>
<p>
Expand All @@ -24,7 +24,7 @@
<% end %>
</div>
</div>
<div class="col-sm-8">
<div class="col-xs-12 col-sm-8">
<div id="map" class="map"></div>
<script type="text/javascript">
handler = Gmaps.build('Google');
Expand Down
4 changes: 2 additions & 2 deletions app/views/bus_stops/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% cache params[:q].to_s + params[:position].to_s do %>
<div class="row page-top-search-box">
<div class="col-sm-4">
<div class="col-xs-12 col-sm-4">
<%= render partial: 'bus_stop_search_form' %>
<h1>検索結果</h1>
<div class="list-group">
Expand All @@ -13,7 +13,7 @@
<% end %>
</div>
</div>
<div class="col-sm-8">
<div class="col-xs-12 col-sm-8">
<% if @bus_stops.present? then %>
<div id="map" class="map"></div>
<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions app/views/bus_stops/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<% cache params[:id] do %>
<div class="row page-top-search-box">
<div class="col-sm-4">
<div class="col-xs-12 col-sm-4">
<%= render partial: 'bus_stop_search_form' %>
<h1><%= @bus_stop.name %></h1>
<p><%= link_to @bus_stop.address + '付近', "http://maps.google.co.jp/maps?q=#{@bus_stop.latitude},#{@bus_stop.longitude}" %></p>
Expand All @@ -14,7 +14,7 @@
<% end %>
</div>
</div>
<div class="col-sm-8">
<div class="col-xs-12 col-sm-8">
<div id="map" class="map"></div>
<script type="text/javascript">
handler = Gmaps.build('Google');
Expand Down

0 comments on commit 6fbeeeb

Please sign in to comment.