mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-10-01 19:41:30 +02:00
Use MINOR_AUTHOR_PERCENTAGE in output modules (#28).
Consequently, we now only need to change the percentage in one place if we want to modify the lower bound for minor authors.
This commit is contained in:
parent
0c4e4bf54f
commit
7945dbbe72
@ -11,9 +11,10 @@
|
|||||||
{bootstrap_css}
|
{bootstrap_css}
|
||||||
<script type="application/javascript"{bootstrap}</script>
|
<script type="application/javascript"{bootstrap}</script>
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
|
var MINOR_AUTHOR_PERCENTAGE = 1.00;
|
||||||
|
|
||||||
$(document).ready(function() {{
|
$(document).ready(function() {{
|
||||||
var row = 0;
|
var row = 0;
|
||||||
var MINOR_AUTHOR_PERCENTAGE = 1.00;
|
|
||||||
var isReversed = false;
|
var isReversed = false;
|
||||||
|
|
||||||
// Fix header and set it to the right width.
|
// Fix header and set it to the right width.
|
||||||
|
@ -85,7 +85,7 @@ class BlameOutput(Outputable):
|
|||||||
blame_xml += " innerRadius: 0.4,"
|
blame_xml += " innerRadius: 0.4,"
|
||||||
blame_xml += " show: true,"
|
blame_xml += " show: true,"
|
||||||
blame_xml += " combine: {"
|
blame_xml += " combine: {"
|
||||||
blame_xml += " threshold: 0.01,"
|
blame_xml += " threshold: MINOR_AUTHOR_PERCENTAGE / 100,"
|
||||||
blame_xml += " label: \"" + _("Minor Authors") + "\""
|
blame_xml += " label: \"" + _("Minor Authors") + "\""
|
||||||
blame_xml += " }"
|
blame_xml += " }"
|
||||||
blame_xml += " }"
|
blame_xml += " }"
|
||||||
|
@ -82,7 +82,7 @@ class ChangesOutput(Outputable):
|
|||||||
changes_xml += " innerRadius: 0.4,"
|
changes_xml += " innerRadius: 0.4,"
|
||||||
changes_xml += " show: true,"
|
changes_xml += " show: true,"
|
||||||
changes_xml += " combine: {"
|
changes_xml += " combine: {"
|
||||||
changes_xml += " threshold: 0.01,"
|
changes_xml += " threshold: MINOR_AUTHOR_PERCENTAGE / 100,"
|
||||||
changes_xml += " label: \"" + _("Minor Authors") + "\""
|
changes_xml += " label: \"" + _("Minor Authors") + "\""
|
||||||
changes_xml += " }"
|
changes_xml += " }"
|
||||||
changes_xml += " }"
|
changes_xml += " }"
|
||||||
|
Loading…
Reference in New Issue
Block a user