Skip to content

Commit

Permalink
Merge pull request #43 from prajapati-kaushik/8553-track-page-title-c…
Browse files Browse the repository at this point in the history
…ontent-chagnes-in-wiki_event-2

perf: enhance track page title content chagnes in wiki event #8553
  • Loading branch information
prajapati-kaushik authored Jun 11, 2024
2 parents a770cb5 + fdef30a commit 5579528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Controller/WikiEventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public function wikiPageEventsAction(string $wikiName, string $pageName): Respon

$wikiEvents = $this->wikiEventRepository->findByWikiPageId($wikiPage->getId());

usort($wikiEvents, function ($a, $b) {
return $a->getCreatedAt() < $b->getCreatedAt();
});

$data = $wikiRoles;
$data['wikiEvents'] = $wikiEvents;
$data['wiki'] = $wiki;
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/wiki_event/view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<li class="list-group-item">
<strong>{{ key }}</strong>:
{% if key in ['before', 'after'] %}
{{ value|default('')|markdown_to_html }}
<br/> {{ value|default('') }}
{% elseif key == 'createdAt' %}
{{ value|date() }}
{% else %}
Expand Down

0 comments on commit 5579528

Please sign in to comment.