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
Léo-Paul Géneau
gitlab-ce
Commits
b4d95002
Commit
b4d95002
authored
Oct 02, 2017
by
Eric Eastwood
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CSS to space external link icon from text
parent
8cf22bab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/assets/stylesheets/pages/tree.scss
app/assets/stylesheets/pages/tree.scss
+2
-0
app/views/projects/artifacts/_tree_file.html.haml
app/views/projects/artifacts/_tree_file.html.haml
+1
-2
No files found.
app/assets/stylesheets/pages/tree.scss
View file @
b4d95002
...
@@ -170,6 +170,8 @@
...
@@ -170,6 +170,8 @@
}
}
.tree-item-file-external-link
{
.tree-item-file-external-link
{
margin-right
:
4px
;
span
{
span
{
text-decoration
:
inherit
;
text-decoration
:
inherit
;
}
}
...
...
app/views/projects/artifacts/_tree_file.html.haml
View file @
b4d95002
...
@@ -6,13 +6,12 @@
...
@@ -6,13 +6,12 @@
%td
.tree-item-file-name
%td
.tree-item-file-name
=
tree_icon
(
'file'
,
blob
.
mode
,
blob
.
name
)
=
tree_icon
(
'file'
,
blob
.
mode
,
blob
.
name
)
=
link_to
path_to_file
,
=
link_to
path_to_file
,
class:
'tree-item-file-external-link js-artifact-tree-tooltip'
,
class:
(
'tree-item-file-external-link js-artifact-tree-tooltip'
if
is_external_link
)
,
target:
(
'_blank'
if
is_external_link
),
target:
(
'_blank'
if
is_external_link
),
rel:
(
'noopener noreferrer'
if
is_external_link
),
rel:
(
'noopener noreferrer'
if
is_external_link
),
title:
(
'Opens in a new window'
if
is_external_link
)
do
title:
(
'Opens in a new window'
if
is_external_link
)
do
%span
.str-truncated
>=
blob
.
name
%span
.str-truncated
>=
blob
.
name
-
if
is_external_link
-
if
is_external_link
=
' '
=
icon
(
'external-link'
)
=
icon
(
'external-link'
)
%td
%td
=
number_to_human_size
(
blob
.
size
,
precision:
2
)
=
number_to_human_size
(
blob
.
size
,
precision:
2
)
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