mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-02-08 07:44:25 +01:00
Fixes multiple line challenge names in admin challenges panel
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user