Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gabriel Silva Vinha
codespeed
Commits
8fb7f1f3
Commit
8fb7f1f3
authored
Nov 25, 2016
by
Octavian Moraru
Browse files
Display tag on the timeline tooltip
parent
d298663c
Changes
2
Hide whitespace changes
Inline
Side-by-side
codespeed/static/js/timeline.js
View file @
8fb7f1f3
...
...
@@ -82,15 +82,15 @@ function getHighlighterConfig(median) {
return
{
show
:
true
,
tooltipLocation
:
'
nw
'
,
yvalues
:
7
,
formatString
:
'
<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>median:</td><td>%s</td></tr> <tr><td>max:</td><td>%s</td></tr> <tr><td>Q3:</td><td>%s</td></tr> <tr><td>Q1:</td><td>%s</td></tr> <tr><td>min:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr></table>
'
yvalues
:
8
,
formatString
:
'
<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>median:</td><td>%s</td></tr> <tr><td>max:</td><td>%s</td></tr> <tr><td>Q3:</td><td>%s</td></tr> <tr><td>Q1:</td><td>%s</td></tr> <tr><td>min:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr><
tr><td>tag:</td><td>%s</td></tr><
/table>
'
};
}
else
{
return
{
show
:
true
,
tooltipLocation
:
'
nw
'
,
yvalues
:
4
,
formatString
:
'
<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>result:</td><td>%s</td></tr> <tr><td>std dev:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr></table>
'
yvalues
:
5
,
formatString
:
'
<table class="jqplot-highlighter"> <tr><td>date:</td><td>%s</td></tr> <tr><td>result:</td><td>%s</td></tr> <tr><td>std dev:</td><td>%s</td></tr> <tr><td>commit:</td><td>%s</td></tr><
tr><td>tag:</td><td>%s</td></tr><
/table>
'
};
}
}
...
...
codespeed/views.py
View file @
8fb7f1f3
...
...
@@ -306,7 +306,7 @@ def gettimelinedata(request):
[
res
.
revision
.
date
.
strftime
(
'%Y/%m/%d %H:%M:%S %z'
),
res
.
value
,
val_max
,
q3
,
q1
,
val_min
,
res
.
revision
.
get_short_commitid
(),
branch
res
.
revision
.
get_short_commitid
(),
res
.
revision
.
tag
,
branch
]
)
else
:
...
...
@@ -317,7 +317,7 @@ def gettimelinedata(request):
[
res
.
revision
.
date
.
strftime
(
'%Y/%m/%d %H:%M:%S %z'
),
res
.
value
,
std_dev
,
res
.
revision
.
get_short_commitid
(),
branch
res
.
revision
.
get_short_commitid
(),
res
.
revision
.
tag
,
branch
]
)
timeline
[
'branches'
][
branch
][
executable
]
=
results
...
...
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