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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
b8a18bef
authored
Apr 10, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
circle: add js i18n catalog
parent
9cafc124
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
circle/circle/urls.py
+9
-0
circle/dashboard/templates/base.html
+1
-0
circle/network/templates/network/base.html
+1
-1
circle/network/urls.py
+0
-8
No files found.
circle/circle/urls.py
View file @
b8a18bef
...
@@ -11,6 +11,12 @@ from dashboard.forms import CirclePasswordResetForm, CircleSetPasswordForm
...
@@ -11,6 +11,12 @@ from dashboard.forms import CirclePasswordResetForm, CircleSetPasswordForm
admin
.
autodiscover
()
admin
.
autodiscover
()
# TODO cache
# docs.djangoproject.com/en/1.5/topics/i18n/translation/#note-on-performance
js_info_dict
=
{
'packages'
:
(
"dashboard"
,
"network"
,
),
}
urlpatterns
=
patterns
(
urlpatterns
=
patterns
(
''
,
''
,
#url(r'^$', TemplateView.as_view(template_name='base.html')),
#url(r'^$', TemplateView.as_view(template_name='base.html')),
...
@@ -26,6 +32,9 @@ urlpatterns = patterns(
...
@@ -26,6 +32,9 @@ urlpatterns = patterns(
url
(
r'^network/'
,
include
(
'network.urls'
)),
url
(
r'^network/'
,
include
(
'network.urls'
)),
url
(
r'^dashboard/'
,
include
(
'dashboard.urls'
)),
url
(
r'^dashboard/'
,
include
(
'dashboard.urls'
)),
url
(
r'^jsi18n/$'
,
'django.views.i18n.javascript_catalog'
,
js_info_dict
,
name
=
"js-i18n"
),
url
((
r'^accounts/reset/(?P<uidb36>[0-9A-Za-z]{1,13})-'
url
((
r'^accounts/reset/(?P<uidb36>[0-9A-Za-z]{1,13})-'
'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$'
),
'(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$'
),
'django.contrib.auth.views.password_reset_confirm'
,
'django.contrib.auth.views.password_reset_confirm'
,
...
...
circle/dashboard/templates/base.html
View file @
b8a18bef
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<link
href=
"{{ STATIC_URL }}dashboard/bootstrap-tour.min.css"
rel=
"stylesheet"
>
<link
href=
"{{ STATIC_URL }}dashboard/bootstrap-tour.min.css"
rel=
"stylesheet"
>
<link
href=
"{{ STATIC_URL }}dashboard/dashboard.css"
rel=
"stylesheet"
>
<link
href=
"{{ STATIC_URL }}dashboard/dashboard.css"
rel=
"stylesheet"
>
<script
src=
"{{ STATIC_URL }}dashboard/dashboard.js"
></script>
<script
src=
"{{ STATIC_URL }}dashboard/dashboard.js"
></script>
<script
src=
"{% url "
js-i18n
"
%}"
></script>
</head>
</head>
<body>
<body>
...
...
circle/network/templates/network/base.html
View file @
b8a18bef
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</div>
<!-- .footer-container .container -->
</div>
<!-- .footer-container .container -->
<script
src=
"//code.jquery.com/jquery-latest.js"
></script>
<script
src=
"//code.jquery.com/jquery-latest.js"
></script>
<script
src=
"{% url "
network
.
js_catalog
"
%}"
></script>
<script
src=
"{% url "
js-i18n
"
%}"
></script>
<script
src=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"
></script>
<script
src=
"//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"
></script>
<script
src=
"{% static "
js
/
bootbox
.
min
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
bootbox
.
min
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
network
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
network
.
js
"
%}"
></script>
...
...
circle/network/urls.py
View file @
b8a18bef
...
@@ -15,10 +15,6 @@ from .views import (IndexView,
...
@@ -15,10 +15,6 @@ from .views import (IndexView,
remove_host_group
,
add_host_group
,
remove_host_group
,
add_host_group
,
remove_switch_port_device
,
add_switch_port_device
)
remove_switch_port_device
,
add_switch_port_device
)
js_info_dict
=
{
'packages'
:
(
'network'
,
),
}
urlpatterns
=
patterns
(
urlpatterns
=
patterns
(
''
,
''
,
url
(
'^$'
,
IndexView
.
as_view
(),
name
=
'network.index'
),
url
(
'^$'
,
IndexView
.
as_view
(),
name
=
'network.index'
),
...
@@ -92,8 +88,4 @@ urlpatterns = patterns(
...
@@ -92,8 +88,4 @@ urlpatterns = patterns(
remove_switch_port_device
,
name
=
'network.remove_switch_port_device'
),
remove_switch_port_device
,
name
=
'network.remove_switch_port_device'
),
url
(
'^switchports/(?P<pk>
\
d+)/add/$'
,
add_switch_port_device
,
url
(
'^switchports/(?P<pk>
\
d+)/add/$'
,
add_switch_port_device
,
name
=
'network.add_switch_port_device'
),
name
=
'network.add_switch_port_device'
),
# js gettext catalog
url
(
r'^jsi18n/$'
,
'django.views.i18n.javascript_catalog'
,
js_info_dict
,
name
=
"network.js_catalog"
),
)
)
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