summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-11-09 12:42:28 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-11-09 12:42:28 +0100
commitc491729508872c3ea66af593a31b59edf1f313fa (patch)
treeb88f36b6b910eb3d8582d33be427790a1845f0c8
parentac814eede1e9d98071921471eb748233b69dbd5f (diff)
downloadgitlab-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.haml4
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')