Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
369d18cb
Commit
369d18cb
authored
Feb 09, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds tooltip for environment name
Adds CSS for child envrionments
parent
d997fe13
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
11 deletions
+29
-11
app/assets/javascripts/environments/components/environment_item.vue
.../javascripts/environments/components/environment_item.vue
+20
-11
app/assets/stylesheets/pages/environments.scss
app/assets/stylesheets/pages/environments.scss
+4
-0
changelogs/unreleased/42922-environment-name.yml
changelogs/unreleased/42922-environment-name.yml
+5
-0
No files found.
app/assets/javascripts/environments/components/environment_item.vue
View file @
369d18cb
<
script
>
<
script
>
import
Timeago
from
'
timeago.js
'
;
import
Timeago
from
'
timeago.js
'
;
import
_
from
'
underscore
'
;
import
_
from
'
underscore
'
;
import
userAvatarLink
from
'
../../vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
{
humanize
}
from
'
../../lib/utils/text_utility
'
;
import
UserAvatarLink
from
'
~/vue_shared/components/user_avatar/user_avatar_link.vue
'
;
import
{
humanize
}
from
'
~/lib/utils/text_utility
'
;
import
ActionsComponent
from
'
./environment_actions.vue
'
;
import
ActionsComponent
from
'
./environment_actions.vue
'
;
import
ExternalUrlComponent
from
'
./environment_external_url.vue
'
;
import
ExternalUrlComponent
from
'
./environment_external_url.vue
'
;
import
StopComponent
from
'
./environment_stop.vue
'
;
import
StopComponent
from
'
./environment_stop.vue
'
;
...
@@ -21,14 +22,18 @@
...
@@ -21,14 +22,18 @@
export
default
{
export
default
{
components
:
{
components
:
{
userAvatarLink
,
UserAvatarLink
,
'
commit-component
'
:
CommitComponent
,
CommitComponent
,
'
actions-component
'
:
ActionsComponent
,
ActionsComponent
,
'
external-url-component
'
:
ExternalUrlComponent
,
ExternalUrlComponent
,
'
stop-component
'
:
StopComponent
,
StopComponent
,
'
rollback-component
'
:
RollbackComponent
,
RollbackComponent
,
'
terminal-button-component
'
:
TerminalButtonComponent
,
TerminalButtonComponent
,
'
monitoring-button-component
'
:
MonitoringButtonComponent
,
MonitoringButtonComponent
,
},
directives
:
{
tooltip
,
},
},
props
:
{
props
:
{
...
@@ -443,7 +448,11 @@
...
@@ -443,7 +448,11 @@
v-if=
"!model.isFolder"
v-if=
"!model.isFolder"
class=
"environment-name flex-truncate-parent table-mobile-content"
class=
"environment-name flex-truncate-parent table-mobile-content"
:href=
"environmentPath"
>
:href=
"environmentPath"
>
<span
class=
"flex-truncate-child"
>
{{
model
.
name
}}
</span>
<span
class=
"flex-truncate-child"
v-tooltip
:title=
"model.name"
>
{{
model
.
name
}}
</span>
</a>
</a>
<span
<span
v-else
v-else
...
...
app/assets/stylesheets/pages/environments.scss
View file @
369d18cb
...
@@ -121,6 +121,10 @@
...
@@ -121,6 +121,10 @@
width
:
100%
;
width
:
100%
;
text-align
:
left
;
text-align
:
left
;
}
}
.environment-child-row
{
padding-left
:
20px
;
}
}
}
}
}
...
...
changelogs/unreleased/42922-environment-name.yml
0 → 100644
View file @
369d18cb
---
title
:
Adds tooltip in environment names to increase readability
merge_request
:
author
:
type
:
fixed
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