Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jelle van der Waa
Archweb
Commits
0fc409ef
Commit
0fc409ef
authored
Dec 02, 2014
by
Dan McGee
Browse files
Make dev stats section look better when loading
Signed-off-by:
Dan McGee
<
dan@archlinux.org
>
parent
92437ffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/devel/index.html
View file @
0fc409ef
...
...
@@ -157,8 +157,11 @@ <h3>Developer Reports</h3>
</ul>
</div>
{# #dev-dashboard #}
<div
id=
'stats-area'
>
<p>
Enable Javascript to get more useful info here.
</p>
<div
id=
"stats-area"
>
<div
class=
"box"
>
<h2>
Developer Stats
</h2>
<p
id=
"stats-message"
>
Enable JavaScript to get more useful info here.
</p>
</div>
</div>
{% endblock %}
...
...
@@ -167,8 +170,12 @@ <h3>Developer Reports</h3>
<script
type=
"text/javascript"
src=
"{% static "
archweb.js
"
%}"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"
#stats-area
"
).
html
(
'
<p>Loading stats…</p>
'
);
$
(
"
#stats-area
"
).
load
(
'
stats/
'
,
function
()
{
$
(
"
#stats-message
"
).
html
(
'
Loading developer stats…
'
);
$
(
"
#stats-area
"
).
load
(
'
stats/
'
,
function
(
response
,
status
,
xhr
)
{
if
(
status
===
'
error
'
||
status
===
'
timeout
'
)
{
$
(
"
#stats-message
"
).
html
(
'
Developer stats loading encountered an error. Sorry.
'
);
return
;
}
var
settings
=
{
widgets
:
[
'
zebra
'
],
sortList
:
[[
0
,
0
]],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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