Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
nm.debian.org
Commits
d8a877d0
Commit
d8a877d0
authored
Apr 20, 2020
by
Enrico Zini
Browse files
Added missing icons. refs:
#2
parent
5d540c27
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/mixins.py
View file @
d8a877d0
...
@@ -127,11 +127,12 @@ class VisitPersonMixin(VisitorMixin):
...
@@ -127,11 +127,12 @@ class VisitPersonMixin(VisitorMixin):
"key"
:
self
.
person
.
lookup_key
})
+
f
"?url=
{
self
.
request
.
build_absolute_uri
()
}
"
,
"key"
:
self
.
person
.
lookup_key
})
+
f
"?url=
{
self
.
request
.
build_absolute_uri
()
}
"
,
_
(
"Impersonate"
),
"random"
))
_
(
"Impersonate"
),
"random"
))
if
self
.
person
.
is_dd
:
if
self
.
person
.
is_dd
:
res
.
append
(
NavLink
(
reverse
(
"mia_wat_ping"
,
kwargs
=
{
"key"
:
self
.
person
.
lookup_key
}),
_
(
"WAT ping"
)))
res
.
append
(
NavLink
(
reverse
(
"mia_wat_ping"
,
kwargs
=
{
"key"
:
self
.
person
.
lookup_key
}),
_
(
"WAT ping"
),
"heartbeat"
))
from
process.views
import
Emeritus
from
process.views
import
Emeritus
emeritus_link
=
Emeritus
.
get_nonauth_url
(
self
.
person
,
self
.
request
)
emeritus_link
=
Emeritus
.
get_nonauth_url
(
self
.
person
,
self
.
request
)
if
emeritus_link
:
if
emeritus_link
:
res
.
append
(
NavLink
(
emeritus_link
,
_
(
"One click emeritus"
)))
res
.
append
(
NavLink
(
emeritus_link
,
_
(
"One click emeritus"
)
,
"bed"
))
if
self
.
person
.
is_am
:
if
self
.
person
.
is_am
:
res
.
append
(
NavLink
(
res
.
append
(
NavLink
(
reverse
(
"person_amprofile"
,
kwargs
=
{
"key"
:
self
.
person
.
lookup_key
}),
_
(
"AM Profile"
),
"gear"
))
reverse
(
"person_amprofile"
,
kwargs
=
{
"key"
:
self
.
person
.
lookup_key
}),
_
(
"AM Profile"
),
"gear"
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment