Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

PUBLIC / surfer-okd

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit ee9d1ada authored 9 years ago by Johannes Zellner's avatar Johannes Zellner
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Add upload button

1 parent d3312ed1
Show whitespace changes
Inline Side-by-side
Showing with 7 additions and 3 deletions
  • app/index.html
  • app/js/app.js
app/index.html
View file @ee9d1ad
...@@ -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">
......
This diff is collapsed. Click to expand it.
app/js/app.js
View file @ee9d1ad
...@@ -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() {
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
  • Please register or sign in to post a comment