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 f8693af1
authored
7 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add button to navigate back
1 parent
6ee80c94
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
frontend/index.html
frontend/js/app.js
frontend/index.html
View file @
f8693af
...
...
@@ -40,6 +40,9 @@
<div
style=
"padding: 7px;"
>
<span>
Surfer
</span>
</div>
<div>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-arrow-left"
v-show=
"pathParts.slice(-1).length"
@
click=
"onUp"
></el-button>
</div>
<div
style=
"flex-grow: 2; padding: 0 7px;"
v-show=
"session.valid"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item><a
href=
"#/"
>
Path /
</a></el-breadcrumb-item>
...
...
This diff is collapsed.
Click to expand it.
frontend/js/app.js
View file @
f8693af
...
...
@@ -124,10 +124,6 @@ function open(row, event, column) {
window
.
open
(
encode
(
path
));
}
function
up
()
{
window
.
location
.
hash
=
sanitize
(
app
.
path
.
split
(
'/'
).
slice
(
0
,
-
1
).
filter
(
function
(
p
)
{
return
!!
p
;
}).
join
(
'/'
));
}
function
uploadFiles
(
files
)
{
if
(
!
files
||
!
files
.
length
)
return
;
...
...
@@ -328,7 +324,9 @@ var app = new Vue({
return
filesize
(
cellValue
);
},
loadDirectory
:
loadDirectory
,
up
:
up
,
onUp
:
function
()
{
window
.
location
.
hash
=
sanitize
(
app
.
path
.
split
(
'/'
).
slice
(
0
,
-
1
).
filter
(
function
(
p
)
{
return
!!
p
;
}).
join
(
'/'
));
},
open
:
open
,
drop
:
drop
,
dragOver
:
dragOver
...
...
This diff is collapsed.
Click to expand it.
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