Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
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
Mar 01, 2016
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add upload button
1 parent
d3312ed1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
app/index.html
app/js/app.js
app/index.html
View file @
ee9d1ad
...
...
@@ -25,7 +25,6 @@
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<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>
</ul>
</div>
...
...
@@ -63,6 +62,12 @@
<div
class=
"container"
v-show=
"session.valid && !busy"
v-cloak
>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<center>
<button
class=
"btn btn-primary"
>
Upload
</button>
</center>
<br/>
</div>
<div
class=
"col-lg-12"
>
<ol
class=
"breadcrumb"
>
<li><i
class=
"fa fa-home"
></i>
</li>
<li
v-for=
"part in pathParts"
>
...
...
app/js/app.js
View file @
ee9d1ad
...
...
@@ -55,7 +55,6 @@ function loadDirectory(filePath) {
app
.
entries
=
result
.
body
.
entries
;
app
.
path
=
filePath
;
app
.
pathParts
=
filePath
.
split
(
'/'
).
filter
(
function
(
e
)
{
return
!!
e
;
});
console
.
log
(
app
.
pathParts
)
});
}
...
...
@@ -64,7 +63,7 @@ function open(entry) {
if
(
entry
.
isDirectory
)
return
loadDirectory
(
path
);
window
.
location
.
href
=
window
.
location
.
origin
+
path
;
window
.
open
(
path
)
;
}
function
up
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment