Added bounties page. In GameDB moves issues above compat.

This commit is contained in:
chris062689@gmail.com 2019-01-02 20:25:06 -05:00
parent a3b647313c
commit 1c66cdf28d
2 changed files with 84 additions and 25 deletions

View file

@ -74,6 +74,31 @@
<p>Please use the edit button up above to create one.</p> <p>Please use the edit button up above to create one.</p>
{{ end }} {{ end }}
{{ if gt (len .Params.issues) 0 }}
<h2>Known Issues</h2>
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Created</th>
<th>Last Updated</th>
</tr>
</thead>
<tbody>
{{ $githubUrl := .Site.Params.GithubURL }}
{{ range .Params.issues }}
<tr class="is-size-7">
<th>
<a href="{{ $githubUrl }}/issues/{{ .id }}">{{ .title }}</a>
</th>
<td>{{ dateFormat "January 2, 2006" .created_at }}</td>
<td>{{ dateFormat "January 2, 2006" .updated_at }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}
<h2>Compatibility</h2> <h2>Compatibility</h2>
{{ if gt (len .Params.testcases) 0 }} {{ if gt (len .Params.testcases) 0 }}
<table class="table"> <table class="table">
@ -112,31 +137,6 @@
<p>This game is untested. Please play through this game and report your compatibility with this title.</p> <p>This game is untested. Please play through this game and report your compatibility with this title.</p>
{{ end }} {{ end }}
{{ if gt (len .Params.issues) 0 }}
<h2>Known Issues</h2>
<table class="table">
<thead>
<tr>
<th>Title</th>
<th>Created</th>
<th>Last Updated</th>
</tr>
</thead>
<tbody>
{{ $githubUrl := .Site.Params.GithubURL }}
{{ range .Params.issues }}
<tr class="is-size-7">
<th>
<a href="{{ $githubUrl }}/issues/{{ .id }}">{{ .title }}</a>
</th>
<td>{{ dateFormat "January 2, 2006" .created_at }}</td>
<td>{{ dateFormat "January 2, 2006" .updated_at }}</td>
</tr>
{{ end }}
</tbody>
</table>
{{ end }}
{{ if gt (len .Params.savefiles) 0 }} {{ if gt (len .Params.savefiles) 0 }}
<h2>Savefiles</h2> <h2>Savefiles</h2>
<table class="table"> <table class="table">

View file

@ -0,0 +1,59 @@
{{ define "main" }}
<div class="container">
<section class="section">
<h1 class="title">{{ .Title }}</h1>
<div class="content">
{{ .Content }}
</div>
<table class="table is-fullwidth">
<thead>
<tr>
<th>Date Submitted</th>
<th>Requester</th>
<th>Developer</th>
<th>Status</th>
<th>Amount</th>
<th>Description</th>
<th>Payment Status</th>
<th>Developer Response</th>
<th>Date Expires</th>
</tr>
</thead>
<tbody>
{{ range .Site.Data.bounties }}
<tr>
<td>
{{ .DateSubmitted }}
</td>
<td>
{{ .Requester }}
</td>
<td>
{{ .Developer }}
</td>
<td>
{{ .Status }}
</td>
<td>
{{ .Amount }}
</td>
<td>
{{ .Description }}
</td>
<td>
{{ .PaymentStatus }}
</td>
<td>
{{ .DeveloperResponse }}
</td>
<td>
{{ .DateExpires }}
</td>
</tr>
{{ end }}
</tbody>
</table>
</section>
</div>
{{ end }}