Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georgios B
funkwhale
Commits
f7fb0e69
Verified
Commit
f7fb0e69
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed #48: basic 404 error template
parent
20812731
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG
+1
-0
1 addition, 0 deletions
CHANGELOG
front/src/components/PageNotFound.vue
+34
-0
34 additions, 0 deletions
front/src/components/PageNotFound.vue
front/src/router/index.js
+3
-2
3 additions, 2 deletions
front/src/router/index.js
with
38 additions
and
2 deletions
CHANGELOG
+
1
−
0
View file @
f7fb0e69
...
...
@@ -8,6 +8,7 @@ Changelog
- Import: can now specify search template when querying import sources (#45)
- Player: better handling of errors when fetching the audio file (#46)
- Login form: now redirect to previous page after login (#2)
- 404: a decent 404 template, at least (#48)
0.2.4 (2017-12-14)
...
...
This diff is collapsed.
Click to expand it.
front/src/components/PageNotFound.vue
0 → 100644
+
34
−
0
View file @
f7fb0e69
<
template
>
<div
class=
"main pusher"
>
<div
class=
"ui vertical stripe segment"
>
<div
class=
"ui text container"
>
<h1
class=
"ui huge header"
>
<i
class=
"warning icon"
></i>
<div
class=
"content"
>
<strike>
Whale
</strike>
Page not found!
</div>
</h1>
<p>
We're sorry, the page you asked for does not exists.
</p>
<p>
Requested URL:
<a
:href=
"path"
>
{{
path
}}
</a></p>
<router-link
class=
"ui icon button"
to=
"/"
>
Go to home page
<i
class=
"right arrow icon"
></i>
</router-link>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
:
function
()
{
return
{
path
:
window
.
location
.
href
}
}
}
</
script
>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<
style
scoped
>
</
style
>
This diff is collapsed.
Click to expand it.
front/src/router/index.js
+
3
−
2
View file @
f7fb0e69
import
Vue
from
'
vue
'
import
Router
from
'
vue-router
'
import
PageNotFound
from
'
@/components/PageNotFound
'
import
Home
from
'
@/components/Home
'
import
Login
from
'
@/components/auth/Login
'
import
Profile
from
'
@/components/auth/Profile
'
...
...
@@ -72,7 +73,7 @@ export default new Router({
},
{
path
:
'
import/batches/:id
'
,
name
:
'
library.import.batches.detail
'
,
component
:
BatchDetail
,
props
:
true
}
]
}
}
,
{
path
:
'
*
'
,
component
:
PageNotFound
}
]
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment