Skip to content
Snippets Groups Projects
Commit d1f01ac0 authored by HeJ's avatar HeJ
Browse files

Merge branch 'feat-assembly-buttons' into 'develop'

Füge Assembly Buttons hinzu

Closes #677

See merge request hub/hub!1110
parents fa8f4301 0acafdcf
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@
{% import "plainui/components/image.html.j2" as imageMacro %}
{% import "plainui/components/badge_elements.html.j2" as badge_elements with context %}
{% import "plainui/components/nav.html.j2" as navMacro with context %}
{% import "plainui/components/function_btns.html.j2" as fbtns with context %}
{% block title %}
{{ conf.name }} - Assembly {{ assembly.name }}
......@@ -58,6 +59,11 @@
</div>
{% endif %}
<div class="hub-hlayout">
{{ fbtns.fav(assembly.id, "assembly", fav_info.is, color="secondary", margin=False) }}
{{ fbtns.share('plainui:assembly', assembly_slug=assembly.slug, color="secondary", margin=False) }}
{{ fbtns.report(link, lookup_key=assembly.slug, color="warning", margin=False) }}
</div>
</div>
{% if assembly.banner_image %}
<div class="hub-col-325px hub-card">
......
......@@ -95,9 +95,9 @@
{% endif %}
{%- endmacro %}
{% macro share(view_name, title=_("share this "), color="transparent") -%}
{% macro share(view_name, title=_("share this "), color="transparent", margin=True) -%}
<a href="{{ hub_absolute(view_name, i18n=archive_mode, **kwargs) }}"
class="me-2 btn-icon-big btn btn-{{ color }}"
class="btn-icon-big btn btn-{{ color }} {% if margin %}me-2{% endif %}"
title="{{ title }}"
target="_blank">
<svg width="1.25rem"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment