Changeset - 9d79a66b18c9
[Not reviewed]
default
0 1 0
domruf - 8 years ago 2017-07-31 21:16:41
dominikruf@gmail.com
Grafted from: e2fd3c0231eb
summary: put text outside of trending files bar if < 5%

The text can't be read otherwise. In the future this should also react to the
screen size.
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/summary/summary.html
Show inline comments
 
@@ -360,10 +360,14 @@ $(document).ready(function(){
 
                + "aria-valuemin='0' aria-valuemax='100' aria-valuenow='" + percentage
 
                + "' style='width: " + percentage + "%;'>" + percentage + "%, " + nr_files + "</b>";
 
        }
 
        else{
 
        else if (percentage>5){
 
            trending_language.innerHTML = "<b class='progress-bar' role='progressbar'"
 
                + "aria-valuemin='0' aria-valuemax='100' aria-valuenow='" + percentage
 
                + "' style='width: " + percentage + "%;'>" + percentage + "%</b>";
 
        }else{
 
            trending_language.innerHTML = "<b class='progress-bar' role='progressbar'"
 
                + "aria-valuemin='0' aria-valuemax='100' aria-valuenow='" + percentage
 
                + "' style='width: " + percentage + "%;'>&nbsp;</b>&nbsp;" + percentage + "%";
 
        }
 

	
 
        td2.appendChild(trending_language);
0 comments (0 inline, 0 general)