Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d092d85b
authored
Sep 02, 2013
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: translation support
parent
b19ab633
Show whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
58 additions
and
58 deletions
+58
-58
network/templates/network/blacklist-create.html
+1
-1
network/templates/network/blacklist-edit.html
+1
-1
network/templates/network/blacklist-list.html
+2
-2
network/templates/network/domain-create.html
+1
-1
network/templates/network/domain-edit.html
+2
-2
network/templates/network/domain-list.html
+2
-2
network/templates/network/group-create.html
+1
-1
network/templates/network/group-edit.html
+2
-2
network/templates/network/group-list.html
+2
-2
network/templates/network/host-create.html
+1
-1
network/templates/network/host-edit.html
+6
-6
network/templates/network/host-list.html
+5
-5
network/templates/network/index.html
+12
-12
network/templates/network/record-create.html
+1
-1
network/templates/network/record-edit.html
+2
-2
network/templates/network/record-list.html
+3
-3
network/templates/network/rule-create.html
+1
-1
network/templates/network/rule-edit.html
+1
-1
network/templates/network/rule-list.html
+2
-2
network/templates/network/vlan-create.html
+1
-1
network/templates/network/vlan-edit.html
+2
-2
network/templates/network/vlan-group-create.html
+1
-1
network/templates/network/vlan-group-edit.html
+2
-2
network/templates/network/vlan-group-list.html
+2
-2
network/templates/network/vlan-list.html
+2
-2
No files found.
network/templates/network/blacklist-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Create a blacklist
</h1>
<h1>
{% trans "Create a blacklist" %}
</h1>
</div>
<div
class=
"row"
>
<div
class=
"col-sm-4"
>
...
...
network/templates/network/blacklist-edit.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.blacklist_delete pk=blacklist_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this blaclist
</a>
<a
href=
"{% url network.blacklist_delete pk=blacklist_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this blaclist" %}
</a>
<h1>
{{ form.ipv4.value }}
<small>
{{ form.type.value }}
</small></h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/blacklist-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.blacklist_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new blacklist
</a>
<h1>
Blacklist
<small></small></h1>
<a
href=
"{% url network.blacklist_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new blacklist" %}
</a>
<h1>
{% trans "Blacklists" %}
<small></small></h1>
</div>
<div
class=
"table-responsive"
>
...
...
network/templates/network/domain-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Create a new domain
<small></small></h1>
<h1>
{% trans "Create a new domain" %}
<small></small></h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/domain-edit.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.domain_delete pk=domain_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this domain
</a>
<a
href=
"{% url network.domain_delete pk=domain_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this domain" %}
</a>
<h1>
{{ form.name.value }}
<small></small></h1>
</div>
...
...
@@ -17,7 +17,7 @@
</div>
<div
class=
"col-sm-5 col-sm-offset-1"
>
<h3>
List of this domain's records
{% trans "List of this domain's records" %}
</h3>
<hr
/>
<div
class=
"table-responsive"
>
...
...
network/templates/network/domain-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.domain_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new domain
</a>
<h1>
Domains
<small>
list of all domains
</small>
</h1>
<a
href=
"{% url network.domain_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new domain" %}
</a>
<h1>
{% trans "Domains" %}
</h1>
</div>
<div
class=
"table-responsive"
>
...
...
network/templates/network/group-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Create a new host group
</small>
</h1>
<h1>
{% trans "Create a new host group" %}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/group-edit.html
View file @
d092d85b
...
...
@@ -7,8 +7,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.group_delete pk=group.pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this group
</a>
<h1>
{{ form.name.value }}
<small>
details of group
</small>
</h1>
<a
href=
"{% url network.group_delete pk=group.pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this group" %}
</a>
<h1>
{{ form.name.value }}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/group-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.group_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new host group
</a>
<h1>
Host groups
<small>
list of all host groups
</small>
</h1>
<a
href=
"{% url network.group_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new host group" %}
</a>
<h1>
{% trans "Host groups" %}
</h1>
</div>
{% render_table table %}
...
...
network/templates/network/host-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h2>
Create a new host
</h2>
<h2>
{% trans "Create a new host" %}
</h2>
</div>
<div
class=
"row"
>
...
...
network/templates/network/host-edit.html
View file @
d092d85b
...
...
@@ -7,8 +7,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.host_delete pk=host_pk%}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this host
</a>
<h1>
{{ form.hostname.value }}
<small>
details of host
</small>
</h1>
<a
href=
"{% url network.host_delete pk=host_pk%}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this host" %}
</a>
<h1>
{{ form.hostname.value }}
</h1>
</div>
<div
class=
"row"
>
...
...
@@ -17,16 +17,16 @@
</div>
<div
class=
"col-sm-4"
>
<div
class=
"page-header"
>
<h3>
Rules
</h3>
<h3>
{% trans "Rules" %}
</h3>
</div>
{% if rule_list.data.data.count > 0 %}
{% render_table rule_list %}
{% else %}
No rules associated with this host!
{% trans "No rules associated with this host!" %}
{% endif %}
<div
class=
"page-header"
>
<h3>
Groups
</h3>
<h3>
{% trans "Groups" %}
</h3>
</div>
{% for group in group_rule_list %}
<div>
...
...
@@ -55,7 +55,7 @@
{% endfor %}
</select>
<div
class=
"input-group-btn"
>
<input
type=
"submit"
value=
"
Add group
"
class=
"btn btn-default"
></input>
<input
type=
"submit"
value=
"
{% trans "
Add
group
"
%}
"
class=
"btn btn-default"
></input>
</div>
</div>
<!-- input-group -->
</form>
...
...
network/templates/network/host-list.html
View file @
d092d85b
...
...
@@ -6,18 +6,18 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.host_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new host
</a>
<a
href=
"{% url network.host_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new host" %}
</a>
<h1>
Hosts
{% trans "Hosts" %}
<small>
list of all hosts
{% trans "list of all hosts" %}
</small>
</h1>
</div>
<ul
class=
"nav nav-pills"
style=
"margin: 5px 0 20px 0;"
>
<li
class=
"disabled"
><a
href=
"#"
>
Filter by vlans
</a></li>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
><a
href=
"{{ request.path }}"
>
ALL
</a></li>
<li
class=
"disabled"
><a
href=
"#"
>
{% trans "Filter by vlans" %}
</a></li>
<li
{%
if
not
request
.
GET
.
vlan
%}
class=
"active"
{%
endif
%}
><a
href=
"{{ request.path }}"
>
{% trans "ALL" %}
</a></li>
{% for vlan in vlans %}
<li
{%
if
request
.
GET
.
vlan
|
add:
"
0
"
==
vlan
.
id
%}
class=
"active"
{%
endif
%}
><a
href=
"?vlan={{ vlan.id }}"
>
{{ vlan.name }}
</a></li>
{% endfor %}
...
...
network/templates/network/index.html
View file @
d092d85b
...
...
@@ -6,19 +6,19 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Latest modifications
</h1>
<h1>
{% trans "Latest modifications" %}
</h1>
</div>
<table
class=
"table table-striped table-bordered"
>
<tr>
<th>
Action
</th>
<th>
Model
</th>
<th>
Name
</th>
<th>
Time elapsed
</th>
<th>
{% trans "Action" %}
</th>
<th>
{% trans "Model" %}
</th>
<th>
{% trans "Name" %}
</th>
<th>
{% trans "Time elapsed" %}
</th>
</tr>
{% for l in latest %}
<tr>
<td>
{% if l.modified_at == l.created_at %}
created{% else %}modified
{% endif %}
</td>
<td>
{% if l.modified_at == l.created_at %}
{% trans "created" %}{% else %}{% trans "modified" %}
{% endif %}
</td>
<td>
{{ l.class_name }}
</td>
<td><a
href=
"{{ l.link }}"
>
{{ l.name }}
</a></td>
<td>
{{ l.modified_at|timesince }}
</td>
...
...
@@ -28,15 +28,15 @@
<div
class=
"page-header"
>
<h1>
Latest blacklists
</h1>
<h1>
{% trans "Latest blacklists" %}
</h1>
</div>
<table
class=
"table table-striped table-bordered"
>
<tr>
<th>
IP
</th>
<th>
Reason
</th>
<th>
Type
</th>
<th>
Time elapsed
</th>
<th>
{% trans "IP" %}
</th>
<th>
{% trans "Reason" %}
</th>
<th>
{% trans "Type" %}
</th>
<th>
{% trans "Time elapsed" %}
</th>
</tr>
{% for b in latest_blacklists %}
<tr>
...
...
@@ -49,7 +49,7 @@
</table>
<div
class=
"page-header"
>
<h1>
Dashboard
<small>
foo bar baz
</small>
</h1>
<h1>
{% trans "Dashboard" %}
</h1>
</div>
<ul
class=
"thumbnails"
>
...
...
network/templates/network/record-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h2>
Create a new record
</h2>
<h2>
{% trans "Create a new record" %}
</h2>
</div>
<div
class=
"row"
>
...
...
network/templates/network/record-edit.html
View file @
d092d85b
...
...
@@ -7,8 +7,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.record_delete pk=record_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this record
</a>
<h1>
{{ fqdn }}
<small>
details of record
</small>
</h1>
<a
href=
"{% url network.record_delete pk=record_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this record" %}
</a>
<h1>
{{ fqdn }}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/record-list.html
View file @
d092d85b
...
...
@@ -6,11 +6,11 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.record_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new record
</a>
<a
href=
"{% url network.record_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new record" %}
</a>
<h1>
Records
{% trans "Records" %}
<small>
list of all records
{% trans "list of all records" %}
</small>
</h1>
</div>
...
...
network/templates/network/rule-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h3>
Create a new rule
</h3>
<h3>
{% trans "Create a new rule" %}
</h3>
</div>
<div
class=
"row"
>
...
...
network/templates/network/rule-edit.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.rule_delete pk=rule.pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this rule
</a>
<a
href=
"{% url network.rule_delete pk=rule.pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this rule" %}
</a>
<h3>
{% with rule as record %}
{% include "network/columns/host-rule.html" %}
...
...
network/templates/network/rule-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.rule_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new rule
</a>
<h1>
Rules
<small>
list of all rules
</small></h1>
<a
href=
"{% url network.rule_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new rule" %}
</a>
<h1>
{% trans "Rules" %}
<small>
{% trans "list of all rules" %}
</small></h1>
</div>
<div
class=
"table-responsive"
>
...
...
network/templates/network/vlan-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Create a new Vlan
</h1>
<h1>
{% trans "Create a new Vlan" %}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/vlan-edit.html
View file @
d092d85b
...
...
@@ -7,8 +7,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.vlan_delete vid=vlan_vid %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this vlan
</a>
<h1>
{{ form.name.value }}
<small>
details of vlan
</small></h1>
<a
href=
"{% url network.vlan_delete vid=vlan_vid %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this vlan" %}
</a>
<h1>
{{ form.name.value }}
<small>
{% trans "details of vlan" %}
</small></h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/vlan-group-create.html
View file @
d092d85b
...
...
@@ -7,7 +7,7 @@
{% block content %}
<div
class=
"page-header"
>
<h1>
Create a new vlan group
</h1>
<h1>
{% trans "Create a new vlan group" %}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/vlan-group-edit.html
View file @
d092d85b
...
...
@@ -7,8 +7,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.vlan_group_delete pk=vlangroup_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
Delete this group
</a>
<h1>
{{ form.name.value }}
<small>
details of vlan group
</small>
</h1>
<a
href=
"{% url network.vlan_group_delete pk=vlangroup_pk %}"
class=
"btn btn-danger pull-right"
><i
class=
"icon-remove-sign"
></i>
{% trans "Delete this group" %}
</a>
<h1>
{{ form.name.value }}
</h1>
</div>
<div
class=
"row"
>
...
...
network/templates/network/vlan-group-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.vlan_group_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new vlan group
</a>
<h1>
Vlan groups
<small>
list of all vlan groups
</small>
</h1>
<a
href=
"{% url network.vlan_group_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new vlan group" %}
</a>
<h1>
{% trans "Vlan groups" %}
</h1>
</div>
{% render_table table %}
...
...
network/templates/network/vlan-list.html
View file @
d092d85b
...
...
@@ -6,8 +6,8 @@
{% block content %}
<div
class=
"page-header"
>
<a
href=
"{% url network.vlan_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
Create a new vlan
</a>
<h1>
Vlans
<small>
list of all vlans
</small></h1>
<a
href=
"{% url network.vlan_create %}"
class=
"btn btn-success pull-right"
><i
class=
"icon-plus-sign"
></i>
{% trans "Create a new vlan" %}
</a>
<h1>
Vlans
<small>
{% trans "list of all vlans" %}
</small></h1>
</div>
<div
class=
"table-responsive"
>
...
...
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