Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-11-09 14:42:28 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2015-11-09 16:29:10 +0300
commit7f9f07023bbe4393620998d1be46cc65d836d5c8 (patch)
tree8d2009156f64ca589a85baaf25c4cd5299024f55 /app/views/sherlock
parent7b5fd8742e6112491f61f27dcca2d8e441cc33a1 (diff)
Truncate transaction paths to 70 characters
This ensures that long URLs don't completely mess up the layout of the table.
Diffstat (limited to 'app/views/sherlock')
-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')