Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/ibexa_dashboard.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="8e0df121f055f3d6217967eaae5b9530d3ed4e3d" resname="dashboard.breadcrumbs.dashboard">
<source>Dashboard</source>
<target state="new">Dashboard</target>
<note>key: dashboard.breadcrumbs.dashboard</note>
</trans-unit>
<trans-unit id="b9b7f78038b71a27e7b4c2d2978a3946bb48c90b" resname="dashboard.create">
<source>Create content</source>
<target state="new">Create content</target>
Expand Down
5 changes: 5 additions & 0 deletions src/bundle/Resources/translations/ibexa_menu.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@
<target state="new">Dashboard</target>
<note>key: main__dashboard</note>
</trans-unit>
<trans-unit id="cfbeced5482be25b000de224837882379173d9a4" resname="main__drafts">
<source>Drafts</source>
<target state="new">Drafts</target>
<note>key: main__drafts</note>
</trans-unit>
<trans-unit id="5376b08940439deec5b89c3df17b09ab8f4ed252" resname="main__trash">
<source>Trash</source>
<target state="new">Trash</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

{% block body_class %}ibexa-dashboard{% endblock %}

{% block breadcrumbs %}
{% include '@ibexadesign/ui/breadcrumbs.html.twig' with { items: [
{ value: 'dashboard.breadcrumbs.dashboard'|trans|desc('Dashboard') }
]} %}
{% endblock %}

{% block context_menu %}
<div class="ibexa-dashboard__create">
<button
Expand Down
16 changes: 16 additions & 0 deletions src/lib/Menu/MainMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class MainMenuBuilder extends AbstractBuilder implements TranslationContainerInt
/* Main Menu / Dashboard */
public const ITEM_DASHBOARD = 'main__dashboard';

/* Main Menu / Drafts */
public const ITEM_DRAFTS = 'main__drafts';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment missing. See other entries.


/* Main Menu / Content */
public const ITEM_CONTENT = 'main__content';
public const ITEM_CONTENT_GROUP_SETTINGS = 'main__content__group_settings';
Expand Down Expand Up @@ -200,6 +203,18 @@ public function createStructure(array $options): ItemInterface
],
]);

$contentMenu->addChild(self::ITEM_DRAFTS, [
'route' => 'ibexa.content_draft.list',
'attributes' => [
'data-tooltip-placement' => 'right',
'data-tooltip-extra-class' => 'ibexa-tooltip--info-neon',
],
'extras' => [
'icon' => 'dashboard-clean',
'orderNumber' => 45,
],
]);

$adminMenu = $menu->addChild(self::ITEM_ADMIN, [
'attributes' => [
'data-tooltip-placement' => 'right',
Expand Down Expand Up @@ -368,6 +383,7 @@ public static function getTranslationMessages(): array
{
return [
(new Message(self::ITEM_DASHBOARD, 'ibexa_menu'))->setDesc('Dashboard'),
(new Message(self::ITEM_DRAFTS, 'ibexa_menu'))->setDesc('Drafts'),
(new Message(self::ITEM_BOOKMARKS, 'ibexa_menu'))->setDesc('Bookmarks'),
(new Message(self::ITEM_TRASH, 'ibexa_menu'))->setDesc('Trash'),
(new Message(self::ITEM_CONTENT, 'ibexa_menu'))->setDesc('Content'),
Expand Down