Added advanced-view mode.
This commit is contained in:
parent
b25b309a17
commit
70239332a4
@ -73,6 +73,7 @@ async function getTestcases() {
|
||||
var body = await request.get(options);
|
||||
return JSON.parse(body).map(x => {
|
||||
return {
|
||||
id: x.id,
|
||||
title: x.title,
|
||||
compatibility: x.compatibility.toString(),
|
||||
date: x.date,
|
||||
|
@ -102,6 +102,7 @@
|
||||
<table class="table table-responsive table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="advanced-view">ID</th>
|
||||
<th>Date</th>
|
||||
<th>Tested By</th>
|
||||
<th>Hardware</th>
|
||||
@ -114,6 +115,7 @@
|
||||
{{ range .Params.testcases }}
|
||||
{{- $rating := index $siteCompatibility .compatibility }}
|
||||
<tr>
|
||||
<td class="advanced-view">{{ if isset . "id" }} {{ .id }} {{ end }}</td>
|
||||
<td>{{ dateFormat "01/02/2006" .date }}</td>
|
||||
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
|
||||
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</td>
|
||||
|
4
src/js/adminMode.js
Normal file
4
src/js/adminMode.js
Normal file
@ -0,0 +1,4 @@
|
||||
function advancedView() {
|
||||
$(".advanced-view").show();
|
||||
console.info('Advanced-view enabled.');
|
||||
}
|
@ -57,6 +57,10 @@
|
||||
background-size: 100% auto;
|
||||
}
|
||||
|
||||
.advanced-view {
|
||||
display: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user