-
-
Notifications
You must be signed in to change notification settings - Fork 952
/
lock.html
27 lines (25 loc) · 1.07 KB
/
lock.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% extends "message.html" %}
{% load i18n %}
{% load permissions %}
{% block tags %}warning{% endblock %}
{% block message %}
{% perm 'component.lock' object as user_can_lock_component %}
<div class="pull-right flip">
{% if user_can_lock_component %}
<a href="" class="btn btn-warning link-post" data-href="{% url 'unlock' path=object.get_url_path %}">{% trans "Unlock" %}</a>
{% endif %}
{% if user.is_authenticated %}
<a href="" class="btn btn-primary link-post" data-href="{% url 'subscribe' %}" data-params='{"onetime":"LockNotification","component":{{object.pk }}}'>{% trans "Get notified when this project is unlocked again" %}</a>
{% endif %}
</div>
{% trans "The translation is temporarily closed for contributions due to maintenance, please come back later." %}
{% with alerts=object.lock_alerts %}
{% if alerts %}
<br />
{% trans "The translation was automatically locked due to following alerts:" %}
{% for alert in alerts %}
<a href="{{ object.get_absolute_url }}#alerts">{{ alert }}</a>
{% endfor %}
{% endif %}
{% endwith %}
{% endblock %}