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
8a66d605
Commit
8a66d605
authored
Nov 17, 2020
by
Miguel Rincon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Links in logs keep same color of text
parent
064cc44e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/assets/javascripts/jobs/components/log/line.vue
app/assets/javascripts/jobs/components/log/line.vue
+1
-0
spec/frontend/jobs/components/log/line_spec.js
spec/frontend/jobs/components/log/line_spec.js
+6
-0
No files found.
app/assets/javascripts/jobs/components/log/line.vue
View file @
8a66d605
...
...
@@ -38,6 +38,7 @@ export default {
{
attrs
:
{
href
:
chunk
,
class
:
'
gl-reset-color! gl-text-decoration-underline
'
,
rel
:
'
nofollow noopener noreferrer
'
,
// eslint-disable-line @gitlab/require-i18n-strings
},
},
...
...
spec/frontend/jobs/components/log/line_spec.js
View file @
8a66d605
...
...
@@ -131,6 +131,12 @@ describe('Job Log Line', () => {
expect
(
findLink
().
attributes
().
rel
).
toBe
(
'
nofollow noopener noreferrer
'
);
});
it
(
'
renders a link with corresponding styles
'
,
()
=>
{
createComponent
(
mockProps
({
text
:
httpsUrl
}));
expect
(
findLink
().
classes
()).
toEqual
([
'
gl-reset-color!
'
,
'
gl-text-decoration-underline
'
]);
});
it
(
'
render links surrounded by text
'
,
()
=>
{
createComponent
(
mockProps
({
text
:
`My HTTP url:
${
httpUrl
}
and my HTTPS url:
${
httpsUrl
}
are here.`
}),
...
...
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