Commit d06f0c31 authored by Ale's avatar Ale

feat: Add edit links to timeline

parent 75843f30
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>
\ No newline at end of file
......@@ -2,11 +2,13 @@
<div class="menu-social">
<ul class="menu-social__items">
{% if request.user.is_staff %}
<li class="menu-social__item">
<a target="_blank" href="{% url 'admin:index' %}">
<img src="{% static 'site/img/icons/settings.svg' %}" />
</a>
</li>
{% endif %}
<li class="menu-social__item">
<a target="_blank" href="https://twitter.com/patio_108">
<img src="{% static 'site/img/icons/twitter.svg' %}" />
......
{# Share widget #} {% load static %}
<div class="share">
{% if request.user.is_staff %}
<a href="{% url 'admin:map_testimony_change' pk %}" target="_blank">
<img src="{% static '/site/img/icons/edit.svg' %}" />
</a>
{% endif %}
<img class="share__label" data-show="#share-{{ pk }}" src="{% static '/site/img/icons/share-2.svg' %}" />
<div class="share__items" id="share-{{ pk }}">
<a target="_blank" href="https://twitter.com/intent/tweet?text={{ title }}: {{ request.build_absolute_uri }}#{{ pk }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment