summaryrefslogtreecommitdiff
path: root/app/views/projects/artifacts/_tree_file.html.haml
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-12-04 11:00:52 +0000
committerPhil Hughes <me@iamphill.com>2017-12-04 11:00:52 +0000
commit6cf76d652d0ae0b77b1250a81aa24e3ce164ccbc (patch)
treefe69c32bb56860f6a0e08ab4c362b0577e77a3bf /app/views/projects/artifacts/_tree_file.html.haml
parent02111f4d4d03246530e8453d669c63cdbe80fb44 (diff)
downloadgitlab-ce-6cf76d652d0ae0b77b1250a81aa24e3ce164ccbc.tar.gz
Add underline hover state to all links
Diffstat (limited to 'app/views/projects/artifacts/_tree_file.html.haml')
-rw-r--r--app/views/projects/artifacts/_tree_file.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/artifacts/_tree_file.html.haml b/app/views/projects/artifacts/_tree_file.html.haml
index a97ddb3c377..cfb91568061 100644
--- a/app/views/projects/artifacts/_tree_file.html.haml
+++ b/app/views/projects/artifacts/_tree_file.html.haml
@@ -6,12 +6,12 @@
%td.tree-item-file-name
= tree_icon('file', blob.mode, blob.name)
- if external_link
- = link_to path_to_file, class: 'tree-item-file-external-link js-artifact-tree-tooltip',
+ = link_to path_to_file, class: 'tree-item-file-external-link js-artifact-tree-tooltip str-truncated',
target: '_blank', rel: 'noopener noreferrer', title: _('Opens in a new window') do
- %span.str-truncated>= blob.name
+ %span>= blob.name
= icon('external-link', class: 'js-artifact-tree-external-icon')
- else
- = link_to path_to_file do
- %span.str-truncated= blob.name
+ = link_to path_to_file, class: 'str-truncated' do
+ %span= blob.name
%td
= number_to_human_size(blob.size, precision: 2)