diff --git a/flowspec/views.py b/flowspec/views.py index 95ac94e7d6923ab6ec653b8ee611a6e6e8ade365..bad7f37841ee09fd980aa11ac9c0c8808f9bddd6 100644 --- a/flowspec/views.py +++ b/flowspec/views.py @@ -823,7 +823,12 @@ def routedetails(request, route_slug): route = get_object_or_404(Route, name=route_slug) #return render(request, 'flowspy/route_details.html', {'route': route}) now = datetime.datetime.now() - return render(request, 'flowspy/route_details.html', {'route': route, 'mytime': now, 'route_comments_len' : len(str(route.comments)) }) + return render(request, 'flowspy/route_details.html', { + 'route': route, + 'mytime': now, + 'tz' : settings.TIME_ZONE, + 'route_comments_len' : len(str(route.comments)) + }) @login_required def routestats(request, route_slug): diff --git a/locale/el/LC_MESSAGES/django.po b/locale/el/LC_MESSAGES/django.po index 0b1966bb6d895acfb6966f580166eadd99c993cb..14688425ef826fae6f956d8bfd207cd1dac44d72 100644 --- a/locale/el/LC_MESSAGES/django.po +++ b/locale/el/LC_MESSAGES/django.po @@ -398,6 +398,10 @@ msgstr "Τελευταία 10" msgid "Last update" msgstr "Ενημερώθηκε" +#: templates/dashboard.html:66 +msgid "Last rule edit" +msgstr "Ενημερώθηκε" + #: templates/dashboard.html:66 msgid "by" msgstr "από" diff --git a/templates/flowspy/route_details.html b/templates/flowspy/route_details.html index 470e2ad4019f7602ad5e03b9d480aa9a0f7378bf..97c09be201a5aa087a7a3da09a0fada14679092f 100644 --- a/templates/flowspy/route_details.html +++ b/templates/flowspy/route_details.html @@ -22,7 +22,7 @@ function myreloadPage() { </div> <div class="col-md-12"> <div> - <i class="fa fa-pencil-square-o"></i> {% trans "Last update" %}: {{route.last_updated}} {% trans "by" %} {{route.applier}} + <i class="fa fa-pencil-square-o"></i> {% trans "Last rule edit" %}: {{route.last_updated}} {% trans "by" %} {{route.applier}} </div> <div> <h2>{% trans 'About' %}</h2> @@ -81,7 +81,7 @@ function myreloadPage() { </div> <div> <h2>Statistics</h2> - <div>(current System time: {{ mytime|date:'Y-m-d H:i' }}, active rules will be updated every 5 minutes)</div> + <div>(all times are in {{ tz }}; current System time: {{ mytime|date:'Y-m-d H:i' }}, active rules will be updated every 5 minutes)</div> <div><span id="traffic-plot-loading">(Loading data...)</span> <h3>Number of packets (absolute)</h3> <div><canvas id="traffic-plot-pkts-abs" width=200 height=200></canvas></div>