Updates to website templates, s3 listing page.

This commit is contained in:
Jonathan Bernard
2017-02-13 18:40:59 -06:00
parent 46b6882d41
commit 75286cbc10
3 changed files with 30 additions and 13 deletions

View File

@ -185,7 +185,7 @@ function renderRow(item) {
if (item.Name == 'index.html' || item.Name.trim() == '') return "";
var row = "<tr>";
if (item.Type == 'directory') {
if (item.Type == 'directory' || item.Name.endsWith('.html')) {
row += "<td><a href='" + item.Name + "'>" + item.Name + "</a></td>"; }
else {
row += "<td><a href='" + s3BucketUrl + "/" + encodeURIComponent(item.Key) + "'>" +