diff --git a/assets/public/js/application.js b/assets/public/js/application.js index 569caefb..875e21e7 100644 --- a/assets/public/js/application.js +++ b/assets/public/js/application.js @@ -3,341 +3,357 @@ var selectedItems = []; // Array prototype function to remove an element -Array.prototype.removeElement = function(element) { - var i = this.indexOf(element); - if (i != -1) { - this.splice(i, 1); - } +Array.prototype.removeElement = function (element) { + var i = this.indexOf(element); + if (i != -1) { + this.splice(i, 1); + } } // Array prototype function to replace an element -Array.prototype.replaceElement = function(oldEl, newEl) { - var i = this.indexOf(oldEl); - if (i != -1) { - this[i] = newEl; - } +Array.prototype.replaceElement = function (oldEl, newEl) { + var i = this.indexOf(oldEl); + if (i != -1) { + this[i] = newEl; + } } // Document prototype function to send a costum event to itself -Document.prototype.sendCostumEvent = function(text) { - document.dispatchEvent(new CustomEvent(text)); +Document.prototype.sendCostumEvent = function (text) { + document.dispatchEvent(new CustomEvent(text)); } // Document prototype to get a cookie content -Document.prototype.getCookie = function(name) { - var re = new RegExp("(?:(?:^|.*;\\s*)" + name + "\\s*\\=\\s*([^;]*).*$)|^.*$"); - return document.cookie.replace(re, "$1"); +Document.prototype.getCookie = function (name) { + var re = new RegExp("(?:(?:^|.*;\\s*)" + name + "\\s*\\=\\s*([^;]*).*$)|^.*$"); + return document.cookie.replace(re, "$1"); } // Changes a button to the loading animation -Element.prototype.changeToLoading = function() { - let element = this; - let originalText = element.innerHTML; +Element.prototype.changeToLoading = function () { + let element = this; + let originalText = element.innerHTML; - element.style.opacity = 0; + element.style.opacity = 0; - setTimeout(function() { - element.innerHTML = 'autorenew'; - element.style.opacity = 1; - }, 200); + setTimeout(function () { + element.innerHTML = 'autorenew'; + element.style.opacity = 1; + }, 200); - return originalText; + return originalText; } // Changes an element to done animation -Element.prototype.changeToDone = function(error, html) { +Element.prototype.changeToDone = function (error, html) { + this.style.opacity = 0; + + let thirdStep = () => { + this.innerHTML = html; + this.style.opacity = 1; + + if (selectedItems.length == 0) { + document.sendCostumEvent('changed-selected'); + } + } + + let secondStep = () => { this.style.opacity = 0; + setTimeout(thirdStep, 200); + } - let thirdStep = () => { - this.innerHTML = html; - this.style.opacity = 1; - - if (selectedItems.length == 0) { - document.sendCostumEvent('changed-selected'); - } + let firstStep = () => { + if (error) { + this.innerHTML = 'close'; + } else { + this.innerHTML = 'done'; } - let secondStep = () => { - this.style.opacity = 0; - setTimeout(thirdStep, 200); - } + this.style.opacity = 1; - let firstStep = () => { - if (error) { - this.innerHTML = 'close'; - } else { - this.innerHTML = 'done'; - } + setTimeout(secondStep, 1000); + } - this.style.opacity = 1; - - setTimeout(secondStep, 1000); - } - - setTimeout(firstStep, 200); - return false; + setTimeout(firstStep, 200); + return false; } // Event for toggling the mode of view -var viewEvent = function(event) { - let cookie = document.getCookie('view-list'); - let listing = document.getElementById('listing'); +var viewEvent = function (event) { + let cookie = document.getCookie('view-list'); + let listing = document.getElementById('listing'); - if (cookie != 'true') { - document.cookie = 'view-list=true'; - } else { - document.cookie = 'view-list=false'; - } + if (cookie != 'true') { + document.cookie = 'view-list=true'; + } else { + document.cookie = 'view-list=false'; + } - handleViewType(document.getCookie('view-list')); - return false; + handleViewType(document.getCookie('view-list')); + return false; } // Handles the view type change -var handleViewType = function(viewList) { - let listing = document.getElementById('listing'); - let button = document.getElementById('view'); +var handleViewType = function (viewList) { + let listing = document.getElementById('listing'); + let button = document.getElementById('view'); - if (viewList == "true") { - listing.classList.add('list'); - button.innerHTML = 'view_module'; - return false; - } + if (viewList == "true") { + listing.classList.add('list'); + button.innerHTML = 'view_module'; + return false; + } - button.innerHTML = 'view_list'; - listing.classList.remove('list'); - return false; + button.innerHTML = 'view_list'; + listing.classList.remove('list'); + return false; } // Handles the open file button event -var openEvent = function(event) { - if (selectedItems.length) { - window.open(selectedItems[0] + '?raw=true'); - return false; - } +var openEvent = function (event) { + if (selectedItems.length) { + window.open(selectedItems[0] + '?raw=true'); + return false; + } - window.open(window.location + '?raw=true'); - return false; + window.open(window.location + '?raw=true'); + return false; } // Handles the back button event -var backEvent = function(event) { - var items = document.getElementsByClassName('item'); - Array.from(items).forEach(link => { - link.classList.remove('selected'); - }); - selectedItems = []; +var backEvent = function (event) { + var items = document.getElementsByClassName('item'); + Array.from(items).forEach(link => { + link.classList.remove('selected'); + }); + selectedItems = []; - var event = new CustomEvent('changed-selected'); - document.dispatchEvent(event); - return false; + var event = new CustomEvent('changed-selected'); + document.dispatchEvent(event); + return false; } // Handles the delete button event -var deleteEvent = function(event) { - if (selectedItems.length) { - Array.from(selectedItems).forEach(link => { - let html = document.getElementById("delete").changeToLoading(); - let request = new XMLHttpRequest(); +var deleteEvent = function (event) { + if (selectedItems.length) { + Array.from(selectedItems).forEach(link => { + let html = document.getElementById("delete").changeToLoading(); + let request = new XMLHttpRequest(); - request.open('DELETE', link); - request.send(); - request.onreadystatechange = function() { - if (request.readyState == 4) { - if (request.status == 200) { - document.getElementById(link).remove(); - console.log(selectedItems); - selectedItems.removeElement(link); - } + request.open('DELETE', link); + request.send(); + request.onreadystatechange = function () { + if (request.readyState == 4) { + if (request.status == 200) { + document.getElementById(link).remove(); + console.log(selectedItems); + selectedItems.removeElement(link); + } - document.getElementById('delete').changeToDone((request.status != 200), html); - } - } - }); - - return false; + document.getElementById('delete').changeToDone((request.status != 200), html); } + } + }); - let request = new XMLHttpRequest(); - request.open('DELETE', window.location); - request.send(); - request.onreadystatechange = function() { - if (request.readyState == 4) { - if (request.status == 200) { - window.location.pathname = RemoveLastDirectoryPartOf(window.location.pathname); - } + return false; + } - document.getElementById('delete').changeToDone((request.status != 200), html); - } - } + let request = new XMLHttpRequest(); + request.open('DELETE', window.location); + request.send(); + request.onreadystatechange = function () { + if (request.readyState == 4) { + if (request.status == 200) { + window.location.pathname = RemoveLastDirectoryPartOf(window.location.pathname); + } - return false; + document.getElementById('delete').changeToDone((request.status != 200), html); + } + } + + return false; } // Prevent Default event -var preventDefault = function(event) { - event.preventDefault(); +var preventDefault = function (event) { + event.preventDefault(); } // Rename file event -var renameEvent = function(event) { - if (selectedItems.length) { - Array.from(selectedItems).forEach(link => { - let item = document.getElementById(link); - let span = item.getElementsByTagName('span')[0]; - let name = span.innerHTML; +var renameEvent = function (event) { + if (selectedItems.length) { + Array.from(selectedItems).forEach(link => { + let item = document.getElementById(link); + let span = item.getElementsByTagName('span')[0]; + let name = span.innerHTML; - item.addEventListener('click', preventDefault); - item.removeEventListener('click', itemClickEvent); - span.setAttribute('contenteditable', 'true'); - span.focus(); + item.addEventListener('click', preventDefault); + item.removeEventListener('click', itemClickEvent); + span.setAttribute('contenteditable', 'true'); + span.focus(); - let keyDownEvent = (event) => { - if (event.keyCode == 13) { - let newName = span.innerHTML; - let html = document.getElementById('rename').changeToLoading(); - let request = new XMLHttpRequest(); - request.open('PATCH', link); - request.setRequestHeader('Rename-To', newName); - request.send(); - request.onreadystatechange = function() { - if (request.readyState == 4) { - if (request.status != 200) { - span.innerHTML = name; - } else { - let newLink = link.replace(name, newName); - item.id = newLink; - selectedItems.replaceElement(link, newLink); - span.innerHTML = newName; - } + let keyDownEvent = (event) => { + if (event.keyCode == 13) { + let newName = span.innerHTML; + let html = document.getElementById('rename').changeToLoading(); + let request = new XMLHttpRequest(); + request.open('PATCH', link); + request.setRequestHeader('Rename-To', newName); + request.send(); + request.onreadystatechange = function () { + if (request.readyState == 4) { + if (request.status != 200) { + span.innerHTML = name; + } else { + let newLink = link.replace(name, newName); + item.id = newLink; + selectedItems.replaceElement(link, newLink); + span.innerHTML = newName; + } - document.getElementById('rename').changeToDone((request.status != 200), html); - } - } - } + document.getElementById('rename').changeToDone((request.status != 200), html); + } + } + } - if (event.KeyCode == 27) { - span.innerHTML = name; - } + if (event.KeyCode == 27) { + span.innerHTML = name; + } - if (event.keyCode == 13 || event.keyCode == 27) { - span.setAttribute('contenteditable', 'false'); - span.removeEventListener('keydown', keyDownEvent); - item.removeEventListener('click', preventDefault); - item.addEventListener('click', itemClickEvent); - event.preventDefault(); - } - - return false; - } - - span.addEventListener('keydown', keyDownEvent); - span.addEventListener('blur', (event) => { - span.innerHTML = name; - span.setAttribute('contenteditable', 'false'); - span.removeEventListener('keydown', keyDownEvent); - item.removeEventListener('click', preventDefault); - }); - }); - - return false; + if (event.keyCode == 13 || event.keyCode == 27) { + span.setAttribute('contenteditable', 'false'); + span.removeEventListener('keydown', keyDownEvent); + item.removeEventListener('click', preventDefault); + item.addEventListener('click', itemClickEvent); + event.preventDefault(); } return false; + } + + span.addEventListener('keydown', keyDownEvent); + span.addEventListener('blur', (event) => { + span.innerHTML = name; + span.setAttribute('contenteditable', 'false'); + span.removeEventListener('keydown', keyDownEvent); + item.removeEventListener('click', preventDefault); + }); + }); + + return false; + } + + return false; } // Download file event -var downloadEvent = function(event) { - if (selectedItems.length) { - Array.from(selectedItems).forEach(item => { - window.open(item + "?download=true"); - }); - return false; - } +var downloadEvent = function (event) { + if (selectedItems.length) { + Array.from(selectedItems).forEach(item => { + window.open(item + "?download=true"); + }); + return false; + } - window.open(window.location + "?download=true"); - return false; + window.open(window.location + "?download=true"); + return false; } -var RemoveLastDirectoryPartOf = function(url) { - var arr = url.split('/'); - arr.pop(); - return (arr.join('/')); +var RemoveLastDirectoryPartOf = function (url) { + var arr = url.split('/'); + arr.pop(); + return (arr.join('/')); } -document.addEventListener("changed-selected", function(event) { - var toolbar = document.getElementById("toolbar"); - var selectedNumber = selectedItems.length; +document.addEventListener("changed-selected", function (event) { + var toolbar = document.getElementById("toolbar"); + var selectedNumber = selectedItems.length; - document.getElementById("selected-number").innerHTML = selectedNumber; + document.getElementById("selected-number").innerHTML = selectedNumber; - if (selectedNumber) { - toolbar.classList.add("enabled"); + if (selectedNumber) { + toolbar.classList.add("enabled"); - if (selectedNumber > 1) { - document.getElementById("open").classList.add("disabled"); - document.getElementById("rename").classList.add("disabled"); - } + if (selectedNumber > 1) { + document.getElementById("open").classList.add("disabled"); + document.getElementById("rename").classList.add("disabled"); + } - if (selectedNumber == 1) { - document.getElementById("open").classList.remove("disabled"); - document.getElementById("rename").classList.remove("disabled"); - } + if (selectedNumber == 1) { + document.getElementById("open").classList.remove("disabled"); + document.getElementById("rename").classList.remove("disabled"); + } - return false; - } + return false; + } - toolbar.classList.remove("enabled"); - return false; + toolbar.classList.remove("enabled"); + return false; }); -var itemClickEvent = function(event) { - var url = this.getElementsByTagName('a')[0].getAttribute('href'); +var itemClickEvent = function (event) { + var url = this.getElementsByTagName('a')[0].getAttribute('href'); - if (selectedItems.length != 0) event.preventDefault(); - if (selectedItems.indexOf(url) == -1) { - this.classList.add('selected'); - selectedItems.push(url); - } else { - this.classList.remove('selected'); - selectedItems.removeElement(url); - } + if (selectedItems.length != 0) event.preventDefault(); + if (selectedItems.indexOf(url) == -1) { + this.classList.add('selected'); + selectedItems.push(url); + } else { + this.classList.remove('selected'); + selectedItems.removeElement(url); + } - var event = new CustomEvent('changed-selected'); - document.dispatchEvent(event); - return false; + var event = new CustomEvent('changed-selected'); + document.dispatchEvent(event); + return false; } -document.addEventListener("DOMContentLoaded", function(event) { - var items = document.getElementsByClassName('item'); - Array.from(items).forEach(link => { - link.addEventListener('click', itemClickEvent); - }); +var localizeDatetime = function (e, index, ar) { + if (e.textContent === undefined) { + return; + } + var d = new Date(e.getAttribute('datetime')); + if (isNaN(d)) { + d = new Date(e.textContent); + if (isNaN(d)) { + return; + } + } + e.textContent = d.toLocaleString(); +} - document.getElementById("open").addEventListener("click", openEvent); - if (document.getElementById("back")) { - document.getElementById("back").addEventListener("click", backEvent) - }; - if (document.getElementById("view")) { - handleViewType(document.getCookie("view-list")); - document.getElementById("view").addEventListener("click", viewEvent) - }; - document.getElementById("delete").addEventListener("click", deleteEvent); - document.getElementById("rename").addEventListener("click", renameEvent); - document.getElementById("download").addEventListener("click", downloadEvent); +document.addEventListener("DOMContentLoaded", function (event) { + var timeList = Array.prototype.slice.call(document.getElementsByTagName("time")); + timeList.forEach(localizeDatetime); - /* var drop = document.getElementById("listing"); - drop.addEventListener("dragenter", change, false); - drop.addEventListener("dragleave",change_back,false); + var items = document.getElementsByClassName('item'); + Array.from(items).forEach(link => { + link.addEventListener('click', itemClickEvent); + }); - function change() { - drop.style.backgroundColor = '#EFF2AA'; - }; + document.getElementById("open").addEventListener("click", openEvent); + if (document.getElementById("back")) { + document.getElementById("back").addEventListener("click", backEvent) + }; + if (document.getElementById("view")) { + handleViewType(document.getCookie("view-list")); + document.getElementById("view").addEventListener("click", viewEvent) + }; + document.getElementById("delete").addEventListener("click", deleteEvent); + document.getElementById("rename").addEventListener("click", renameEvent); + document.getElementById("download").addEventListener("click", downloadEvent); - function change_back() { - drop.style.backgroundColor = 'transparent'; - }; */ + /* var drop = document.getElementById("listing"); + drop.addEventListener("dragenter", change, false); + drop.addEventListener("dragleave",change_back,false); + function change() { + drop.style.backgroundColor = '#EFF2AA'; + }; - return false; + function change_back() { + drop.style.backgroundColor = 'transparent'; + }; */ + + return false; }); diff --git a/assets/templates/actions.tmpl b/assets/templates/actions.tmpl index d675b047..cbe5e353 100644 --- a/assets/templates/actions.tmpl +++ b/assets/templates/actions.tmpl @@ -1,8 +1,6 @@ {{ define "actions" }} -
-
open_in_new
-
mode_edit
-
file_download
-
delete
-
+
open_in_new
+{{ if .IsDir }}
mode_edit
{{ end }} +
file_download
+
delete
{{ end }} diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index 2dba9bf6..b3bf2d0c 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -8,6 +8,11 @@ {{ if ne .Config.StyleSheet "" }}{{ end }} + {{ if .Config.HugoEnabled }} + + + + {{ end }}
@@ -17,17 +22,23 @@ {{ end }}

