Skip to content
Snippets Groups Projects
Verified Commit 0acafdcf authored by weeman's avatar weeman
Browse files

Füge Assembly Buttons hinzu

parent 896444af
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
{% import "plainui/components/image.html.j2" as imageMacro %} {% import "plainui/components/image.html.j2" as imageMacro %}
{% import "plainui/components/badge_elements.html.j2" as badge_elements with context %} {% 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/nav.html.j2" as navMacro with context %}
{% import "plainui/components/function_btns.html.j2" as fbtns with context %}
{% block title %} {% block title %}
{{ conf.name }} - Assembly {{ assembly.name }} {{ conf.name }} - Assembly {{ assembly.name }}
...@@ -58,6 +59,11 @@ ...@@ -58,6 +59,11 @@
</div> </div>
{% endif %} {% 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> </div>
{% if assembly.banner_image %} {% if assembly.banner_image %}
<div class="hub-col-325px hub-card"> <div class="hub-col-325px hub-card">
......
...@@ -95,9 +95,9 @@ ...@@ -95,9 +95,9 @@
{% endif %} {% endif %}
{%- endmacro %} {%- 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) }}" <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 }}" title="{{ title }}"
target="_blank"> target="_blank">
<svg width="1.25rem" <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