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:
hyung-hwan 2015-02-10 15:48:29 +00:00
parent aa5dbff8d7
commit a0b82bc80f
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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 = {