Add facebook button

This commit is contained in:
2017-09-12 16:40:28 +02:00
parent d797003028
commit a40c48a792
4 changed files with 27 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{% extends "core/base.jinja" %}
{% from 'core/macros.jinja' import user_profile_link %}
{% from 'core/macros.jinja' import user_profile_link, facebook_share %}
{% block title %}
{% trans %}News{% endtrans %} -
@ -29,6 +29,8 @@
{% if user.can_edit(news) %}
<p> <a href="{{ url('com:news_edit', news_id=news.id) }}">{% trans %}Edit (will be remoderated){% endtrans %}</a></p>
{% endif %}
</br>
{{ facebook_share(news) }}
</section>
{% endblock %}