diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-10-02 20:03:18 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-10-02 20:03:18 -0500 |
commit | b4d95002af504488af5c5c2117175ec73192c942 (patch) | |
tree | 6b4375b281ef662f2c27f512789e74fabe653c42 /app/views/projects/artifacts/_tree_file.html.haml | |
parent | 8cf22babec40ec8107f53234535d7085851128b8 (diff) | |
download | gitlab-ce-b4d95002af504488af5c5c2117175ec73192c942.tar.gz |
Use CSS to space external link icon from text
Diffstat (limited to 'app/views/projects/artifacts/_tree_file.html.haml')
-rw-r--r-- | app/views/projects/artifacts/_tree_file.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml index 70e3af8b94f..78df1dab9d6 100644 --- a/app/views/projects/artifacts/_tree_file.html.haml +++ b/app/views/projects/artifacts/_tree_file.html.haml @@ -6,13 +6,12 @@ %td.tree-item-file-name = tree_icon('file', blob.mode, blob.name) = 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), rel: ('noopener noreferrer' if is_external_link), title: ('Opens in a new window' if is_external_link) do %span.str-truncated>= blob.name - if is_external_link - = ' ' = icon('external-link') %td = number_to_human_size(blob.size, precision: 2) |