BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
4d881ac6
Commit
4d881ac6
authored
Apr 07, 2017
by
Nur Rony
Committed by
Jacob Schatz
Apr 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shows go back link only when history is available
parent
034c8885
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
5 deletions
+80
-5
27580-fix-show-go-back.yml
changelogs/unreleased/27580-fix-show-go-back.yml
+4
-0
404.html
public/404.html
+15
-1
422.html
public/422.html
+16
-1
500.html
public/500.html
+15
-1
502.html
public/502.html
+15
-1
503.html
public/503.html
+15
-1
No files found.
changelogs/unreleased/27580-fix-show-go-back.yml
0 → 100644
View file @
4d881ac6
---
title
:
Shows 'Go Back' link only when browser history is available
merge_request
:
9017
author
:
public/404.html
View file @
4d881ac6
...
...
@@ -57,6 +57,11 @@
.container
{
margin
:
auto
20px
;
}
.go-back
{
display
:
none
;
}
</style>
</head>
...
...
@@ -71,7 +76,16 @@
<hr
/>
<p>
Make sure the address is correct and that the page hasn't moved.
</p>
<p>
Please contact your GitLab administrator if you think this is a mistake.
</p>
<a
href=
"javascript:history.back()"
>
Go back
</a>
<a
href=
"javascript:history.back()"
class=
"js-go-back go-back"
>
Go back
</a>
</div>
<script>
(
function
()
{
var
goBack
=
document
.
querySelector
(
'.js-go-back'
);
if
(
history
.
length
>
1
)
{
goBack
.
style
.
display
=
'inline'
;
}
})();
</script>
</body>
</html>
public/422.html
View file @
4d881ac6
...
...
@@ -57,6 +57,11 @@
.container
{
margin
:
auto
20px
;
}
.go-back
{
display
:
none
;
}
</style>
</head>
...
...
@@ -71,7 +76,17 @@
<hr
/>
<p>
Make sure you have access to the thing you tried to change.
</p>
<p>
Please contact your GitLab administrator if you think this is a mistake.
</p>
<a
href=
"javascript:history.back()"
>
Go back
</a>
<a
href=
"javascript:history.back()"
class=
"js-go-back go-back"
>
Go back
</a>
</div>
<script>
(
function
()
{
var
goBack
=
document
.
querySelector
(
'.js-go-back'
);
if
(
history
.
length
>
1
)
{
goBack
.
style
.
display
=
'inline'
;
}
})();
</script>
</body>
</html>
public/500.html
View file @
4d881ac6
...
...
@@ -57,6 +57,11 @@
.container
{
margin
:
auto
20px
;
}
.go-back
{
display
:
none
;
}
</style>
</head>
...
...
@@ -71,7 +76,16 @@
<hr
/>
<p>
Try refreshing the page, or going back and attempting the action again.
</p>
<p>
Please contact your GitLab administrator if this problem persists.
</p>
<a
href=
"javascript:history.back()"
>
Go back
</a>
<a
href=
"javascript:history.back()"
class=
"js-go-back go-back"
>
Go back
</a>
</div>
<script>
(
function
()
{
var
goBack
=
document
.
querySelector
(
'.js-go-back'
);
if
(
history
.
length
>
1
)
{
goBack
.
style
.
display
=
'inline'
;
}
})();
</script>
</body>
</html>
public/502.html
View file @
4d881ac6
...
...
@@ -57,6 +57,11 @@
.container
{
margin
:
auto
20px
;
}
.go-back
{
display
:
none
;
}
</style>
</head>
...
...
@@ -71,7 +76,16 @@
<hr
/>
<p>
Try refreshing the page, or going back and attempting the action again.
</p>
<p>
Please contact your GitLab administrator if this problem persists.
</p>
<a
href=
"javascript:history.back()"
>
Go back
</a>
<a
href=
"javascript:history.back()"
class=
"js-go-back go-back"
>
Go back
</a>
</div>
<script>
(
function
()
{
var
goBack
=
document
.
querySelector
(
'.js-go-back'
);
if
(
history
.
length
>
1
)
{
goBack
.
style
.
display
=
'inline'
;
}
})();
</script>
</body>
</html>
public/503.html
View file @
4d881ac6
...
...
@@ -57,6 +57,11 @@
.container
{
margin
:
auto
20px
;
}
.go-back
{
display
:
none
;
}
</style>
</head>
...
...
@@ -71,7 +76,16 @@
<hr
/>
<p>
Try refreshing the page, or going back and attempting the action again.
</p>
<p>
Please contact your GitLab administrator if this problem persists.
</p>
<a
href=
"javascript:history.back()"
>
Go back
</a>
<a
href=
"javascript:history.back()"
class=
"js-go-back go-back"
>
Go back
</a>
</div>
<script>
(
function
()
{
var
goBack
=
document
.
querySelector
(
'.js-go-back'
);
if
(
history
.
length
>
1
)
{
goBack
.
style
.
display
=
'inline'
;
}
})();
</script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment