dropped msg and paths when returning history as json.
changed the commits-per-month graph to show every 3 x-labeas only
This commit is contained in:
parent
aa5dbff8d7
commit
a0b82bc80f
@ -709,6 +709,12 @@ class Code extends Controller
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$history = $file['history'];
|
$history = $file['history'];
|
||||||
|
$count = count($history);
|
||||||
|
for ($i = 0; $i < $count; $i++)
|
||||||
|
{
|
||||||
|
unset ($history[$i]['msg']);
|
||||||
|
unset ($history[$i]['paths']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print codepot_json_encode ($history);
|
print codepot_json_encode ($history);
|
||||||
|
@ -124,6 +124,8 @@ function show_commits_per_month_graph(response)
|
|||||||
{
|
{
|
||||||
commits_per_month_values.push (commits_per_month[commits_per_month_keys[i]]);
|
commits_per_month_values.push (commits_per_month[commits_per_month_keys[i]]);
|
||||||
committers_per_month_values.push (committers_per_month[commits_per_month_keys[i]]);
|
committers_per_month_values.push (committers_per_month[commits_per_month_keys[i]]);
|
||||||
|
|
||||||
|
if (commits_per_month_keys.length > 12 && (i % 3)) commits_per_month_keys[i] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
var commits_per_month_data = {
|
var commits_per_month_data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user