Skip to content

Commit 58fc650

Browse files
committed
モバイル画面でもデータを見やすく表示できるように修正
1 parent daade5e commit 58fc650

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/views/dojos/show.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,28 @@
1414
</h1>
1515
<br>
1616
<p style="margin: 0 0px 40px 10px; line-height: 1.5em;">
17-
<%= link_to "CoderDojo #{@dojo[:name]}", @dojo[:url] %>に関する公開されている統計情報をまとめたページです
17+
<%= link_to "CoderDojo #{@dojo[:name]}", @dojo[:url] %>に関する<br class='ignore-pc'>公開されている統計情報をまとめたページです
1818
<br><br>
1919
<% if @event_histories.any? %>
2020
<small>
2121
22-
<a href="<%= events_path %>">近日開催</a>のデータは含まず、<a href="<%= stats_path %>">過去開催</a>のデータを使っています
22+
<%= link_to '近日開催', events_path %>は含まず、<%= link_to '過去開催', stats_path %>のデータを使っています
2323
<br>
2424
25-
下記データは <code><%= link_to dojo_path(@dojo, format: :json), dojo_url(@dojo, format: :json) %></code> で JSON に変換できます
25+
下記表は <code><%= link_to dojo_path(@dojo, format: :json), dojo_url(@dojo, format: :json) %></code> で JSON に変換できます
2626
<br>
2727
28-
下記データは <code><%= link_to dojo_path(@dojo, format: :csv), dojo_url(@dojo, format: :csv) %></code> で CSV に変換できます
28+
下記表は <code><%= link_to dojo_path(@dojo, format: :csv), dojo_url(@dojo, format: :csv) %></code> で CSV に変換できます
2929
</small>
3030
<% end %>
3131
</p>
3232

3333
<div style="margin-top: 20px;" align="center">
3434
<% if @event_histories.any? %>
35-
<table border="1">
35+
<table border="1"
3636
<tr>
3737
<th style="padding: 10px; text-align: center;">
38-
<small>☯️
38+
<small>☯️<br class='ignore-pc'>
3939
開催日
4040
</small>
4141
</th>
@@ -61,7 +61,7 @@
6161
<td style="padding: 1px 10px 1px 10px; text-align: left;">
6262
<small>
6363
<a href='<%= event[:event_url] %>'>
64-
<span title="<%= event[:event_url] %>"><%= event[:event_url] %></span>
64+
<span title="<%= event[:event_url] %>"><%= event[:event_url].gsub('https://', '').chomp('/') %></span>
6565
</a>
6666
</small>
6767
</td>

0 commit comments

Comments
 (0)