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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
398968c0
Commit
398968c0
authored
Aug 25, 2020
by
Sarah Groff Hennigh-Palermo
Committed by
Simon Knox
Aug 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncate job title on log page
parent
ac26955d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
app/assets/javascripts/jobs/components/sidebar.vue
app/assets/javascripts/jobs/components/sidebar.vue
+7
-1
app/assets/javascripts/vue_shared/components/tooltip_on_truncate.vue
...javascripts/vue_shared/components/tooltip_on_truncate.vue
+2
-2
changelogs/unreleased/230452-truncate-job-title.yml
changelogs/unreleased/230452-truncate-job-title.yml
+5
-0
No files found.
app/assets/javascripts/jobs/components/sidebar.vue
View file @
398968c0
...
...
@@ -4,6 +4,7 @@ import { mapActions, mapState } from 'vuex';
import
{
GlLink
,
GlDeprecatedButton
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
__
,
sprintf
}
from
'
~/locale
'
;
import
timeagoMixin
from
'
~/vue_shared/mixins/timeago
'
;
import
TooltipOnTruncate
from
'
~/vue_shared/components/tooltip_on_truncate.vue
'
;
import
{
timeIntervalInWords
}
from
'
~/lib/utils/datetime_utility
'
;
import
DetailRow
from
'
./sidebar_detail_row.vue
'
;
import
ArtifactsBlock
from
'
./artifacts_block.vue
'
;
...
...
@@ -24,6 +25,7 @@ export default {
JobsContainer
,
GlLink
,
GlDeprecatedButton
,
TooltipOnTruncate
,
},
mixins
:
[
timeagoMixin
],
props
:
{
...
...
@@ -111,7 +113,11 @@ export default {
<div
class=
"sidebar-container"
>
<div
class=
"blocks-container"
>
<div
class=
"block d-flex flex-nowrap align-items-center"
>
<h4
class=
"my-0 mr-2 text-break-word"
>
{{
job
.
name
}}
</h4>
<tooltip-on-truncate
:title=
"job.name"
truncate-target=
"child"
><h4
class=
"my-0 mr-2 gl-text-truncate"
>
{{
job
.
name
}}
</h4>
</tooltip-on-truncate>
<div
class=
"flex-grow-1 flex-shrink-0 text-right"
>
<gl-link
v-if=
"job.retry_path"
...
...
app/assets/javascripts/vue_shared/components/tooltip_on_truncate.vue
View file @
398968c0
...
...
@@ -61,9 +61,9 @@ export default {
v-tooltip
:title=
"title"
:data-placement=
"placement"
class=
"js-show-tooltip"
class=
"js-show-tooltip
gl-min-w-0
"
>
<slot></slot>
</span>
<span
v-else
>
<slot></slot>
</span>
<span
v-else
class=
"gl-min-w-0"
>
<slot></slot>
</span>
</
template
>
changelogs/unreleased/230452-truncate-job-title.yml
0 → 100644
View file @
398968c0
---
title
:
Truncate job title on log page
merge_request
:
40107
author
:
type
:
changed
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