mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-02 02:35:39 +08:00
fix hound
This commit is contained in:
parent
7c2b657b0e
commit
27d3a5097b
1 changed files with 7 additions and 3 deletions
|
@ -4,8 +4,12 @@ module ActivityHelper
|
|||
activity_titles.each do |activity_title|
|
||||
activity_title = activity_title[0]
|
||||
if activity_title.length > Constants::NAME_TRUNCATION_LENGTH
|
||||
title = "<div class='modal-tooltip'>#{truncate(activity_title, length: len)}
|
||||
<span class='modal-tooltiptext'>#{activity_title}</span></div>"
|
||||
title = "<div class='modal-tooltip'>
|
||||
#{truncate(activity_title, length: len)}
|
||||
<span class='modal-tooltiptext'>
|
||||
#{activity_title}
|
||||
</span>
|
||||
</div>"
|
||||
else
|
||||
title = truncate(activity_title, length: len)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue