Fix HTML link issue with authored filepage

This commit is contained in:
Timothy Baldridge 2020-05-09 19:58:01 -06:00
parent 4b2822c589
commit 4a7b9d23c1
2 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,9 @@ namespace Wabbajack.BuildServer.Test
var data = await Fixture.GetService<SqlService>().AllAuthoredFiles();
Assert.Contains((string)file.Path.FileName, data.Select(f => f.OriginalFileName));
var result = await _client.GetStringAsync(MakeURL("authored_files"));
Assert.Contains((string)file.Path.FileName, result);
var state = await DownloadDispatcher.Infer(uri);
Assert.IsType<WabbajackCDNDownloader.State>(state);

View File

@ -144,7 +144,7 @@ namespace Wabbajack.BuildServer.Controllers
<html><body>
<table>
{{each $.files }}
<tr><td><a href='https//wabbajack.b-cdn.net/{{$.MungedName}}'>{{$.OriginalFileName}}</a></td><td>{{$.Size}}</td><td>{{$.LastTouched}}</td><td>{{$.Finalized}}</td><td>{{$.Uploader}}</td></tr>
<tr><td><a href='https://wabbajack.b-cdn.net/{{$.MungedName}}'>{{$.OriginalFileName}}</a></td><td>{{$.Size}}</td><td>{{$.LastTouched}}</td><td>{{$.Finalized}}</td><td>{{$.Author}}</td></tr>
{{/each}}
</table>
</body></html>
@ -156,7 +156,7 @@ namespace Wabbajack.BuildServer.Controllers
public async Task<ContentResult> UploadedFilesGet()
{
var files = await _sql.AllAuthoredFiles();
var response = HandleGetListTemplate(files);
var response = HandleGetListTemplate(new {files});
return new ContentResult
{
ContentType = "text/html",