prepare release 1.14 (#2495)

* removed un-maintained docker file
* update all packages
* fix deprecations
* only show one line descriptions for customer, projects and activities
* allow to show export column in timesheet listing
This commit is contained in:
Kevin Papst
2021-04-08 18:07:57 +02:00
committed by GitHub
parent 2ce6e815ff
commit af9dea9226
30 changed files with 920 additions and 739 deletions

View File

@@ -69,6 +69,36 @@ final class MarkdownExtension implements RuntimeExtensionInterface
return $content;
}
/**
* Transforms the entities comment (customer, project, activity ...) into a one-liner.
*
* @param string|null $content
* @param bool $fullLength
* @return string
*/
public function commentOneLiner(?string $content, bool $fullLength = false): string
{
if (empty($content)) {
return '';
}
$addHellip = false;
if (!$fullLength && \strlen($content) > 52) {
$content = trim(substr($content, 0, 50));
$addHellip = true;
}
$content = explode(PHP_EOL, $content);
$result = $content[0];
if (\count($content) > 1 || $addHellip) {
$result .= ' …';
}
return $result;
}
/**
* Transforms the timesheet description content into HTML.
*