add locale pt_br, fix tibiacom canEdit ticker buttons (#77)

* add locale pt_br

* fix tibiacom canEdit ticker buttons

buttons did not work

* fix missing translation

* * add author and change notice
This commit is contained in:
Ivens Pontes
2019-05-03 19:24:14 -03:00
committed by slawkens
parent 24319ddc7a
commit cbdac66fd0
5 changed files with 152 additions and 3 deletions

View File

@@ -20,15 +20,15 @@
<div id="TickerEntry-{{ i }}-ShortText" class="NewsTickerShortText">{{ ticker.body_short|raw }}</div>
<div id="TickerEntry-{{ i }}-FullText" class="NewsTickerFullText">{{ ticker.body|raw }}
{% if canEdit %}
<a href="?subtopic=news&action=edit&id={{ ticker.id }}" title="Edit">
<a href="admin/?p=news&action=edit&id={{ ticker.id }}" title="Edit">
<img src="images/edit.png"/>
Edit
</a>
<a id="delete" href="?subtopic=news&action=delete&id={{ ticker.id }}" onclick="return confirm('Are you sure?');" title="Delete">
<a id="delete" href="admin/?p=news&action=delete&id={{ ticker.id }}" onclick="return confirm('Are you sure?');" title="Delete">
<img src="images/del.png"/>
Delete
</a>
<a href="?subtopic=news&action=hide&id={{ ticker.id }}" title="{% if ticker.hidden != 1 %}Hide{% else %}Show{% endif %}">
<a href="admin/?p=news&action=hide&id={{ ticker.id }}" title="{% if ticker.hidden != 1 %}Hide{% else %}Show{% endif %}">
<img src="images/{% if ticker.hidden != 1 %}success{% else %}error{% endif %}.png"/>
{% if ticker.hidden != 1 %}Hide{% else %}Show{% endif %}
</a>