Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FoD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Schmitz
FoD
Commits
ff338d04
Commit
ff338d04
authored
7 years ago
by
David Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
route_detail view: add info about current TZ
parent
ff53c7b1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
flowspec/views.py
+6
-1
6 additions, 1 deletion
flowspec/views.py
locale/el/LC_MESSAGES/django.po
+4
-0
4 additions, 0 deletions
locale/el/LC_MESSAGES/django.po
templates/flowspy/route_details.html
+2
-2
2 additions, 2 deletions
templates/flowspy/route_details.html
with
12 additions
and
3 deletions
flowspec/views.py
+
6
−
1
View file @
ff338d04
...
@@ -823,7 +823,12 @@ def routedetails(request, route_slug):
...
@@ -823,7 +823,12 @@ def routedetails(request, route_slug):
route
=
get_object_or_404
(
Route
,
name
=
route_slug
)
route
=
get_object_or_404
(
Route
,
name
=
route_slug
)
#return render(request, 'flowspy/route_details.html', {'route': route})
#return render(request, 'flowspy/route_details.html', {'route': route})
now
=
datetime
.
datetime
.
now
()
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
@login_required
def
routestats
(
request
,
route_slug
):
def
routestats
(
request
,
route_slug
):
...
...
This diff is collapsed.
Click to expand it.
locale/el/LC_MESSAGES/django.po
+
4
−
0
View file @
ff338d04
...
@@ -398,6 +398,10 @@ msgstr "Τελευταία 10"
...
@@ -398,6 +398,10 @@ msgstr "Τελευταία 10"
msgid "Last update"
msgid "Last update"
msgstr "Ενημερώθηκε"
msgstr "Ενημερώθηκε"
#: templates/dashboard.html:66
msgid "Last rule edit"
msgstr "Ενημερώθηκε"
#: templates/dashboard.html:66
#: templates/dashboard.html:66
msgid "by"
msgid "by"
msgstr "από"
msgstr "από"
...
...
This diff is collapsed.
Click to expand it.
templates/flowspy/route_details.html
+
2
−
2
View file @
ff338d04
...
@@ -22,7 +22,7 @@ function myreloadPage() {
...
@@ -22,7 +22,7 @@ function myreloadPage() {
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div>
<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>
<div>
<div>
<h2>
{% trans 'About' %}
</h2>
<h2>
{% trans 'About' %}
</h2>
...
@@ -81,7 +81,7 @@ function myreloadPage() {
...
@@ -81,7 +81,7 @@ function myreloadPage() {
</div>
</div>
<div>
<div>
<h2>
Statistics
</h2>
<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>
<div><span
id=
"traffic-plot-loading"
>
(Loading data...)
</span>
<h3>
Number of packets (absolute)
</h3>
<h3>
Number of packets (absolute)
</h3>
<div><canvas
id=
"traffic-plot-pkts-abs"
width=
200
height=
200
></canvas></div>
<div><canvas
id=
"traffic-plot-pkts-abs"
width=
200
height=
200
></canvas></div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment