mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 13:21:29 +00:00
Fixed link formatting error
This commit is contained in:
parent
cafd421d0a
commit
946342bffb
1 changed files with 2 additions and 2 deletions
|
@ -35,9 +35,9 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
str = model.to_s
|
str = model.to_s
|
||||||
if length and str.length > length
|
if length and str.length > length
|
||||||
link_to raw(str.to_s[0, length] + "..."), model, class: model.class.to_s.downcase
|
link_to str.to_s[0, length] + "...", model, class: model.class.to_s.downcase
|
||||||
else
|
else
|
||||||
link_to raw(str), model, class: model.class.to_s.downcase
|
link_to str, model, class: model.class.to_s.downcase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue