Updates to website templates, s3 listing page.
This commit is contained in:
@ -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) + "'>" +
|
||||
|
Reference in New Issue
Block a user