citra-emu
/
citra-web
Archived
1
0
Fork 0

Added advanced-view mode.

This commit is contained in:
Chris 2018-01-20 21:11:56 -05:00
parent b25b309a17
commit 70239332a4
4 changed files with 11 additions and 0 deletions

View File

@ -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,

View File

@ -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
View File

@ -0,0 +1,4 @@
function advancedView() {
$(".advanced-view").show();
console.info('Advanced-view enabled.');
}

View File

@ -57,6 +57,10 @@
background-size: 100% auto;
}
.advanced-view {
display: none;
}
a:hover {
cursor: pointer;
}