aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-18 03:29:46 -0300
committerPitu <[email protected]>2017-01-18 03:29:46 -0300
commitcf98005c4f68956813c61bf6a9b6a0fe02807bad (patch)
tree929bce1f1077253d82aedf3805833c89d462fce9 /public/js
parentadded admin auth for uploading to an album (diff)
downloadhost.fuwn.me-cf98005c4f68956813c61bf6a9b6a0fe02807bad.tar.xz
host.fuwn.me-cf98005c4f68956813c61bf6a9b6a0fe02807bad.zip
Better tables and showing album on upload view
Diffstat (limited to 'public/js')
-rw-r--r--public/js/panel.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/js/panel.js b/public/js/panel.js
index 94b5b1c..439b733 100644
--- a/public/js/panel.js
+++ b/public/js/panel.js
@@ -82,7 +82,7 @@ panel.getUploads = function(){
var container = document.createElement('div');
container.innerHTML = `
- <table class="table">
+ <table class="table is-striped is-narrow">
<thead>
<tr>
<th>File</th>
@@ -104,7 +104,7 @@ panel.getUploads = function(){
<tr>
<th><a href="${item.file}" target="_blank">${item.file}</a></th>
<th>${item.album}</th>
- <td>${item.timestamp}</td>
+ <td>${item.date}</td>
</tr>
`;
@@ -134,7 +134,7 @@ panel.getAlbums = function(){
<h2 class="subtitle">List of albums</h2>
- <table class="table">
+ <table class="table is-striped is-narrow">
<thead>
<tr>
<th>Name</th>
@@ -167,7 +167,7 @@ panel.getAlbums = function(){
<tr>
<th>${item.name}</th>
<th>${item.files}</th>
- <td>${item.timestamp}</td>
+ <td>${item.date}</td>
</tr>
`;
@@ -231,7 +231,7 @@ panel.getAlbumsSidebar = function(){
var albumsContainer = document.getElementById('albumsContainer');
albumsContainer.innerHTML = '';
-
+
if(json.albums === undefined) return;
for(var album of json.albums){