File Manager {{ if ne .Name "/"}}chevron_right {{ .Name }}

{{ end }} - {{ if .IsDir}}
-
- search -
-
view_headline
-
file_upload
-
+ {{ if .IsDir}} +
+ search +
+
view_headline
+
file_upload
{{ else }} {{ template "actions" . }} {{ end }} + + {{ if .Config.HugoEnabled }} + +
settings
+
exit_to_app
+ {{ end }} +
{{ if .IsDir }} @@ -39,29 +50,11 @@ {{ template "actions" . }} {{ end }} -
{{ template "content" .Data }}
- diff --git a/binary.go b/binary.go index 871b3c02..91a8e9f8 100644 --- a/binary.go +++ b/binary.go @@ -93,7 +93,7 @@ func publicCssStylesCss() (*asset, error) { return a, nil } -var _publicJsApplicationJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\x5a\xfb\x6f\xe3\x36\xf2\xff\x3d\x40\xfe\x07\xae\xbe\x05\x24\xa7\x8e\x93\xec\xf7\x80\x03\x2e\x75\x16\x69\xe2\x22\xc5\x65\x1f\xd8\x06\x87\x03\xf6\x51\x28\x16\x6d\xeb\x22\x8b\x3e\x8a\x4a\x36\xb8\xf5\xff\x7e\x33\xa4\x28\x93\x14\xf5\x48\x76\xaf\x15\x8a\xc6\x2b\xcd\x0c\x67\x3e\xf3\x14\xa9\xa0\x2c\x28\x29\x04\x4f\xe7\x22\x38\xdd\xdf\xdb\xdf\xbb\x8f\x39\x29\x68\x46\xe7\x82\x26\xbf\x0a\xba\x2e\xc8\x94\x7c\xf8\x24\x1f\x1d\x1d\x91\x73\xce\xe3\x47\xb2\xe1\x4c\x30\xf1\xb8\xa1\x64\x51\xe6\x73\x91\xb2\x9c\x08\x46\x38\x5d\xb3\x7b\x4a\xe2\x9c\x00\xfb\x9a\xe6\x62\x7f\x4f\x92\x4f\x6a\xf2\x89\x22\x99\xa9\xc7\x20\x58\xb3\x47\x15\xc7\x88\xfc\x67\x7f\x8f\xc0\x85\x5a\xa4\x40\x20\x56\x69\x31\x49\xf3\x84\x7e\x79\xbb\xa8\x89\x4e\x15\x4d\xba\x20\x51\x4a\x5e\x4c\xc9\xe1\x49\xcd\x87\x97\xe4\x29\x36\x59\x3a\xa7\x51\x3a\x26\x27\x9a\x7e\xbb\xbf\xb7\x1d\x64\xc6\x26\x8b\xe7\x7d\x76\x48\x1a\x8f\x21\x2c\x4b\x66\xd9\x98\xe4\xf4\x61\x96\x75\x5b\x23\x29\x87\xd8\xf2\x21\xfd\x04\xbc\x52\x62\xd3\x92\x4b\x36\x2f\xa5\x0e\x7e\x63\x0a\x9a\x27\x24\x26\x73\x56\x88\x72\x4d\xe8\x3d\x52\xc2\xed\x54\x80\x8b\x17\xfb\x7b\x9a\xdb\x30\x0d\x39\x2e\x24\xf9\xec\xde\xb1\x4d\xd0\x2f\x3b\x0f\x25\x9a\x35\x49\x8b\x4d\x2c\xe6\x2b\x49\x1e\x81\x9a\xe4\xa2\x2c\x04\x53\xec\x8a\x07\xad\xec\x50\x18\x14\x5a\x52\x21\xd5\x64\x77\x29\x85\x3f\xb9\x90\xb0\x7b\xd4\x03\xc2\x0b\x45\x65\x28\x96\xc7\x6b\x6a\x81\xcd\xa9\x42\x8c\xbc\xa7\xcb\xd9\x97\x4d\x14\x44\xaf\xfe\x06\xff\x7d\xfe\x3a\x39\x38\xfd\xf8\xb1\x38\x18\x05\xe4\x47\x82\x5c\xf0\x27\xc0\x1b\x1f\x3f\x4e\xf1\x4f\xf4\xe1\xf3\xe9\xa7\x83\xd1\xe4\xe0\x87\xd1\xd7\xcf\xf0\xff\x40\xfb\x87\x53\x51\xf2\x7c\x67\xb4\xd2\x54\xc7\x41\xc4\xe9\x98\x04\x3f\x9c\x04\xa6\xa1\x17\xab\x38\x5f\xd2\x02\xcc\xba\x2d\x85\x50\xee\x10\x2b\x4a\x32\x16\x27\x69\xbe\x84\xf8\x4a\xd7\x31\xaa\xbf\xbf\x57\xc5\x91\x61\xe6\x5c\x32\xdf\xb0\xeb\x8a\xd8\x30\xb6\x36\x34\x03\xcc\x68\x1d\x81\x18\x29\xa7\xbb\x07\x8c\xa7\xcb\x34\x8f\xb3\x1b\xc0\x1f\x9e\x56\x74\x10\x7c\x39\xe5\x57\x37\xaf\xaf\x65\x42\x23\xb1\x7e\x52\x88\xc7\x8c\x4e\xd8\x26\x9e\xa7\xe2\x11\x38\x8e\x6b\x8a\x82\x8a\x9b\x74\x4d\x59\x29\xa2\xa6\x12\xa6\x88\x5a\x38\xb0\x87\x3f\xa5\x64\x9e\xc5\x45\x31\x0d\xc0\x4a\xca\xd3\x38\x3b\x4c\xc1\xb1\x05\x29\x36\x69\x1e\x9c\xc5\xa5\x60\x9c\x82\x8b\x7e\x3a\x4a\xcf\xc2\xd3\xa6\x30\x57\x9f\x13\x1d\xfb\x63\xf2\xf2\xf8\x78\x54\x6b\x57\x79\xc6\xb4\xd7\xe7\x84\x3a\x99\xd1\x0d\x09\xcb\xe9\x30\xfc\x2f\x91\xd2\xac\x53\x9c\x33\x3e\x26\x2b\xb1\xd6\xd9\xad\xaa\x4d\x0b\x78\xe8\x09\x20\xe0\xc9\x6f\x82\x6e\xe0\x3e\xe0\x36\x3d\xdb\x41\x57\xd5\x83\x1d\x6a\x28\xf7\xd4\x7a\xea\x83\x41\x13\x60\xd1\xb0\x4a\xf5\x24\xa3\xf9\x52\xac\xc8\x14\x34\xb0\x3c\x64\xa4\xab\x93\xdf\x51\xa8\x4c\x4d\x0e\xb5\xa4\x70\x54\x6b\xb0\xc5\x1f\xdb\x9d\x29\x05\x05\x0f\x76\xd9\xe2\xc3\x41\x3d\x36\x82\xa8\x06\xa4\xf6\xa4\xb5\xc8\x22\xe5\x85\xf0\xaf\x81\x06\x4b\x0f\x38\xc6\x35\x70\x6c\x8d\xbe\xe0\x6c\x9e\xb1\x82\xda\x41\xb7\x85\xd8\x80\x2e\xf8\x6c\x91\x18\x4e\x8e\xc4\x9d\x93\x7a\xbd\x68\x20\xb3\xc3\x17\xda\xd6\xb1\x83\x8d\x99\x86\x1a\x22\x03\xc1\x2a\x0f\x16\x31\x98\x62\x24\x80\x2a\xe2\x0b\xc6\x21\xee\x97\xcb\x0c\x6b\x09\x16\xa1\x35\x4b\x28\x61\x0b\x72\x9f\xd2\x07\xd5\xf3\xf1\x57\xa3\xe2\xcb\x86\x61\x15\x9c\xb9\x2e\xbe\x75\x40\xd5\x15\x39\x0a\x51\xc6\x61\x96\x16\xa2\x8e\x21\x64\xc1\x1b\xaa\x86\x99\x3c\x55\xce\xfd\xfc\xf8\x6b\x12\x85\x15\x49\xb8\x4b\x6b\x74\x75\xb5\x16\x74\xc5\x50\xf0\x92\x86\x96\xd7\x9d\x52\x8c\x1e\xaa\x97\x9f\x4a\x72\x5d\x30\x1a\xde\xed\x64\x95\x00\x86\xbb\x46\xab\x7e\x40\x8e\x24\x19\xfd\x07\x50\xdd\x40\x79\x88\x7a\x8c\x77\xba\x86\xeb\x93\x2b\x29\xac\x90\x8e\x40\x2e\x22\xbb\xa0\xca\x43\xe5\x0c\x7b\x39\xd3\x23\x48\x7f\x0d\x8b\x58\x4e\x79\x22\xc2\x9a\xad\xea\x4b\x1d\x5c\xb8\x9a\xe3\x14\xad\x00\x16\x99\x00\x71\x0e\x2c\xb7\x54\xeb\x4c\x64\xaa\x20\xdd\x24\x4e\xaa\xe5\x8d\xc2\x42\xaa\xb5\x87\x66\x18\x2e\xfa\x3b\xc4\x6c\x99\x51\xb7\x5f\x38\x18\x5b\x5e\x7b\xc6\x22\xa8\xa8\xb9\x44\xd3\x1e\x35\xc3\x3a\x26\x0d\xf0\x34\xdb\x50\x20\x48\x33\xaa\x71\x97\xc9\xa5\xfc\x8d\xcf\x7a\x92\xaf\xad\xd8\x5b\xe8\x3f\xc0\x70\xc9\x1e\x26\x28\xce\x26\xfe\x70\xfc\x09\x46\x9d\xf0\x15\x8f\x1f\x54\x72\x8c\x06\x42\x68\x4a\xac\x7e\x67\x6c\x2e\xfb\xa6\x5f\xe0\x00\x24\x6e\xe3\xf9\x9d\x07\x04\xbc\xdd\x03\x82\x1c\xa4\xab\x97\x12\x4f\xd0\x16\x3f\x3f\x5e\xa0\x9f\xde\xc0\x64\x17\x85\x48\x58\xab\xa5\x26\xf8\x05\x67\xeb\x48\x0a\x18\x4d\xa0\x26\xce\xe2\xf9\x2a\x82\x9a\x78\x67\x75\x19\x74\x7a\x7e\xe7\xf1\x78\xa3\x43\x6e\xf5\x8f\x96\x17\x26\xad\x32\xad\xac\x72\x87\xe3\xf6\xde\xdb\x32\x5d\x2b\x34\x86\x23\x9d\x80\x5c\xe1\x0b\x38\xf5\xe0\x7b\x84\x9c\x01\xac\x45\xdb\x09\xb0\xae\x40\x38\xef\x74\xd4\x9f\x40\xa9\x19\x8c\xdc\x79\x38\x32\xc3\x57\x0b\xe3\xf4\xdf\x25\x2d\x34\xce\xff\x7c\x7d\x7d\x25\xc4\xe6\xbd\xba\x19\x8d\x8c\x8e\xab\xa3\x5e\x3e\x51\xa1\x1d\x5e\xce\xae\x67\x37\xb3\x70\x2c\x7d\xef\x4a\xd7\xa4\x38\x3b\x35\x96\xae\xe5\xe4\x9c\xc6\xc9\x63\x21\xa0\xac\x28\x75\xbd\x53\xbb\x79\x21\xc0\x9a\x5d\x32\xff\x86\xcc\x58\x59\xff\xe2\xa5\x77\x79\x70\xad\xb2\x40\x7a\x1c\x03\xda\x38\xac\x78\x72\x10\x96\xd6\xea\x00\x77\x2d\x33\x2f\x2c\x91\x0c\x66\x98\x8c\x2d\x1d\x3f\x77\x30\xd9\xc1\x63\xbd\xfc\x47\x3e\x9c\xf5\xb5\x75\x7d\xd5\x67\x46\xa8\x02\x25\x1c\x59\x83\x7b\xe4\x02\xf5\x42\x01\x55\xcd\xef\x9e\xc5\xb7\xf6\x2d\xe3\x9f\x5b\x3b\x80\xba\x4a\xe6\xa0\x58\x54\x42\xbc\x11\xe8\x94\x59\x97\xda\x0a\xc2\x67\x04\xdf\x53\x82\xee\x69\xc1\xe6\x28\x3e\x81\xc2\xb5\x92\x2f\xd9\x53\x78\x0f\x47\xdf\x5f\xc7\x85\xb8\x4c\x39\xc4\x04\xe3\x8f\xef\x62\x2e\xde\x2e\xdc\xa6\x52\x33\xb9\xee\x69\xc4\xc4\xff\x2a\x16\xb6\x8e\x3b\x5b\xca\xec\x3b\xae\xaa\xfa\x25\x5d\xc4\x65\x26\xcc\xe2\xba\x51\x8f\xf4\x93\xd6\xfa\x2a\xff\x35\xb1\xa9\x23\x73\x0b\xe1\x3d\x95\xf0\xc9\xa1\xc1\x90\xcf\xe5\xed\x3f\xbd\x78\x63\x1f\xed\x28\xde\xbe\x04\x97\x2f\x91\x9b\x18\x67\x4e\xe4\xb6\x5b\xf7\x4d\xbc\x54\x8d\x1b\x29\xc2\x11\x8c\x2c\x1e\xee\x2a\x9e\x90\xc4\xb3\x99\x51\xc7\x2d\x0a\x87\xc1\x53\x62\x84\x3d\x9c\x02\x25\xb4\xdb\x2c\x9d\xdf\x41\x86\xd9\x90\xbb\x4a\x4a\xe6\xaa\x58\xf9\xf9\x91\xe2\x02\x7f\xcf\xcc\x7e\xac\x2f\xa9\x1b\xbc\xad\x9d\x0b\xc1\x53\x68\xbd\x60\x51\xb5\xa3\x45\x93\x54\xc4\xb7\x19\x05\x11\x61\x63\x0a\xab\x59\x17\x00\x68\xe1\x69\x58\x68\xfe\x1d\x7d\xbc\x64\x0f\xf5\xac\xa8\x7d\xde\x74\x90\x0e\x01\x15\x63\xc0\x76\x81\x6f\x7c\x90\xbc\x27\xff\xdf\xda\x28\x24\xbe\xf4\xe1\x4d\x0b\xc4\x6d\x2c\x3d\x4d\x3c\x54\xe1\x1a\xf6\x37\x71\x53\xe8\xa0\x02\xea\x5e\x76\x41\x7d\x77\x7e\x73\x71\xd5\xd2\xd1\x5d\x0e\x70\x57\x25\xfc\x0a\x4a\x22\xfa\x5a\xe5\xde\xe1\x0d\x0b\xc7\x1a\x94\x7e\x21\x9e\xf1\xa0\xa1\xdb\xd3\xc7\x04\x7d\x3d\x67\x5c\xf0\xf1\xda\x15\xb0\x8f\x13\x2f\x3b\x16\xd0\x29\x00\x47\x47\xe3\xc7\xcb\xb7\xab\xe2\xbf\xaa\xb8\xbb\x96\xa5\x46\x0d\xdf\x7a\x63\x15\xd7\xe9\xc5\xdf\xb2\x13\x93\x37\x4d\x54\xdc\xa0\xc4\x01\x3c\xee\x98\x62\xee\xed\xcb\x32\x36\xd6\xc2\x86\x68\xd0\xc4\x4a\x69\xdf\x07\x57\xdb\xcc\xa3\xaf\xe1\xf9\xf5\xbc\xd9\xc7\x50\x64\xe0\x6d\xaf\xca\xbb\xa2\xf3\xf7\x5d\xd1\x79\xf9\xd7\xd6\x30\x1b\x1a\x5a\x3d\x8b\x59\x15\x8e\x7c\xfd\x4a\x1a\xb7\xfb\x74\xe8\xad\xd8\x6a\x67\xa8\x0d\x3a\x29\xc3\xdb\x35\x40\x07\x98\x70\x72\x10\x61\x56\xef\x36\x39\xfd\xdd\xa7\xbb\x7b\x59\x72\xda\x5b\x60\x77\x0b\xd3\x57\xeb\x84\x32\xc8\x3b\x9e\x21\xb9\x95\x5e\xc2\xd7\x54\x77\x18\x76\x2d\xcc\xb7\x59\xc9\x81\xb3\xbb\x49\x0e\x8d\xbf\x6f\x8d\x91\xef\x11\x1f\xdf\x1a\x1b\x5b\x6b\xce\x1d\xfe\x46\xd3\x32\x02\xa3\xae\x78\x9a\xd5\x18\x50\x93\xea\xc1\x1f\x33\xa2\xaa\x39\xb4\xe1\x5c\x73\xe7\x4a\x92\xfc\x48\x82\x57\x5a\xb3\xa9\xda\xb9\x74\xe1\x18\x02\x46\xf7\x8e\x58\xdb\x12\x3e\x08\x11\xaa\xd6\x17\x23\x13\xb6\x92\xdb\x67\xc9\x31\xe7\xf0\x18\xee\xca\x63\x6e\x11\x85\x47\x75\xc8\xc1\xa3\xc9\x86\x6d\x22\x67\xdd\x08\xef\xff\x8b\xa5\xb9\xa4\xad\xdf\x31\xea\x9e\xd2\x48\x9e\xc0\xdd\x9a\x0a\xc6\x5d\x9b\x72\x82\xb1\xec\x36\xe6\x5d\x7b\x39\x15\x49\x8d\x88\xf9\xa1\xc1\x9b\x72\x7d\x4b\x91\xdb\x17\x0e\x75\x98\xb6\x8a\xd6\x5c\x87\xb9\x94\x13\x8c\xac\x84\xb6\x17\xb1\x36\xb3\xed\x47\xf6\xc9\xbb\x52\xd7\xd9\xc8\x0e\xa0\xd7\x42\xaa\x27\x81\x9d\x3c\x4d\x59\xe4\x8c\x9c\x34\xfa\x4d\xab\x01\x18\x4c\xb8\xcb\x65\xaf\x95\xa4\xc5\x6e\xb1\x41\x72\xd4\x28\x30\x50\xd2\xb6\xc7\x02\x6c\xa5\xdf\x60\x42\xb5\xa9\xf4\x7d\xac\xe8\x14\xb6\x1d\x5a\xc7\x9a\x3e\xd5\x72\x4d\xb7\xfa\xd2\x55\xb9\x5b\x6f\x3f\xef\x1a\x67\xf7\x56\x35\x64\xa8\xfe\xea\xc3\xff\xa6\x1b\xcb\xd7\x5c\x7c\x68\xb4\x95\x15\xa7\x0b\xe7\xd0\xc5\x7b\xca\xfb\x42\x9e\xf2\x76\xb6\xe8\x26\xaf\xfe\xfa\x44\x96\x94\xa9\xff\xdb\x19\xe7\xec\xc6\x73\x30\xec\xce\xcc\x9b\xb2\x58\x49\x91\x1a\xf1\xc6\xec\xef\x08\x6e\xdd\x52\x6f\xca\xb6\xb7\x0d\xcd\x45\xfe\x9c\x2d\xf6\x8e\x9a\x79\xf9\xf6\xf5\x85\x9a\x09\xf0\x15\xb7\xaf\x66\xfe\x51\x07\x19\x4f\x1d\x02\x8d\xc1\xa0\x2f\xdb\x3d\x6d\x03\xc5\x81\xdd\xf5\x89\x96\x19\x8a\xad\xe2\xf0\xe8\x27\x18\xf9\xcf\x77\xfd\xb4\x1d\x4b\xd7\xe7\x48\xa3\xca\x9e\x21\x1a\xe0\xe1\x9f\xa3\x41\xff\x99\x6f\x50\x9f\xf9\x06\x23\x33\x80\x7b\x56\xe9\xd0\xbd\x3e\x85\x77\x74\xef\x3f\x21\x69\x97\x69\x9c\xf5\x34\x62\xbf\xb5\xf4\xb6\x8b\x33\x76\x1f\x7b\xc5\xe9\x59\xa8\x5b\x3f\x73\x5a\xdc\xc5\xde\xd1\x81\xcc\x92\x84\xb3\x4d\xd7\x58\x51\x1d\xd0\xd6\x95\x1b\xe9\x3d\x8b\x25\x3c\x5e\xe2\xac\xce\x61\x41\x55\x12\xc6\x2a\xad\x07\xf0\x65\x34\xbe\xa7\xc1\x58\xb1\xfd\x8e\xe1\x35\xae\x59\x15\x73\xfd\xc9\x9d\xa2\x31\xb7\x71\xa4\x5c\xf5\xfd\x07\x72\x2e\x39\x2b\xf1\x03\x9c\x8c\xe1\xb8\x13\xfe\xdf\xec\x97\x5f\x5e\x9e\x9f\xd7\xdf\x1b\xb4\x49\x94\xab\x0e\x17\x2b\x78\x9c\x43\x51\x03\x57\x89\x9d\x68\x72\x70\x84\xd2\xdb\x1b\xdc\x7f\x03\x00\x00\xff\xff\x2c\x91\xa0\xc9\x0c\x2a\x00\x00") +var _publicJsApplicationJs = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x5a\xfb\x6f\x1b\xb9\xf1\xff\xdd\x80\xff\x07\x66\xbf\x07\xec\xca\x27\xcb\x76\xbe\x05\x0a\xd4\x27\x07\x3e\x5b\x07\x1f\xea\xf8\x82\x44\x28\x0a\xe4\x71\x58\x6b\x29\x89\xf5\x6a\xa9\x72\xb9\x76\xd4\x46\xff\x7b\x67\xf8\x5a\xee\x53\xb2\xaf\x4d\x51\xd8\xce\x72\x66\x38\xf3\x99\x27\xc9\x0b\x8a\x9c\x92\x5c\x0a\x36\x93\xc1\xf9\xe1\xc1\xe1\xc1\x63\x2c\x48\x4e\x53\x3a\x93\x34\xf9\x55\xd2\x55\x4e\xc6\xe4\xe3\x67\xb5\x74\x72\x42\x2e\x85\x88\x37\x64\x2d\xb8\xe4\x72\xb3\xa6\x64\x5e\x64\x33\xc9\x78\x46\x24\x27\x82\xae\xf8\x23\x25\x71\x46\x80\x7d\x45\x33\x79\x78\xa0\xc8\x47\x8e\x7c\xa4\x49\x26\x7a\x19\x04\x3b\xf6\xc8\xb0\x0c\xc8\xbf\x0f\x0f\x08\xea\xc0\x60\x59\x2e\x59\x3e\x62\x59\x42\xbf\xfe\x36\x77\x14\xa0\x0a\x61\x73\x12\x31\xf2\x6a\x4c\x8e\xcf\x34\x87\x26\xcd\xd7\x29\x9b\xd1\x88\x0d\xc9\x99\x22\xdb\x1e\x1e\x6c\xf7\x52\x7c\x9d\xc6\xb3\x5d\x9a\x2b\x9a\x36\xd5\x79\x9a\x4c\xd2\x21\xc9\xe8\xd3\x24\xed\xd1\x5f\x91\xf5\x68\xff\x91\x7d\x06\x16\x25\xa5\xa6\xfb\x35\x9f\x15\x6a\xd7\x76\xf5\x73\x9a\x25\x24\x26\x33\x9e\xcb\x62\x45\xe8\x23\x52\xc2\x67\x26\xc1\x8d\xf3\xc3\x03\xcb\xed\x19\x83\x1c\x57\x8a\x7c\xf2\x58\xb7\x46\xd2\xaf\xc6\x0b\x89\x65\x4c\x58\xbe\x8e\xe5\x6c\xa9\x88\x23\xd0\x90\x5c\x15\xb9\xe4\x9a\x59\x33\xa0\x5d\x3d\xea\x82\x3a\x0b\x2a\x95\x92\xfc\x81\x51\xf8\x95\x49\x05\x73\x8b\x72\x40\x78\xa5\xa9\x7c\xb5\xb2\x78\x45\x4b\x70\x05\xd5\x50\x91\xf7\x74\x31\xf9\xba\x8e\x82\xe8\xcd\x5f\xe0\xff\x5f\xbe\x8d\x8e\xce\x3f\x7d\xca\x8f\x06\x01\xf9\x91\x20\x0b\xfc\x0a\xf0\xc3\xa7\x4f\x63\xfc\x15\x7d\xfc\x72\xfe\xf9\x68\x30\x3a\xfa\x61\xf0\xed\x0b\xfc\x0c\x94\x3f\x04\x95\x85\xc8\x4a\x7b\xb5\x92\xd6\xe5\x91\xa0\x43\x12\xfc\x70\x16\xf8\x36\x5e\x2d\xe3\x6c\x41\x73\xb0\xe8\xbe\x90\x52\xfb\x41\x2e\x29\x49\x79\x9c\xb0\x6c\x01\xa1\xc4\x56\x31\x6a\x7e\x78\x60\x42\xc6\xb3\x70\xa6\x98\xa7\xfc\xd6\x10\xfb\x76\x6a\x1b\x53\x00\x8b\xba\x50\xc3\xe8\x38\x37\x5f\xb9\x60\x0b\x96\xc5\xe9\x14\x50\x87\x25\x43\x04\x41\x96\x51\x71\x33\x7d\x7b\xab\x12\xd5\x7d\xce\xe5\x26\xa5\x23\xbe\x8e\x67\x4c\x6e\x80\xfc\x54\x2f\xe7\x54\x4e\xd9\x8a\xf2\x42\x46\xf5\x9d\x9b\x12\x81\x2d\xfc\x89\x91\x59\x1a\xe7\xf9\x38\x00\xab\xa8\x60\x71\x7a\xcc\xc0\x87\x39\xc9\xd7\x2c\x0b\x2e\xe2\x42\x72\x41\xc1\x1f\x3f\x9d\xb0\x8b\xf0\xdc\x17\x53\xd7\xe0\x4c\xc5\xf6\x90\xbc\x3e\x3d\x1d\x68\x65\x0c\xfa\xbe\x61\x6d\x40\xbb\xdc\x44\xa8\x13\x9e\xd1\xfd\x30\xbe\x46\xca\x4a\xa1\x11\x82\x8b\x21\x59\xca\x95\x49\x56\x5d\x39\xda\x81\x42\xc4\x61\x5d\x24\x1f\x24\x5d\xc3\x67\x00\x69\x7c\xe1\x15\x1c\x1f\x24\x94\x78\x5e\x96\xa2\x16\xbb\x71\x11\x73\xbf\x52\x5e\x47\x29\xcd\x16\x72\x49\xc6\xb0\xa9\x71\x41\x19\x89\xb5\x44\x8d\x42\x6d\x56\x72\x6c\x45\x84\x2a\x80\xb1\x58\x90\xad\xd3\x38\xa7\xe0\x9b\x2e\x95\xdb\x2c\x25\x7e\x44\x38\x7b\x9d\x93\x3c\xd1\x73\x26\x72\xd9\x94\x8c\x56\x29\x60\xad\x05\x0d\x74\x3a\x43\x28\xb8\x98\xa5\x3c\xa7\x65\xe4\x6c\xc1\xd1\xd0\x93\x9e\x2f\x07\x83\xc2\x13\xa3\xf1\xee\x75\x86\x67\x75\x89\x19\x34\x8f\xd3\x8a\xdd\x7e\xb6\x58\xf3\x4b\x6c\x4c\xf8\xce\x63\x50\xda\x8b\x5b\x5d\x58\xe7\x5c\x40\xb8\x2e\x16\x29\xa6\x39\xd6\x87\x15\x4f\x28\xe1\x73\xf2\xc8\xe8\x93\xee\xb5\xf8\x57\xb3\x0a\xab\x2a\x5e\xd6\x82\x99\x2d\x88\x2e\x32\x5c\x95\x8c\x42\x94\x70\x9c\xb2\x5c\xea\x60\x40\x7a\xfc\x97\xae\x2c\x3e\x83\xc9\x92\x9f\x37\xbf\x26\x51\x68\x48\x42\x93\x85\xe8\x41\xb3\x0b\x34\xa6\x50\x8a\x82\x86\xc6\x99\xb5\xba\x88\x4e\x70\x5b\x8e\x15\xa1\xc2\xca\x73\x5b\x2f\x87\x42\x2a\x2c\xe1\x85\x88\x4e\x52\xfa\x37\x58\x9f\x42\xe2\x46\x3b\x2c\xec\xc3\xfc\x46\x49\xca\x15\xd0\xc8\x42\x54\xef\xd1\x29\xa3\xc1\xae\xee\x55\x41\x1c\x19\x6e\x61\x8b\x12\xf4\x67\x82\xa8\x78\x4c\x37\xe8\x61\xc1\x7d\x7c\xd0\xed\xbe\x58\x00\x02\x44\x33\x30\xb0\x1b\xd9\x23\x15\xed\x48\x31\x8a\x13\xb3\xa5\xc9\x7a\xbd\xd9\xbe\xe9\x81\x1b\xfd\x0e\xf1\x57\xa4\x5e\x96\xd4\x90\x34\x2e\x79\x81\x60\x54\xcb\x89\x6d\xaa\xae\x07\x3f\x5f\xfb\x3d\x7c\xc8\xd7\x14\x08\x58\x4a\x2d\xac\x2a\x2b\xb4\x27\x71\xad\x37\x6d\xba\x0a\xad\x41\xf7\x09\xc6\x32\xfe\x34\x42\x31\x55\xb2\x8f\xa7\x9f\x61\x68\x08\xdf\x88\xf8\x49\x07\xf7\xa0\x07\x28\x5f\x8a\xf9\x3b\xe5\x33\xd5\x94\x5a\x84\xec\x61\xf2\x7d\x3c\x7b\x68\xb1\x16\x3f\xf7\x5a\xab\x26\x4e\x33\xad\xb7\x84\x5e\xfe\xf3\xe6\x0a\x7d\x71\x07\x23\x51\x14\x22\xa1\xd6\x48\x4f\xb9\x73\xc1\x57\x91\xe2\x1e\x8c\xa0\x62\x4d\xe2\xd9\x32\x82\x8a\xf5\xe0\xca\x3b\xfe\xa3\xc5\x99\xd5\x26\xb4\x55\x3f\x3b\x8e\x0e\x4a\x41\x6a\x2c\xa8\x4f\x90\x1d\x5d\xad\x63\xfe\xd4\x56\xef\x89\x67\x02\x12\x65\x5b\xfc\xe8\x85\x3f\x12\x41\x1e\x76\x15\xaa\x0e\x0c\x55\x79\xc0\x19\xa1\xa7\x38\x04\x5a\xab\x60\x50\x1f\x11\x23\x1d\x84\x4a\x86\xa0\xff\x2c\x68\x6e\x71\xfc\xfb\xdb\xdb\x1b\x29\xd7\xef\xf5\xc7\xc8\x14\x16\x62\xa9\x74\x68\x86\xd7\x93\xdb\xc9\x74\x12\x0e\x95\x27\x8d\x2c\x4b\x81\x33\x46\x54\xfb\xc6\x33\x41\xe3\x64\x93\x4b\x48\x75\xad\x4a\xcb\x90\x4a\x74\xdf\xb7\x3c\x8a\xe3\x03\x72\x60\x29\xfb\x93\xa3\xa9\x10\xa1\xc4\x22\x47\x02\xec\x9f\x8e\xa4\x13\x11\xa5\xaf\x0d\x38\xa3\x24\xfc\x0f\x0b\x0f\x87\x96\x9e\xf2\x45\x0d\x7c\x47\x52\xf5\x5c\xe5\xe0\x19\x79\x28\xb8\x41\xa1\x47\x89\x50\xbb\x25\x1c\x54\xa6\xca\xa8\x6e\xd4\x2b\x6d\x94\x99\x2d\x8d\xf8\xad\xfa\xa5\x7e\x6e\xad\x73\xda\x6b\xc9\x5e\xbe\xed\xf2\x6b\xad\xf8\x54\x48\x4b\x07\x3f\xcf\xbd\x7b\x38\x77\xb7\x6b\x6b\x8a\x8d\x20\x91\x97\xea\x60\x36\x86\xb3\x1b\xfa\xe4\x36\xce\xe5\x35\x13\xe0\x2b\x2e\x36\xef\x62\x21\xe1\xa8\xdc\xc5\x64\x40\xb5\x1e\xfb\xef\xfb\xab\x9c\xa3\x3b\x6a\xcb\x3b\xa1\x8b\xd8\x35\x9d\xc7\x45\x2a\xfd\x8a\xb2\xd6\x4b\x76\xa5\xa3\xa8\xa8\x3f\x47\x55\xda\xc8\x3f\x59\xbe\xa7\x0a\x1e\xd5\xf6\x3c\xe9\x42\x7d\xfe\xde\xf5\x0a\x9b\x42\x4f\xbd\xf2\xf2\x48\x9d\x3b\xd6\x31\x8e\x3e\xc8\x54\xed\x3d\xd3\x78\xa1\x3b\x0f\x52\x84\x03\x68\xb1\x25\x93\x09\x06\x5c\xa9\x9f\x62\x89\x16\x05\x63\x8f\xb2\x1b\x7b\x0f\x1c\x32\x05\xf4\x8b\x94\xcd\x1e\x20\xea\xab\x30\x1a\x4d\x14\x8f\xc9\xf7\x76\x36\xa4\xb8\xc2\xbf\x27\xae\x95\x10\xad\x00\x8c\xfa\x97\x52\x0a\x06\xfd\x02\xb4\x35\xb7\x14\x34\x61\x32\xbe\x4f\x29\x70\x86\xde\x44\xa0\x39\xe6\x00\x4d\x5e\x96\x5d\xb4\xe8\x81\x6e\xae\xf9\x93\x9b\x4e\xac\x8b\x1c\xb0\xfa\xb4\xa4\xe2\x00\x48\xaf\xf0\x44\x00\x49\x73\xf6\xff\x65\x39\x54\xb8\xd0\xa7\xbb\x0e\x68\x1c\xcd\x8e\x76\x12\xea\xa0\x09\x3b\xdb\xc9\x9e\x0d\x45\x51\x56\x0b\xcf\xbb\xcb\xe9\xd5\x4d\xb5\x9f\xf8\x1d\x45\x1a\xf6\x1b\x28\x1b\x88\xbc\x0e\xea\xe3\x29\x0f\x87\xd6\xb0\x16\xae\xb2\x0f\x3d\xbf\x13\xed\xd9\x8b\x5a\x4b\xd6\xab\x7a\x37\x22\x35\xcc\x11\x1a\x50\xd9\xf5\x96\xea\x19\xd5\x77\xd9\xad\x4a\x21\x3d\x30\xd9\xfb\x23\x64\x6d\x9a\x6d\x23\x95\x25\x1a\x78\xe4\xf4\xd6\xea\xed\xcb\xbf\x7d\x54\x79\x37\xb4\x4c\xbe\xc4\xa6\xda\x7a\x57\x4f\x73\xd7\xed\x7a\xea\x67\x23\x6e\xf6\xef\x77\xb6\xe3\xb9\xdf\x6e\xc3\x32\xea\xff\x5a\x46\xfd\xeb\x3f\x97\xb0\xf7\x61\xde\x22\xa5\x92\x3b\xe4\xdb\x37\xd2\xf8\xdc\x10\xbe\x33\xbd\xf5\xd9\xd4\xd9\xa2\x98\x5a\x4b\x09\xec\x02\x1d\x2a\x03\x1e\x3f\xdb\x1d\xe3\xee\x1a\xd4\x5a\xba\x76\x16\xbc\xd6\xca\x45\xba\x9b\x4a\x05\xba\xfa\xd8\x51\x2e\x29\x3b\x9b\xbb\xf6\x1a\xd9\xc1\x73\x9f\x16\x02\x18\x9a\x45\xaf\xcf\xbb\x2f\x71\xce\x4b\x7d\xf3\x42\xd7\x6c\xcd\x80\xd0\x3f\xc3\x75\x4c\x0d\xa8\x04\xde\x0c\x37\xba\x7a\x62\x16\xfe\xb7\x7d\x5d\x77\x71\xeb\x09\xff\xcc\xaa\x56\x7e\x24\xc1\x1b\xab\xc8\x58\xdf\x40\x94\xb6\xbe\xec\xe4\xdb\x2a\xb0\x0d\x1c\x04\xa1\x73\x0e\xac\x00\x52\x08\xef\x71\x25\x16\x02\x16\xe1\x93\x7a\xf2\x81\x13\xe4\x89\x8e\x0b\xf8\x3e\x5a\xf3\x75\xe4\xef\x17\xe1\xc7\x7f\x70\x96\x29\x2a\x37\x6a\xb9\xe2\xd7\x88\xe1\xa0\x7e\x1c\x0d\x86\xdd\x87\x6e\xc9\x79\x7a\x1f\x8b\xbe\x43\x9d\x21\xd1\x20\xf8\xcf\x6b\x77\xc5\xea\x9e\x22\x6b\x9b\x77\x75\x9c\x75\x0a\xb5\x2c\xc7\x99\x12\x02\x47\x46\x3f\xb7\xaa\x3b\x94\x97\x4d\xd5\xef\xf6\xf1\x49\xeb\x57\xbb\x68\x0a\xa0\x07\x40\xe2\x25\x81\x8d\xf8\x26\x3f\xb9\x20\x67\x8d\x2b\xeb\xba\xa2\x18\x21\x78\xa0\xad\x0a\x87\x23\x7d\x29\xbd\x8f\x5d\xb7\xa2\x9d\x02\xb6\x9d\x3a\x62\x7b\x78\xbe\x92\xe6\xc4\xf9\x87\xf4\xec\x90\xb1\xed\x2b\x20\x4d\x5f\x58\x29\xbe\x3b\x1a\xa9\xa4\x7d\x64\x2f\x81\xca\x0e\xd1\x77\x5d\x04\xd9\x63\x9f\x28\xdb\x87\xf5\x58\x4d\xea\xb8\xe8\xd5\xe5\xa5\xa0\x73\xff\xfa\xb2\xf5\x2d\xe3\x95\x7a\xcb\xe8\xee\x4a\x4d\x46\xfb\x48\xaa\xb2\x7c\x5c\x7f\xd7\xad\x5d\x81\xd6\x1e\x3f\xaa\x92\xd6\x45\xbe\x54\x62\x14\xa8\xde\x9c\x56\x93\xd4\x7e\x89\xd5\x7b\x6d\xe0\xa4\x7e\xd7\x1b\x2d\xdc\x07\x4b\x6b\xca\xfe\x45\xaf\x61\xa2\x95\x6c\x55\x7b\xd1\x82\xb9\x00\xe1\x1b\x42\xf9\x2b\x3b\x06\x1d\xe1\xc3\xec\x95\x6e\xa3\x00\x29\x94\x4b\x20\x9a\xb3\x8c\x26\x06\x5a\xbd\x99\x31\x48\x99\x63\x46\x51\x82\xdb\x44\xb4\xe6\xf9\xc4\xec\x6d\xee\xe0\xd5\x23\x76\x7e\x17\xdf\x45\xc9\xc0\x3e\x14\x54\xd9\xbd\xfd\x35\xb6\x2d\x2c\x9e\x12\xf6\xf0\x4d\x6a\x9a\x93\x64\x24\xe1\xe0\x02\x00\xd0\x0f\xa0\x8c\x39\xbd\xec\xaa\xe1\xd7\xbf\xbd\x35\x12\xf0\xcc\xb3\xa3\x86\x83\x55\xfa\x0a\x9e\xd4\x9f\xfd\x73\xfc\x0f\x0a\x46\xb0\x77\x1a\xb5\x5f\xab\xda\x6c\x09\x50\x48\xa0\xa1\xb1\xf2\xca\x83\x75\xcd\x7d\x26\x7f\xbe\xc3\xa5\xed\xb3\x46\x49\x3b\xdc\xec\x2a\x93\x2d\x1d\x13\x05\x01\xc4\xee\x56\xde\x85\x48\xa7\x2c\xbc\xd2\x0e\x06\xf5\x27\xa6\x76\xaa\x9e\x1d\xdd\xcd\xf8\x00\x0d\xd8\xb9\x2b\xbe\x55\xb8\x5d\x77\xbf\x3c\x05\xee\xe5\xc9\xb8\xb6\x5b\x53\x2d\xb9\x47\x53\xf7\xd0\xe7\x34\xdd\x7d\x0d\xdc\x2d\xcd\xbb\xbf\x1e\xf4\xca\x72\x8d\xa9\x5b\x96\x77\xb7\xd4\x2f\xcb\x0e\x75\xfd\x9a\xf9\x33\xad\x89\xa8\x93\x23\x5d\x5f\x04\x5f\xf7\x4d\x4a\xe6\xdd\x48\xf7\x38\x24\x6e\xd9\x26\x11\xf1\x02\x0f\x06\x02\xb6\xd2\x55\x76\xa8\xeb\xe5\x2e\xa6\x94\xc6\x8f\x34\x18\x6a\x9e\xdf\x31\x6e\x86\x8e\x0f\x38\x5d\x75\xd0\x04\xee\x66\x41\x49\xd4\x0f\xc8\xc8\xb3\x10\xbc\xc0\x37\xf9\x94\xe3\xe0\x16\xfe\xdf\xe4\x97\x5f\x5e\x5f\x5e\xea\xe7\xcc\x56\x41\x6a\xa7\x3d\xa5\x49\x11\x67\xd0\x18\xc0\x1f\xd2\x48\x24\x47\x27\xad\x07\x0b\x54\xfa\x3f\x01\x00\x00\xff\xff\x30\x0d\x40\x0f\xbb\x25\x00\x00") func publicJsApplicationJsBytes() ([]byte, error) { return bindataRead( @@ -108,12 +108,12 @@ func publicJsApplicationJs() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "public/js/application.js", size: 10764, mode: os.FileMode(438), modTime: time.Unix(1466516757, 0)} + info := bindataFileInfo{name: "public/js/application.js", size: 9659, mode: os.FileMode(438), modTime: time.Unix(1466625611, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templatesActionsTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\xd0\x41\x0a\x83\x30\x10\x05\xd0\xbd\xe0\x1d\x86\xec\x8b\x17\x88\xb9\x4a\x18\x9c\x2f\x0c\xc4\x49\xd1\x50\x17\xe2\xdd\x5b\xdb\x0a\x5d\xa5\xae\x12\xf8\x9f\xc7\xf0\xb7\x8d\x04\xa3\x1a\xc8\xf1\x50\x34\xdb\xe2\x68\xdf\xdb\xc6\x8b\x3e\x42\xdb\x10\x1d\x1f\x1a\x12\x2f\x4b\xff\x6d\x38\x52\xe9\x5d\xbe\xc3\x5c\xf0\x7a\x66\x13\x17\xcc\xca\xe9\xa6\xc3\x81\x84\x23\x8f\x6a\xd1\xb0\xfa\x4e\x83\xef\xfe\x81\x33\x8c\x27\xd4\xc8\x29\x0b\x22\x44\xcb\x35\x50\xf2\x6a\x29\xb3\xd4\xc8\x51\x13\xe2\x59\xbc\xc8\x22\xa1\x54\xef\xfc\x34\x7e\xb5\xf3\x7d\xad\x0d\x93\xf7\xc0\xcf\x00\x00\x00\xff\xff\xba\x84\x1c\xb7\x79\x01\x00\x00") +var _templatesActionsTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x7c\xd0\x41\x0a\x83\x30\x10\x05\xd0\xbd\xe0\x1d\x42\xf6\xad\x17\x88\x59\x75\xd3\x53\x84\xe0\x8c\xf0\x21\x4e\x8a\x09\x75\x21\xde\xbd\x91\x56\x5a\x0a\x66\xfd\x7f\x5e\x3e\xb3\xae\x8a\x78\x84\xb0\xd2\x7e\xc8\x88\x92\xb4\xda\xb6\xb6\x31\x84\xa7\x1a\x82\x4f\xa9\xff\x04\x5a\x81\x7a\x1d\x1f\x2c\xda\x1a\x1c\xd9\xe4\x33\xcf\xf0\xe1\x82\x61\x7f\x6b\xf7\xdc\x41\x9c\xf0\x62\x3a\x58\xd3\x15\xc7\xb6\x4d\xf9\x06\xa3\xba\xde\xd3\x0d\x73\xf1\xcf\xf4\x99\xc5\x4f\x5c\xf3\xa7\x48\xec\x98\x90\xbf\x7a\xb1\x59\xa8\xba\x9a\xe2\x22\x21\x7a\xaa\xc9\x23\x02\xbb\xa3\xf8\xbb\xfd\x14\xe5\xc0\xb9\x3a\xf6\xdd\xf8\xbb\xc3\xb1\xf5\x15\x00\x00\xff\xff\x18\x92\xdd\xe0\x7a\x01\x00\x00") func templatesActionsTmplBytes() ([]byte, error) { return bindataRead( @@ -128,12 +128,12 @@ func templatesActionsTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/actions.tmpl", size: 377, mode: os.FileMode(438), modTime: time.Unix(1465933577, 0)} + info := bindataFileInfo{name: "templates/actions.tmpl", size: 378, mode: os.FileMode(438), modTime: time.Unix(1466625303, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x56\xd1\x6f\xdb\xb6\x13\x7e\xce\x0f\xf8\xfd\x0f\x1c\x31\xc0\x0e\x96\x50\x1e\xb0\xbd\xa4\x92\x87\x36\xc9\x80\x02\x69\x56\x34\xdd\xc3\x9e\x0c\x5a\x3c\x5b\x4c\x29\x52\x23\x29\xa7\x9e\xe1\xff\x7d\x47\x52\x8a\x14\xbb\x31\x50\x60\x41\x00\x53\xba\xe3\x77\x77\x1f\xbf\x3b\x2a\xff\xe1\xe6\x8f\xeb\xcf\x7f\x7d\xbc\x25\x95\xaf\xd5\xfc\xff\xff\xcb\xbb\xdf\xb3\xbc\x02\x2e\xc2\xe2\x2c\xf7\xd2\x2b\x98\xef\x76\xec\x9e\xd7\xb0\xdf\xe7\x59\x7a\x11\x6d\x35\x78\x4e\x34\xbe\x2f\xe8\x46\xc2\x53\x63\xac\xa7\xa4\x34\xda\x83\xf6\x05\x7d\x92\xc2\x57\x85\x80\x8d\x2c\xe1\x32\x3e\x5c\x10\xa9\xa5\x97\x5c\x5d\xba\x92\x2b\x28\x7e\x66\x33\x1a\x91\xce\x72\x25\xf5\x17\x52\x59\x58\x15\xb4\xf2\xbe\x71\x57\x59\xb6\x42\x20\xc7\xd6\xc6\xac\x15\xf0\x46\x3a\x56\x9a\x3a\x93\x08\xff\xdb\x8a\xd7\x52\x6d\x8b\x0f\xdc\x83\x45\xb4\x9f\xde\xe3\x4b\x47\x89\x05\x55\x50\xe7\xb7\x0a\x5c\x05\xe0\x8f\xa1\x27\x27\xa1\x4b\xe7\x7a\xe4\x4f\x66\x69\xbc\xb9\xfa\x65\x36\xbb\xf8\x75\x36\x9b\x44\xe4\xc9\x80\x3c\x21\x7e\xdb\x40\x31\xf1\xf0\xd5\x87\x6d\x93\x18\x89\x90\x14\xea\x30\x8d\xae\xac\xdd\x8e\xb0\x6b\xa3\x57\x72\xcd\xde\x71\x07\x7f\x7e\xba\x23\xfb\x7d\xb6\x58\x49\x05\x35\xd7\x7c\x8d\xa5\x20\x71\x56\x73\x15\x20\xb3\x04\xc0\x70\xd9\xd7\xe1\x4a\x2b\x1b\x4f\x9c\x2d\xbf\x0b\xec\xd1\x65\xbc\x69\x94\x2c\xb9\x97\x46\xb3\x47\xc4\xcb\xb3\x84\x95\x80\x11\x4b\xae\x88\x86\x67\xc4\x87\x10\xfa\x21\xe4\x4e\x28\x45\xdc\x3c\xe6\x32\x1f\xc5\x1c\x3c\x82\x22\x9e\xcd\xa0\x05\xba\x07\xfd\x64\xbd\x80\xf2\xa5\x11\x5b\x5c\x10\xfc\x8b\xaa\x02\xdb\x95\x23\xe4\x26\xad\x42\x02\x3f\x2a\x24\xee\xaa\x20\xec\xa3\x45\xbd\x98\xd6\xdd\x05\x26\x23\xd6\x38\xc3\xe8\x46\x29\x06\xe5\x03\xab\x68\x82\xbf\x3b\x53\x16\xf2\xcd\x76\x3b\x50\x0e\x70\xc5\x58\x86\xff\x28\xde\x31\xec\x7e\xff\x9c\x2a\x52\x81\x69\x90\x52\x71\xe7\x0a\xca\xcb\xc0\x10\x25\x52\x14\xb4\xc1\x0d\x68\x95\xbd\xad\xee\xb4\x76\x29\xa3\xd6\xe6\xae\x5d\x0a\x69\xa1\xf4\xc6\x6e\x17\xdc\x5a\xf3\xb4\x50\xb0\xf2\x79\x26\x91\xdd\x50\x5a\x9e\xf1\x48\x49\x4a\x24\xd5\x71\x1c\x8c\x08\xe9\xf8\x52\x81\xf8\x8f\xa2\x8e\x0f\x21\x04\x6c\xe6\xc7\x4c\x1d\x0a\x87\x76\x9c\xf5\xb9\x7e\x53\x5b\x23\xca\x7e\x47\x91\x91\x0f\x49\x65\xa1\x4a\x32\x08\x28\xcc\x88\x70\x08\x78\x40\xaf\xd6\x50\x56\xb0\xb1\x46\x2f\xac\x5c\x57\x31\xf3\xb0\x3f\xed\x0c\x62\x6a\x0e\x6a\x48\x75\x8d\x84\xca\xde\xbb\x1b\x69\x7b\xeb\xa0\xa2\x7c\x65\x6c\xdd\xad\xcf\x4e\x50\x08\xdc\x96\x55\x8c\x9b\x4b\xdd\xb4\x3e\xf5\x32\x0d\xbd\x4c\x49\xa3\x78\x09\x95\x51\x28\xd3\x82\x3e\x44\x57\xda\xe3\x67\xa3\x00\xaf\xc9\x26\x8c\xc1\x53\x07\x18\xec\x8b\xd0\x06\x38\x29\x60\x38\xb6\xd3\xa0\x6d\xa3\x0c\x17\xa7\x60\x43\xdf\x2f\x92\xdb\x01\xe8\x4b\xfa\xc6\x6a\xc4\x47\x0f\x35\x16\xec\xf1\xc8\x52\x38\x9c\xa1\x6c\x64\xee\x4f\x21\xf6\x6e\xf6\xdc\xbc\xc1\x3c\x3e\x8a\x6e\x47\xcc\x3e\xa4\xeb\x8d\x51\x4b\x6e\xe9\x51\x9f\xbf\x56\xdf\x92\x97\x5f\x4e\x55\x97\x84\x1e\xbc\x8e\x18\x43\x7d\xbb\x86\xeb\x08\xe3\x40\x61\x67\x80\xb8\xd4\x6d\xbd\x04\x8c\x3f\xc3\xd1\x84\xc6\x39\xe9\x2d\x2c\xc8\xeb\x1b\xb4\x9c\xe0\x61\x70\x1c\x11\xd2\x51\x52\x73\xa9\xbb\xd1\x46\xc8\x0b\x98\xee\x0e\x44\x98\x1b\x8e\x57\xe4\x40\x62\xb7\x25\xaa\xd5\xf8\x7e\x16\x3e\x80\xdd\x80\x20\x4f\xd2\x57\x04\xfb\x35\x5e\x20\xda\x98\x06\x34\x58\xa2\x0d\xb6\x2f\x58\x8b\x15\x1d\x5c\x90\x25\x17\x62\xeb\xc2\x5e\x1b\x2e\x30\x3a\xbf\x0e\x2f\x62\x4b\x72\xcc\xf4\x3b\x90\xd6\x18\xb9\x5d\xc6\x5b\xb0\xe2\xa5\x90\xdc\x25\xf0\xcb\xd1\x85\x72\xdc\xf8\x2c\x11\x34\xaa\xa4\xbf\xa3\x86\x96\xca\x1e\xf9\x86\xa7\xb7\x9d\x20\x56\xad\x4e\xa3\x4f\x19\xfc\x08\x90\xff\x00\x52\x04\x5e\xd6\x30\x85\xf0\x7d\x20\xe0\xeb\x05\xe1\xf6\x9c\xec\xd2\x11\xa3\xcc\xa6\xc0\x02\xd4\x75\x22\x95\x14\x45\x41\x5a\xf4\x5b\x61\x0b\x89\x67\xbf\x33\x0b\xbe\xb5\xfa\x4d\x7a\xea\xe6\xdf\x86\x5b\x22\x48\x81\xb3\xe9\x89\x84\x30\x88\xb4\x06\xff\xd6\x7b\x2b\x97\x2d\x3e\x4e\x44\x17\x7b\x72\x7e\xfe\x66\x88\x27\xdd\x3d\xbf\x9f\x8a\xf3\x01\xfc\x00\x64\x94\x4e\xbf\xef\x95\x8d\x2f\xd3\xea\xf3\xea\x7e\x0e\xea\x22\x82\x79\x73\x17\x58\x81\x07\xcc\x50\xaf\xa7\x1d\x78\x72\x0f\xc5\x84\x5c\xef\xa4\x0b\xce\x6f\xad\xe5\x5b\xd6\x58\xfc\x50\x09\x74\x33\x87\x57\x3c\x30\xdc\xac\xa6\xc2\x94\x6d\x8d\x90\xa1\xd8\x5b\x3c\x40\x5c\xba\x77\xdb\xcf\x7c\x1d\xa6\xec\x94\x06\x10\xda\x17\xdc\x23\x32\x9c\x6e\xb7\xbc\xac\xa6\x87\xc7\x92\xfc\xc6\x9f\x0c\x79\xd6\x5d\xea\x38\x14\xd2\x07\xe3\xbf\x01\x00\x00\xff\xff\xad\xb8\xd5\x81\x4a\x0a\x00\x00") +var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xac\x56\x51\x8f\xdb\x36\x0c\x7e\xbe\x01\xfb\x0f\xaa\x30\x20\x0f\xab\xad\x0c\xd8\x5e\x0e\x76\x06\xec\xae\xc3\x0a\xb4\x5b\xd1\xdb\x30\xec\x29\x50\x6c\xda\x56\x2b\x4b\x9e\x24\xe7\x1a\x04\xf9\xef\xa3\x64\x39\xc9\x39\x8d\xd1\x0e\x57\x14\x38\xc7\xa4\x3e\x92\x1f\xf9\xd1\xca\x5e\xdc\xff\x71\xf7\xe7\x3f\xef\x5e\x91\xc6\xb5\x72\xf5\xed\x37\x59\xfc\x7b\x93\x35\xc0\x4b\xff\x70\x93\x39\xe1\x24\xac\xf6\xfb\xf4\x77\xde\xc2\xe1\x90\xb1\xe1\x45\xb0\xb5\xe0\x38\x51\xf8\x3e\xa7\x5b\x01\x8f\x9d\x36\x8e\x92\x42\x2b\x07\xca\xe5\xf4\x51\x94\xae\xc9\x4b\xd8\x8a\x02\x92\xf0\xe3\x25\x11\x4a\x38\xc1\x65\x62\x0b\x2e\x21\xff\x21\x5d\xd2\x80\x74\x93\x49\xa1\x3e\x92\xc6\x40\x95\xd3\xc6\xb9\xce\xde\x32\x56\x21\x90\x4d\x6b\xad\x6b\x09\xbc\x13\x36\x2d\x74\xcb\x04\xc2\xff\x5c\xf1\x56\xc8\x5d\xfe\x96\x3b\x30\x88\xf6\xfd\x6b\x7c\x69\x29\x31\x20\x73\x6a\xdd\x4e\x82\x6d\x00\xdc\x25\xf4\x62\x16\xba\xb0\x76\x44\x7e\xaf\x37\xda\xe9\xdb\x1f\x97\xcb\x97\x3f\x2d\x97\x8b\x80\xbc\x38\x21\x2f\x88\xdb\x75\x90\x2f\x1c\x7c\x72\xfe\xd8\x22\x44\x22\x64\x08\x35\x4d\x23\x96\xb5\xdf\x93\xf4\x4e\xab\x4a\xd4\xe9\x2f\xdc\xc2\x5f\xef\xdf\x90\xc3\x81\xad\x2b\x21\xa1\xe5\x8a\xd7\x58\x0a\x12\x67\x14\x97\x1e\x92\x0d\x00\x29\x3e\x8e\x75\xd8\xc2\x88\xce\x11\x6b\x8a\xaf\x02\xfb\x60\x19\xef\x3a\x29\x0a\xee\x84\x56\xe9\x07\xc4\xcb\xd8\x80\x35\x00\x23\x96\xa8\x88\x82\x23\xe2\x83\x0f\xfd\xe0\x73\x27\x94\x22\x6e\x16\x72\x59\x9d\xc5\x3c\x79\xf8\x89\x38\x9a\x41\x95\xe8\x7e\x06\x3a\xfa\xff\xd6\xd7\xfa\x95\xe2\x1b\x09\x47\x87\x9b\xec\x45\x92\x10\x6f\x20\x9d\xec\x6b\xa1\x88\x75\x7d\x55\x91\x24\x59\x45\xfb\xff\x20\xb3\x41\xb8\x79\x16\xbf\x88\xc6\x27\x30\x5f\xc2\xdf\xb1\xf0\x8c\x8d\xca\xc9\x36\xba\xdc\xe1\x03\xc1\x7f\x41\x4e\x60\x62\x1f\x4b\xb1\x8d\xb9\xe0\xc9\xef\x24\x16\x79\x9b\x93\xf4\x9d\x41\xa1\xe8\xde\xbe\xf1\x55\x8f\x1c\x1d\x5b\x13\xdc\x28\x45\xb6\xf9\x89\x01\x34\xc1\xbf\xd1\xc4\x7c\xa3\xd8\x7e\x0f\xd2\x02\x3e\xa5\x29\xc3\xff\xa8\xda\x73\xd8\xc3\xe1\x98\x2a\xd6\x80\x69\x90\x42\x72\x6b\x73\xca\x0b\x5f\x1a\x25\xa2\xcc\x69\x87\x07\xd0\x2a\x46\x5b\x1b\x45\x96\x88\x20\xb2\x95\xed\x37\xa5\x30\x50\x38\x6d\x76\x6b\x6e\x8c\x7e\x5c\x4b\xa8\x5c\xc6\x04\xd2\xe2\x4b\xcb\x18\x0f\xb3\x30\x24\x12\x49\xbf\x08\x46\x4a\x61\xc3\x3c\x3c\x53\xd4\xa7\xd3\x77\x93\x75\xab\x4b\xa6\xa6\xad\xa6\x91\xb3\x31\xd7\xcf\x4e\xc3\x19\x65\xbf\xa2\xba\xc8\xdb\x41\x5e\xbe\x4a\x72\x52\x8e\x5f\x8e\xbe\x09\xd8\xa0\xab\x35\x14\x0d\x6c\x8d\x56\x6b\x23\xea\x26\x64\xee\xcf\x0f\x27\xbd\x8a\xba\x49\x0d\x43\x5d\x93\x91\x89\xb2\x7a\x6d\xef\x85\x19\xfd\x2a\x6d\xda\x71\xb8\xaf\x13\x08\xdc\x14\x4d\x88\x9a\x09\xd5\xf5\x6e\x58\x61\xd4\xaf\x30\x8a\x0a\xe4\x05\x34\x5a\xe2\x90\xe6\xf4\x21\xb8\x8e\x5b\x87\x9d\xe0\xaf\x8d\x8c\xdf\xfd\x73\xcd\xf3\xf6\xb5\x97\x00\x2a\x1a\x4e\x2d\x9b\xc5\xec\x3b\xa9\x79\x39\x87\xea\x77\xdd\x7a\x70\x9b\x60\x4e\xa6\x0f\x7f\x3a\x68\xb1\x44\x87\x2d\x1a\x62\xe0\xc7\x22\x3d\x33\x8f\xac\x3f\xcf\xe6\x42\xbd\x5f\x29\xca\x82\x73\x42\xd5\x76\x76\xd2\xa3\xcf\xa4\xa6\xeb\xa0\x52\xd7\xba\x77\x73\x90\xf0\x49\xb8\xb5\xd3\x6b\x5c\x63\x9f\x61\xea\x72\xe2\xc2\xca\x62\xc7\x9d\xe5\x6d\xe7\x73\x17\xdd\x43\x3e\x3e\x01\xa7\xb5\xdc\x70\x43\x2f\xd6\xdb\xb5\x8c\x37\xbc\xf8\x38\x97\xef\xa0\x6f\xef\x35\x49\x37\xc8\xda\x76\x5c\x45\x36\x25\x2e\x04\x28\x13\xd5\xb7\x1b\xc0\xf8\x4b\xdc\xcb\x68\x5c\x91\xd1\x92\x7a\x55\x4d\xc5\x34\x3f\x0e\x27\xc7\x33\x6e\x02\x21\x2d\x17\x2a\x92\x43\xc8\x13\x90\x78\xe3\x41\x90\x7b\x8e\x17\xa2\xe3\x09\x16\x8f\x04\x8d\x6a\x37\x7e\x00\x1e\xc0\x6c\x71\x9a\x1e\x85\x6b\x08\x2e\xa9\xf0\x85\x53\x5a\x77\xa0\xc0\x10\xa5\x71\x67\x81\x31\x58\xcf\xe4\x3a\x54\xf0\xb2\xdc\x59\x7f\xd6\xf8\xeb\x0a\x5d\xdd\xf9\x17\x61\x0f\x71\xcc\xf3\x2b\x90\x6a\x8c\xdc\x6f\xc2\x9d\xa7\xe1\x45\x29\xb8\x1d\xc0\x93\xb3\xeb\xc3\xe5\xb6\x4b\xc9\x9c\x32\xfe\xf6\xd5\x70\x52\x49\xbe\xd5\xbd\x21\xba\x7a\xfe\x84\x7c\xc0\x90\xc8\x93\xa9\xf5\x0b\x6a\xe4\x36\x63\xf1\xa3\x8b\xd3\x3b\xdc\x64\xff\x0b\x00\x00\xff\xff\x20\x2b\x3d\x87\xe3\x0a\x00\x00") func templatesBaseTmplBytes() ([]byte, error) { return bindataRead( @@ -148,7 +148,7 @@ func templatesBaseTmpl() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "templates/base.tmpl", size: 2634, mode: os.FileMode(438), modTime: time.Unix(1465976767, 0)} + info := bindataFileInfo{name: "templates/base.tmpl", size: 2787, mode: os.FileMode(438), modTime: time.Unix(1466625777, 0)} a := &asset{bytes: bytes, info: info} return a, nil } diff --git a/page.go b/page.go index 5082c4da..e3174142 100644 --- a/page.go +++ b/page.go @@ -1,8 +1,6 @@ package filemanager import ( - "bufio" - "bytes" "encoding/json" "html/template" "log" @@ -102,16 +100,18 @@ func (p *Page) AddTemplate(name string, assets AssetFunc, functions template.Fun // PrintAsHTML formats the page in HTML and executes the template func (p Page) PrintAsHTML(w http.ResponseWriter) (int, error) { - var buffer bytes.Buffer - writer := bufio.NewWriter(&buffer) - err := p.Tpl.Execute(writer, p.Info) + // var buffer bytes.Buffer + //writer := bufio.NewWriter(&buffer) + err := p.Tpl.Execute(w, p.Info) + + w.Header().Set("Content-Type", "text/html; charset=utf-8") if err != nil { return http.StatusInternalServerError, err } - w.Header().Set("Content-Type", "text/html; charset=utf-8") - buffer.WriteTo(w) + // _, err = buffer.WriteTo(w) + // w.Write(buffer.Bytes()) return http.StatusOK, nil } diff --git a/setup.go b/setup.go index 1dd3be5d..16b26235 100644 --- a/setup.go +++ b/setup.go @@ -33,10 +33,11 @@ func setup(c *caddy.Controller) error { // Config is a configuration for browsing in a particualr path. type Config struct { - PathScope string - Root http.FileSystem - BaseURL string - StyleSheet string + PathScope string + Root http.FileSystem + BaseURL string + StyleSheet string // Costum stylesheet + HugoEnabled bool // This must be only used by Hugo plugin } // parseConfiguration parses the configuration set by the user so it can @@ -55,7 +56,7 @@ func parseConfiguration(c *caddy.Controller) ([]Config, error) { } for c.Next() { - var cfg = Config{PathScope: ".", BaseURL: ""} + var cfg = Config{PathScope: ".", BaseURL: "", HugoEnabled: false} for c.NextBlock() { switch c.Val() { case "show":