Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
5987a65b
Commit
5987a65b
authored
Feb 15, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement static files check in python
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
db53dd4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
weblate/html/admin/performance.html
weblate/html/admin/performance.html
+1
-1
weblate/trans/admin_views.py
weblate/trans/admin_views.py
+7
-4
No files found.
weblate/html/admin/performance.html
View file @
5987a65b
...
...
@@ -25,7 +25,7 @@
</thead>
<tbody>
{% for check in checks %}
<tr
class=
"row{% cycle '1' '2' %}
{{ check.4 }}
"
>
<tr
class=
"row{% cycle '1' '2' %}"
>
<td>
{{ check.0 }}
</td>
<td>
{{ check.3 }}
</td>
<td>
{% admin_boolean_icon check.1 %}
</td>
...
...
weblate/trans/admin_views.py
View file @
5987a65b
...
...
@@ -20,6 +20,8 @@
from
__future__
import
unicode_literals
import
os.path
from
django.contrib.sites.models
import
Site
from
django.shortcuts
import
render
from
django.contrib.admin.views.decorators
import
staff_member_required
...
...
@@ -223,13 +225,14 @@ def performance(request):
))
# Check for serving static files
# This uses CSS magic to hide this check when CSS is properly loaded.
print
os
.
path
.
join
(
settings
.
STATIC_ROOT
,
'admin'
,
'js'
,
'core.jsx'
)
checks
.
append
((
_
(
'Admin static files'
),
False
,
os
.
path
.
exists
(
os
.
path
.
join
(
settings
.
STATIC_ROOT
,
'admin'
,
'js'
,
'core.js'
)
),
'production-admin-files'
,
''
,
'order-cell'
,
settings
.
STATIC_ROOT
,
))
context
=
admin_context
(
request
)
...
...
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