aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-02-07 04:52:53 -0300
committerPitu <[email protected]>2017-02-07 04:52:53 -0300
commit36e17b037221ff7c69680e00e9a83dccd31ef44e (patch)
treeb23bf2bb17d3a5f4a68563b91ba6d47c3164f2cf /public
parentbleh (diff)
downloadhost.fuwn.me-36e17b037221ff7c69680e00e9a83dccd31ef44e.tar.xz
host.fuwn.me-36e17b037221ff7c69680e00e9a83dccd31ef44e.zip
Album stuff
Diffstat (limited to 'public')
-rw-r--r--public/js/album.js1
-rw-r--r--public/js/dashboard.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/public/js/album.js b/public/js/album.js
index 8a69d94..d3880ee 100644
--- a/public/js/album.js
+++ b/public/js/album.js
@@ -4,6 +4,7 @@ album.get = function(album){
axios.get('/api/album/get/' + album)
.then(function (response) {
document.getElementById('title').innerHTML = response.data.title;
+ document.getElementById('count').innerHTML = response.data.count + ' files';
var container = document.createElement('div');
container.innerHTML = `<div class="columns is-multiline is-mobile" id="table"></div>`
diff --git a/public/js/dashboard.js b/public/js/dashboard.js
index f128c05..3024d62 100644
--- a/public/js/dashboard.js
+++ b/public/js/dashboard.js
@@ -272,6 +272,7 @@ panel.getAlbums = function(){
<th>Name</th>
<th>Files</th>
<th>Created At</th>
+ <th>Public link</th>
<th></th>
</tr>
</thead>
@@ -290,6 +291,7 @@ panel.getAlbums = function(){
<th>${item.name}</th>
<th>${item.files}</th>
<td>${item.date}</td>
+ <td><a href="${item.identifier}" target="_blank">Album link</a></td>
<td>
<a class="button is-small is-primary is-outlined" title="Edit name" onclick="panel.renameAlbum(${item.id})">
<span class="icon is-small">