Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
84425206
authored
Aug 26, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: translation support fixes
parent
154f8fdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
network/templates/network/menu.html
+16
-8
network/views.py
+2
-2
No files found.
network/templates/network/menu.html
View file @
84425206
...
...
@@ -2,26 +2,34 @@
{% load l10n %}
{% url network.host_list as u %}
{% include "network/menu-item.html" with href=u text="Hosts" %}
{% trans "Hosts" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.vlan_list as u %}
{% include "network/menu-item.html" with href=u text="Vlans" %}
{% trans "Vlans" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.domain_list as u %}
{% include "network/menu-item.html" with href=u text="Domains" %}
{% trans "Domains" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.record_list as u %}
{% include "network/menu-item.html" with href=u text="Records" %}
{% trans "Records" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.blacklist_list as u %}
{% include "network/menu-item.html" with href=u text="Blacklists" %}
{% trans "Blacklists" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.rule_list as u %}
{% include "network/menu-item.html" with href=u text="Rules" %}
{% trans "Rules" as t %}
{% include "network/menu-item.html" with href=u text=t %}
<li
class=
"dropdown{% if "
groups
"
in
request
.
path
%}
active
{%
endif
%}"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Groups
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
>
{% url network.vlan_group_list as u %}
{% include "network/menu-item.html" with href=u text="Vlan groups" %}
{% trans "Vlan groups" as t %}
{% include "network/menu-item.html" with href=u text=t %}
{% url network.group_list as u %}
{% include "network/menu-item.html" with href=u text="Host groups" %}
{% trans "Host groups" as t %}
{% include "network/menu-item.html" with href=u text=t %}
</ul>
</li>
...
...
network/views.py
View file @
84425206
...
...
@@ -308,7 +308,7 @@ class HostDelete(DeleteView):
return
self
.
get
(
request
,
*
args
,
**
kwargs
)
response
=
super
(
HostDelete
,
self
)
.
delete
(
request
,
*
args
,
**
kwargs
)
messages
.
success
(
request
,
"Deletion successful!"
)
messages
.
success
(
request
,
_
(
"Host successfully deleted!"
)
)
return
response
...
...
@@ -448,7 +448,7 @@ class VlanDelete(DeleteView):
return
self
.
get
(
request
,
*
args
,
**
kwargs
)
response
=
super
(
VlanDelete
,
self
)
.
delete
(
request
,
*
args
,
**
kwargs
)
messages
.
success
(
request
,
"Deletion successful!"
)
messages
.
success
(
request
,
_
(
"Vlan successfully deleted!"
)
)
return
response
def
get_context_data
(
self
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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