summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/account.html.ep6
-rw-r--r--templates/changelog.html.ep16
-rw-r--r--templates/journey.html.ep10
3 files changed, 25 insertions, 7 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
index 0a5dbda..5539a39 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -116,10 +116,10 @@
<span style="color: #999999;"><%= L('account.webhook.disabled') %></span>
% }
% elsif ($hook->{latest_run}->epoch == 0) {
- <%= L('account.webhook.active_pending') %>
+ <%= L('account.webhook.active-pending') %>
% }
% elsif ($hook->{errored}) {
- <%= L('account.webhook.active_error') %> <i class="material-icons" aria-hidden="true">error</i>
+ <%= L('account.webhook.active-error') %> <i class="material-icons" aria-hidden="true">error</i>
% }
% else {
<%= L('account.webhook.active') %>
@@ -159,7 +159,7 @@
</tr>
% }
<tr>
- <th scope="row"><%= L('account.registration_date') %></th>
+ <th scope="row"><%= L('account.registration-date') %></th>
<td><%= $acc->{registered_at}->strftime(L('strftime.datetime')) %></td>
</tr>
</table>
diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep
index 0d1ecc5..f4b6449 100644
--- a/templates/changelog.html.ep
+++ b/templates/changelog.html.ep
@@ -2,6 +2,22 @@
<div class="row">
<div class="col s12 m1 l1">
+ 2.16
+ </div>
+ <div class="col s12 m11 l11">
+ <p>
+ <i class="material-icons left" aria-label="<%= L('changelog.added') %>">add</i>
+ %= L('changelog.2-16.1')
+ </p>
+ <p>
+ <i class="material-icons left" aria-label="<%= L('changelog.bugfix') %>">build</i>
+ %= L('changelog.2-16.2')
+ </p>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12 m1 l1">
2.15
</div>
<div class="col s12 m11 l11">
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 2699d4a..f9c78ec 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -257,11 +257,12 @@
% my $before = 1;
% my $within = 0;
% my $at_startstop = 0;
+ % my $i = 0;
% for my $station (@{$journey->{route}}) {
- % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
+ % if ($i == $journey->{route_dep_index}) {
% $within = 1; $at_startstop = 1;
% }
- % elsif (($station->[1] and $station->[1] == $journey->{to_eva}) or $station->[0] eq $journey->{to_name}) {
+ % elsif ($i == $journey->{route_arr_index}) {
% $within = 0; $at_startstop = 1;
% }
% else {
@@ -269,10 +270,10 @@
% }
<span style="color: #808080;">
% if ($before and $station->[2]{sched_dep}) {
- %= $station->[2]{sched_dep}->strftime('%H:%M')
+ %= $station->[2]{sched_dep_dt}->strftime('%H:%M')
% }
% elsif (not $before and $station->[2]{sched_arr}) {
- %= $station->[2]{sched_arr}->strftime('%H:%M')
+ %= $station->[2]{sched_arr_dt}->strftime('%H:%M')
% }
</span>
% if ($at_startstop or $within) {
@@ -298,6 +299,7 @@
% $before = 0;
% }
<br/>
+ % $i += 1;
% }
</td>
</tr>