Truncate transaction paths to 70 characters
This ensures that long URLs don't completely mess up the layout of the table.
This commit is contained in:
parent
7b5fd8742e
commit
7f9f07023b
|
@ -27,7 +27,9 @@
|
||||||
- @transactions.each do |trans|
|
- @transactions.each do |trans|
|
||||||
%tr
|
%tr
|
||||||
%td= trans.type
|
%td= trans.type
|
||||||
%td= trans.path
|
%td
|
||||||
|
%span{title: trans.path}
|
||||||
|
= truncate(trans.path, length: 70)
|
||||||
%td
|
%td
|
||||||
= trans.duration.round(2)
|
= trans.duration.round(2)
|
||||||
= t('sherlock.seconds')
|
= t('sherlock.seconds')
|
||||||
|
|
Loading…
Reference in New Issue