Skip to content

Commit

Permalink
address nit
Browse files Browse the repository at this point in the history
  • Loading branch information
20wildmanj committed Nov 1, 2023
1 parent d6791a7 commit 09877e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
7 changes: 7 additions & 0 deletions app/views/scoreboards/_error_icon.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<td>
<div style="display: flex; align-content: center; justify-content: center;">
<i class="material-icons tooltipped" data-tooltip="Could not parse scoreboard entry">
error_outline
</i>
</div>
</td>
18 changes: 3 additions & 15 deletions app/views/scoreboards/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,7 @@
<% if grade[:entry].is_a?(Array) && grade[:entry][i] != "-" %>
<td><%= grade[:entry][i] %></td>
<% else %>
<td>
<div style="display: flex; align-content: center; justify-content: center;">
<i class="material-icons tooltipped" data-tooltip="Could not parse scoreboard entry">
error_outline
</i>
</div>
</td>
<%= render 'error_icon' %>
<% end %>
<% end %>
<% end %>
Expand All @@ -79,15 +73,9 @@
<% if grade[:entry].is_a?(Array) && grade[:entry][i] != "-" %>
<% grade[:entry].each do |column| %>
<td><%= column %></td>
<% end %>
<% end %>q
<% else %>
<td>
<div style="display: flex; align-content: center; justify-content: center;">
<i class="material-icons tooltipped" data-tooltip="Could not parse scoreboard entry">
error_outline
</i>
</div>
</td>
<%= render 'error_icon' %>
<% end %>
<% end %>
</tr>
Expand Down

0 comments on commit 09877e7

Please sign in to comment.