Skip to content

Commit 1003bba

Browse files
authored
improve generator log format (coorasse#32)
generator wil be in the format rather than
1 parent 8be5e4a commit 1003bba

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

app/views/passkit/dashboard/passes/index.html.erb

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,30 @@
22
<h1>Passkit Passes</h1>
33
<%= render 'shared/passkit/navigation' %>
44
</header>
5-
65
<main>
76
<h2>Last 100 passes and registered devices</h2>
87
<table>
98
<thead>
10-
<th>Created at</th>
11-
<th>Generator</th>
12-
<th>Pass Class</th>
13-
<th>Devices</th>
9+
<th>Created at</th>
10+
<th>Generator</th>
11+
<th>Pass Class</th>
12+
<th>Devices</th>
1413
</thead>
1514
<tbody>
16-
<% @passes.each do |pass| %>
17-
<tr>
18-
<td><%= I18n.l(pass.created_at) %></td>
19-
<td><%= pass.generator.to_s %></td>
20-
<td><%= pass.klass %></td>
21-
<td>
22-
<% pass.devices.each do |device| %>
23-
<div>
15+
<% @passes.each do |pass| %>
16+
<tr>
17+
<td><%= I18n.l(pass.created_at) %></td>
18+
<td><%= pass.generator.class.name %> - <%= pass.generator.id %></td>
19+
<td><%= pass.klass %></td>
20+
<td>
21+
<% pass.devices.each do |device| %>
22+
<div>
2423
<%= device.push_token %>
25-
</div>
26-
<% end %>
27-
</td>
28-
</tr>
29-
<% end %>
24+
</div>
25+
<% end %>
26+
</td>
27+
</tr>
28+
<% end %>
3029
</tbody>
3130
</table>
3231
</main>

0 commit comments

Comments
 (0)