Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
1dda01d5
Commit
1dda01d5
authored
Dec 06, 2018
by
Dominik Hebeler
Browse files
Added Ellipsis to cut strings in description of results
parent
809e6ab4
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
1dda01d5
...
...
@@ -42,7 +42,7 @@ class Result
if
(
strlen
(
$this
->
descr
)
>
150
)
{
$this
->
descr
=
wordwrap
(
$this
->
descr
,
150
);
$this
->
descr
=
substr
(
$this
->
descr
,
0
,
strpos
(
$this
->
descr
,
"
\n
"
));
$this
->
descr
.
=
"…"
;
// Ellipsis character
}
$this
->
gefVon
=
trim
(
$gefVon
);
$this
->
gefVonLink
=
trim
(
$gefVonLink
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment