Skip to content

Commit

Permalink
UI: Make permalink button actual link
Browse files Browse the repository at this point in the history
This allows to use browser copy link feature or open in new tab.

Fixes #4191
  • Loading branch information
nijel committed Jul 23, 2020
1 parent 1b796ee commit 8a5943c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/templates/translate.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="panel {% if unit.approved %}panel-success{% elif unit.translation.is_source %}panel-warning{% else %}panel-default{% endif %}">

<div class="panel-heading">
<a class="btn btn-link btn-xs pull-right flip" data-clipboard-text="{{ site_url }}{{ unit.get_absolute_url }}" title="{% trans "Copy permalink" %}">{% icon "link.svg" %}</a>
<a class="btn btn-link btn-xs pull-right flip" href="{{ site_url }}{{ unit.get_absolute_url }}" data-clipboard-text="{{ site_url }}{{ unit.get_absolute_url }}" title="{% trans "Copy permalink" %}">{% icon "link.svg" %}</a>
<h4 class="panel-title">
{% if unit.translation.is_source %}
{% trans "Source string" %}
Expand Down

0 comments on commit 8a5943c

Please sign in to comment.