diff --git a/root/app/www/public/ajax/code.php b/root/app/www/public/ajax/code.php index 273a3b3..4f26adb 100644 --- a/root/app/www/public/ajax/code.php +++ b/root/app/www/public/ajax/code.php @@ -14,6 +14,9 @@ $labels = $dataFiles = $dataLines = $colors = ''; $usedColors = []; + array_sort_by_key($fileTypes, 'lines', 'desc'); + $fileTypes = array_slice($fileTypes, 0, ($settings['pages']['code']['limit'] ? $settings['pages']['code']['limit'] : 20)); + foreach ($fileTypes as $fileType => $fileTypeData) { $randomColor = randomColor($usedColors); $usedColors[] = $randomColor; diff --git a/root/app/www/public/ajax/contributors.php b/root/app/www/public/ajax/contributors.php index ab6f625..14f1817 100644 --- a/root/app/www/public/ajax/contributors.php +++ b/root/app/www/public/ajax/contributors.php @@ -13,6 +13,7 @@ ?>
= $repository ?>
= number_format($repoObjects) ?>
+= $repoObjects ?>
Global | ||
Setting | Value | @@ -23,11 +22,39 @@|
---|---|---|
Global | ||
Repository location | This is the location of all git repositories to load and use | |
Ignore | ++ | Ignore these directories for all calculations | +
Page: Overview | ||
Display newest | ++ | Amount of commits (newest) to show | +
Display oldest | ++ | Amount of commits (oldest) to show | +
Page: Code | ||
Limit | ++ | How many different file types to show | +
Ignore | ++ | Ignore these file types when generating the graphs | +