{% extends '@ui/dashboards/default.html.twig' %}
{% block content %}
{% if announcements|length > 0 %}
<div class="row">
<div class="col-md-12">
{% for announcement in announcements %}
<div class="system-alert {% if announcement.state in 'danger' %}system-alert--danger{% elseif announcement.state in 'warning' %}system-alert--warning{% elseif announcement.state in 'info' %}system-alert--info{% else %}system-alert--success{% endif %}">
<div class="system-alert__body">
{% if not (announcement.title starts with 'hideme') %}
<h4 class="system-alert__heading">{{ announcement.title }}</h4>
{% endif %}
<div class="system-alert__desc">{{ announcement.description|raw }}</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
<div class="row">
<div class="col-md-8">
{% if favorites|length > 0 %}
{% embed '@ui/common/panels/default.html.twig' with {
title: 'Favorites',
collapsible: true
} %}
{% block body %}
{% embed '@ui/common/lists/modules.html.twig' with {
classes: 'module-list--dash-depts',
} %}
{% block items %}
{% for favorite in favorites %}
{% embed '@ui/common/lists/items/modules.html.twig' with {
title: '<a href="%s">%s</a>'|format(
containerUrl(
favorite,
app.user.uid.toString()
),
favorite.name|escape
),
actions: [
{
text: 'Manage',
icon: 'icon icon-lined-folder-front-b',
link: path(routes.container__view, {
containerId: favorite.id
}),
classes: 'actions-li__link--borderless',
},
],
} %}{% endembed %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% endembed %}
{% endif %}
{% if personalSites|length > 0 %}
{% embed '@ui/common/panels/default.html.twig' with {
title: 'Teacher Websites',
collapsible: true
} %}
{% block body %}
{% embed '@ui/common/lists/modules.html.twig' with {
classes: 'module-list--dash-depts',
} %}
{% block items %}
{% for site in personalSites %}
{% embed '@ui/common/lists/items/modules.html.twig' with {
title: '<a href="%s">%s</a>'|format(
containerUrl(
site,
app.user.uid.toString()
),
site.name|escape
),
actions: [
{
text: 'Manage',
icon: 'icon icon-lined-folder-front-b',
link: path(routes.container__view, {
containerId: site.id
}),
classes: 'actions-li__link--borderless',
},
],
} %}{% endembed %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% endembed %}
{% endif %}
{% if sites|length > 0 %}
{% embed '@ui/common/panels/default.html.twig' with {
title: 'Websites',
collapsible: true
} %}
{% block body %}
{% embed '@ui/common/lists/modules.html.twig' with {
classes: 'module-list--dash-depts',
} %}
{% block items %}
{% for site in sites %}
{% embed '@ui/common/lists/items/modules.html.twig' with {
title: '<a href="%s">%s</a>'|format(
containerUrl(
site,
app.user.uid.toString()
),
site.name|escape
),
actions: [
{
text: 'Manage',
icon: 'icon icon-lined-folder-front-b',
link: path(routes.container__view, {
containerId: site.id
}),
classes: 'actions-li__link--borderless',
},
],
} %}{% endembed %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% endembed %}
{% endif %}
{% if intranets|length > 0 %}
{% embed '@ui/common/panels/default.html.twig' with {
title: 'Intranets',
collapsible: true
} %}
{% block body %}
{% embed '@ui/common/lists/modules.html.twig' with {
classes: 'module-list--dash-depts',
} %}
{% block items %}
{% for intranet in intranets %}
{% embed '@ui/common/lists/items/modules.html.twig' with {
title: '<a href="%s">%s</a>'|format(
containerUrl(
intranet,
app.user.uid.toString()
),
intranet.name|escape
),
actions: [],
} %}{% endembed %}
{% endfor %}
{% endblock %}
{% endembed %}
{% endblock %}
{% endembed %}
{% endif %}
</div>
<div class="col-md-4">
{% include '@PlatformMarketing/Dashboard/Default/includes/hubspot_frame.html.twig' with {
src: 'https://617533.hs-sites.com/website-cms-right-panel',
autoHeight: true
} %}
</div>
</div>
{% endblock %}