aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/shared
diff options
context:
space:
mode:
authorLuc Donnet2015-05-12 16:24:48 +0200
committerLuc Donnet2015-05-12 16:24:48 +0200
commit1ee52cce4c325a58368f3e28e8070f7b3bb4f4f2 (patch)
tree6c7ca311fcbdc54199dbb5527cd03895081901f1 /app/views/shared
parent42cda208c4413053c0462aff2eb623b45204be80 (diff)
downloadchouette-core-1ee52cce4c325a58368f3e28e8070f7b3bb4f4f2.tar.bz2
Fix locales design and bugs Refs #0035551 #0035504
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_ie_report.html.erb11
1 files changed, 5 insertions, 6 deletions
diff --git a/app/views/shared/_ie_report.html.erb b/app/views/shared/_ie_report.html.erb
index b8d09ccd4..51cb51706 100644
--- a/app/views/shared/_ie_report.html.erb
+++ b/app/views/shared/_ie_report.html.erb
@@ -35,8 +35,8 @@
<table class="table table-hover table-striped" data-label="<%= t('.graph.lines.objects_label') %>" data-total-lines="<%= job.report.lines %>" data-total-routes="<%= job.report.routes %>" data-total-connection_links="<%= job.report.connection_links %>", data-total-time_tables="<%= job.report.time_tables %>" data-total-stop_areas="<%= job.report.stop_areas %>" data-total-access_points="<%= job.report.access_points %>" data-total-vehicle_journeys="<%= job.report.vehicle_journeys %>" data-total-journey_patterns="<%= job.report.journey_patterns %>" >
<thead>
<tr>
+ <th class="save"><%= t(".table.line.save") %></th>
<th class="lines"><%= t(".table.line.lines") %></th>
- <th class="save"><%= t(".table.line.save") %></th>
<th class="routes"><%= t(".table.line.routes") %></th>
<th class="connection_links"><%= t(".table.line.connection_links") %></th>
<th class="time_tables"><%= t(".table.line.time_tables") %></th>
@@ -47,11 +47,10 @@
</tr>
</thead>
<tbody>
- <% job.report.line_items.each_with_index do |line_item, index| %>
- <% tr_class = (line_item.status == "saved") ? '' : 'class=\'danger\''%>
- <tr <%= tr_class %>>
- <td><%= line_item.name %></td>
- <td><%= t(".table.line." + line_item.status ) %></td>
+ <% job.report.line_items.each_with_index do |line_item, index| %>
+ <tr>
+ <td><%= line_item.status ? font_awesome_classic_tag("fa-check") : font_awesome_classic_tag("fa-times") %></td>
+ <td><%= line_item.name %></td>
<td><%= line_item.routes %></td>
<td><%= line_item.connection_links %></td>
<td><%= line_item.time_tables %></td>