Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
e2b4269c
Commit
e2b4269c
authored
Jan 20, 2018
by
Hugo LEVY-FALK
Committed by
root
Jan 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Service usage in machine templates.
parent
61b16980
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
machines/templates/machines/sidebar.html
machines/templates/machines/sidebar.html
+2
-2
re2o/templatetags/acl.py
re2o/templatetags/acl.py
+2
-2
No files found.
machines/templates/machines/sidebar.html
View file @
e2b4269c
...
...
@@ -62,7 +62,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Gestion des nas
</a>
{% acl_end %}
{% can_view_all Service %}
{% can_view_all
machines.
Service %}
<a
class=
"list-group-item list-group-item-info"
href=
"{% url "
machines:index-service
"
%}"
>
<i
class=
"glyphicon glyphicon-list"
></i>
Services (dhcp, dns...)
...
...
@@ -72,6 +72,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
<a
class=
"list-group-item list-group-item-info"
href=
"{% url "
machines:index-portlist
"
%}"
>
<i
class=
"glyphicon glyphicon-list"
></i>
Ouverture de ports
</a>
</a>
{% acl_end %}
{% endblock %}
re2o/templatetags/acl.py
View file @
e2b4269c
...
...
@@ -106,7 +106,7 @@ MODEL_NAME = {
'Interface'
:
machines
.
models
.
Interface
,
'Domain'
:
machines
.
models
.
Domain
,
'IpList'
:
machines
.
models
.
IpList
,
'Service'
:
machines
.
models
.
Service
,
'
machines.
Service'
:
machines
.
models
.
Service
,
'Service_link'
:
machines
.
models
.
Service_link
,
'OuverturePortList'
:
machines
.
models
.
OuverturePortList
,
'OuverturePort'
:
machines
.
models
.
OuverturePort
,
...
...
@@ -115,7 +115,7 @@ MODEL_NAME = {
'OptionalMachine'
:
preferences
.
models
.
OptionalMachine
,
'OptionalTopologie'
:
preferences
.
models
.
OptionalTopologie
,
'GeneralOption'
:
preferences
.
models
.
GeneralOption
,
'Service'
:
preferences
.
models
.
Service
,
'
preferences.
Service'
:
preferences
.
models
.
Service
,
'AssoOption'
:
preferences
.
models
.
AssoOption
,
'MailMessageOption'
:
preferences
.
models
.
MailMessageOption
,
# topologie
...
...
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