mirror of https://github.com/JohnHammond/CTFd.git
Fixed time rendering in the team page (admin view)
parent
0fedb814a5
commit
3f13b15513
|
@ -41,14 +41,6 @@ function scoregraph () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function adjust_times () {
|
|
||||||
$.each($(".solve-time"), function(i, e){
|
|
||||||
$(e).text( moment(parseInt(e.innerText)).local().format('LLL') )
|
|
||||||
})
|
|
||||||
$(".solve-time").css('color', "#222")
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function keys_percentage_graph(){
|
function keys_percentage_graph(){
|
||||||
// Solves and Fails pie chart
|
// Solves and Fails pie chart
|
||||||
$.get('/admin/fails/'+teamid(), function(data){
|
$.get('/admin/fails/'+teamid(), function(data){
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
{% for addr in addrs %}
|
{% for addr in addrs %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center">{{ addr.ip|long2ip }}</td>
|
<td class="text-center">{{ addr.ip|long2ip }}</td>
|
||||||
<td class="text-center solve-time">{{ addr.date|unix_time_millis }}</td>
|
<td class="text-center solve-time"><script>document.write( moment({{ addr.date|unix_time_millis }}).local().format('MMMM Do, h:mm:ss A'))</script></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
<td class="text-center">{{ solve.flag }}</td>
|
<td class="text-center">{{ solve.flag }}</td>
|
||||||
<td class="text-center">{{ solve.chal.category }}</td>
|
<td class="text-center">{{ solve.chal.category }}</td>
|
||||||
<td class="text-center">{{ solve.chal.value }}</td>
|
<td class="text-center">{{ solve.chal.value }}</td>
|
||||||
<td class="text-center solve-time">{{ solve.date|unix_time_millis }}</td>
|
<td class="text-center solve-time"><script>document.write( moment({{ solve.date|unix_time_millis }}).local().format('MMMM Do, h:mm:ss A'))</script></td>
|
||||||
<td class="text-center"><i class="fa fa-times"></i></td>
|
<td class="text-center"><i class="fa fa-times"></i></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
<tr class="chal-wrong">
|
<tr class="chal-wrong">
|
||||||
<td class="text-center chal" id="{{ wrong_key.chalid }}">{{ wrong_key.chal.name }}</td>
|
<td class="text-center chal" id="{{ wrong_key.chalid }}">{{ wrong_key.chal.name }}</td>
|
||||||
<td class="text-center">{{ wrong_key.flag }}</td>
|
<td class="text-center">{{ wrong_key.flag }}</td>
|
||||||
<td class="text-center solve-time">{{ wrong_key.date|unix_time_millis }}</td>
|
<td class="text-center solve-time"><script>document.write( moment({{ wrong_key.date|unix_time_millis }}).local().format('MMMM Do, h:mm:ss A'))</script></td>
|
||||||
<td class="text-center"><i class="fa fa-times"></i></td>
|
<td class="text-center"><i class="fa fa-times"></i></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in New Issue