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);
|
var body = await request.get(options);
|
||||||
return JSON.parse(body).map(x => {
|
return JSON.parse(body).map(x => {
|
||||||
return {
|
return {
|
||||||
|
id: x.id,
|
||||||
title: x.title,
|
title: x.title,
|
||||||
compatibility: x.compatibility.toString(),
|
compatibility: x.compatibility.toString(),
|
||||||
date: x.date,
|
date: x.date,
|
||||||
|
@ -102,6 +102,7 @@
|
|||||||
<table class="table table-responsive table-striped">
|
<table class="table table-responsive table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="advanced-view">ID</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
<th>Tested By</th>
|
<th>Tested By</th>
|
||||||
<th>Hardware</th>
|
<th>Hardware</th>
|
||||||
@ -114,6 +115,7 @@
|
|||||||
{{ range .Params.testcases }}
|
{{ range .Params.testcases }}
|
||||||
{{- $rating := index $siteCompatibility .compatibility }}
|
{{- $rating := index $siteCompatibility .compatibility }}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="advanced-view">{{ if isset . "id" }} {{ .id }} {{ end }}</td>
|
||||||
<td>{{ dateFormat "01/02/2006" .date }}</td>
|
<td>{{ dateFormat "01/02/2006" .date }}</td>
|
||||||
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
|
<td><a href="https://community.citra-emu.org/u/{{ .author }}/summary">{{ .author }}</a></td>
|
||||||
<td>{{ .cpu }}<br />{{ .gpu }}<br />{{ .os }}</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;
|
background-size: 100% auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.advanced-view {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user