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
Environments
Terraform modules
Monitor
Incidents
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
Andy Craze
funkwhale
Commits
3b307e83
Commit
3b307e83
authored
5 years ago
by
Ciarán Ainsworth
Committed by
Eliot Berriot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "long instance name overlapping next column in footer"
parent
2e2094d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/changelog.d/1012.enhancement
+1
-0
1 addition, 0 deletions
changes/changelog.d/1012.enhancement
front/src/components/Footer.vue
+11
-3
11 additions, 3 deletions
front/src/components/Footer.vue
with
12 additions
and
3 deletions
changes/changelog.d/1012.enhancement
0 → 100644
+
1
−
0
View file @
3b307e83
Changed footer to use instance name if available, and append ellipses if instance URL/Name is too long (#1012)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
front/src/components/Footer.vue
+
11
−
3
View file @
3b307e83
...
...
@@ -3,8 +3,11 @@
<div
class=
"ui container"
>
<div
class=
"ui stackable equal height stackable grid"
>
<section
class=
"four wide column"
>
<h4
class=
"ui header"
>
<translate
translate-context=
"Footer/About/Title"
:translate-params=
"
{instanceName: instanceHostname}" >About %{instanceName}
</translate>
<h4
v-if=
"podName"
class=
"ui header ellipsis"
>
<translate
translate-context=
"Footer/About/Title"
:translate-params=
"
{instanceName: podName}" >About %{instanceName}
</translate>
</h4>
<h4
v-else
class=
"ui header ellipsis"
>
<translate
translate-context=
"Footer/About/Title"
:translate-params=
"
{instanceUrl: instanceHostname}" >About %{instanceUrl}
</translate>
</h4>
<div
class=
"ui link list"
>
<router-link
class=
"item"
to=
"/about"
>
...
...
@@ -71,13 +74,18 @@
import
Vue
from
"
vue
"
import
{
mapState
}
from
"
vuex
"
import
axios
from
'
axios
'
import
_
from
'
@/lodash
'
export
default
{
props
:
[
"
version
"
],
computed
:
{
...
mapState
({
messages
:
state
=>
state
.
ui
.
messages
messages
:
state
=>
state
.
ui
.
messages
,
nodeinfo
:
state
=>
state
.
instance
.
nodeinfo
,
}),
podName
()
{
return
_
.
get
(
this
.
nodeinfo
,
'
metadata.nodeName
'
)
},
instanceHostname
()
{
let
url
=
this
.
$store
.
state
.
instance
.
instanceUrl
let
parser
=
document
.
createElement
(
"
a
"
)
...
...
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