mirror of https://github.com/JohnHammond/CTFd.git
Fixes multiple line challenge names in admin challenges panel
parent
3e8f5bbbc5
commit
1532fc3cf4
|
@ -94,7 +94,7 @@ table{
|
|||
}
|
||||
|
||||
.chal-button > .chal-points {
|
||||
margin-bottom: 0px;
|
||||
margin: -20px 0 0 0;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ function loadchals(){
|
|||
|
||||
for (var i = 0; i <= challenges['game'].length - 1; i++) {
|
||||
var chal = challenges['game'][i]
|
||||
var chal_button = $('<button class="chal-button col-md-2 theme-background" value="{0}"><p class="chal-name">{1}</p><p class="chal-points">{2}</p><span class="chal-percent">{3}% solved</span></button>'.format(chal.id, chal.name, chal.value, Math.round(chal.percentage_solved * 100)));
|
||||
var chal_button = $('<button class="chal-button col-md-2 theme-background" value="{0}"><h5>{1}</h5><p class="chal-points">{2}</p><span class="chal-percent">{3}% solved</span></button>'.format(chal.id, chal.name, chal.value, Math.round(chal.percentage_solved * 100)));
|
||||
$('#' + challenges['game'][i].category.replace(/ /g,"-").hashCode()).append(chal_button);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue