diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-09 12:42:28 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-09 12:42:28 +0100 |
commit | c491729508872c3ea66af593a31b59edf1f313fa (patch) | |
tree | b88f36b6b910eb3d8582d33be427790a1845f0c8 | |
parent | ac814eede1e9d98071921471eb748233b69dbd5f (diff) | |
download | gitlab-ce-sherlock.tar.gz |
Truncate transaction paths to 70 characterssherlock
This ensures that long URLs don't completely mess up the layout of the
table.
-rw-r--r-- | app/views/sherlock/transactions/index.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/sherlock/transactions/index.html.haml b/app/views/sherlock/transactions/index.html.haml index fb31131ba88..010e1a2a902 100644 --- a/app/views/sherlock/transactions/index.html.haml +++ b/app/views/sherlock/transactions/index.html.haml @@ -27,7 +27,9 @@ - @transactions.each do |trans| %tr %td= trans.type - %td= trans.path + %td + %span{title: trans.path} + = truncate(trans.path, length: 70) %td = trans.duration.round(2) = t('sherlock.seconds') |