Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
grady
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Jan Maximilian Michal
grady
Commits
9a7aafd6
There was a problem fetching the pipeline summary.
Commit
9a7aafd6
authored
7 years ago
by
robinwilliam.hundt
Browse files
Options
Downloads
Patches
Plain Diff
Dynamic brand img url
parent
83201156
No related branches found
No related tags found
1 merge request
!75
Dynamic brand img url
Pipeline
#
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/components/BaseLayout.vue
+8
-1
8 additions, 1 deletion
frontend/src/components/BaseLayout.vue
frontend/src/components/WelcomeJumbotron.vue
+1
-1
1 addition, 1 deletion
frontend/src/components/WelcomeJumbotron.vue
frontend/src/pages/Login.vue
+9
-2
9 additions, 2 deletions
frontend/src/pages/Login.vue
with
18 additions
and
4 deletions
frontend/src/components/BaseLayout.vue
+
8
−
1
View file @
9a7aafd6
...
...
@@ -50,7 +50,8 @@
<v-toolbar-title>
<router-link
to=
"/home"
>
<v-avatar>
<img
src=
"../assets/brand.png"
>
<img
v-if=
"production"
:src=
"productionBrandUrl"
/>
<img
v-else
src=
"../assets/brand.png"
/>
</v-avatar>
</router-link>
</v-toolbar-title>
...
...
@@ -84,6 +85,12 @@
set
:
function
(
collapsed
)
{
this
.
$store
.
commit
(
uiMut
.
SET_SIDEBAR_COLLAPSED
,
collapsed
)
}
},
production
()
{
return
process
.
env
.
NODE_ENV
===
'
production
'
},
productionBrandUrl
()
{
return
`https://
${
window
.
location
.
host
}
/static/img/brand.png`
}
},
methods
:
{
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/WelcomeJumbotron.vue
+
1
−
1
View file @
9a7aafd6
...
...
@@ -30,7 +30,7 @@
name
:
'
welcome-jumbotron
'
,
data
()
{
return
{
gradient
:
'
to bottom, #1A237E, #
97A1
DD
'
gradient
:
'
to bottom, #1A237E, #
5753
DD
'
}
}
}
...
...
This diff is collapsed.
Click to expand it.
frontend/src/pages/Login.vue
+
9
−
2
View file @
9a7aafd6
...
...
@@ -2,7 +2,8 @@
<v-container
fill-height
>
<v-layout
align-center
justify-center
>
<v-flex
text-xs-center
xs8
sm6
md4
lg2
>
<img
src=
"../assets/brand.png"
/>
<img
v-if=
"production"
:src=
"productionBrandUrl"
/>
<img
v-else
src=
"../assets/brand.png"
/>
<h3
class=
"pt-3"
>
Log in
</h3>
<v-alert
outline
...
...
@@ -52,7 +53,13 @@
...
mapState
({
msg
:
state
=>
state
.
authentication
.
message
,
userRole
:
state
=>
state
.
authentication
.
userRole
})
}),
production
()
{
return
process
.
env
.
NODE_ENV
===
'
production
'
},
productionBrandUrl
()
{
return
`https://
${
window
.
location
.
host
}
/static/img/brand.png`
}
},
methods
:
{
...
mapActions
([
...
...
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