Commit ee9d1ada by Johannes Zellner

Add upload button

1 parent d3312ed1
Showing with 7 additions and 3 deletions
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
<!-- Collect the nav links, forms, and other content for toggling --> <!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li v-show="session.valid"><a href="#">Upload</a></li>
<li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li> <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li>
</ul> </ul>
</div> </div>
...@@ -63,6 +62,12 @@ ...@@ -63,6 +62,12 @@
<div class="container" v-show="session.valid && !busy" v-cloak> <div class="container" v-show="session.valid && !busy" v-cloak>
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
<center>
<button class="btn btn-primary">Upload</button>
</center>
<br/>
</div>
<div class="col-lg-12">
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><i class="fa fa-home"></i>&nbsp;</li> <li><i class="fa fa-home"></i>&nbsp;</li>
<li v-for="part in pathParts"> <li v-for="part in pathParts">
......
...@@ -55,7 +55,6 @@ function loadDirectory(filePath) { ...@@ -55,7 +55,6 @@ function loadDirectory(filePath) {
app.entries = result.body.entries; app.entries = result.body.entries;
app.path = filePath; app.path = filePath;
app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); app.pathParts = filePath.split('/').filter(function (e) { return !!e; });
console.log(app.pathParts)
}); });
} }
...@@ -64,7 +63,7 @@ function open(entry) { ...@@ -64,7 +63,7 @@ function open(entry) {
if (entry.isDirectory) return loadDirectory(path); if (entry.isDirectory) return loadDirectory(path);
window.location.href = window.location.origin + path; window.open(path);
} }
function up() { function up() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!