Skip to content

Commit

Permalink
chore: sync hijack notification template with current library code
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Jan 8, 2025
1 parent 5261ab0 commit 3b0c681
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions adminpage/templates/hijack/notification.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{% load i18n static %} {% block content %}
<link
rel="stylesheet"
type="text/css"
href="{% static 'hijack/hijack.min.css' %}"
media="screen"
/>
<div class="djhj" id="djhj" style="left: 0%; transform: translateX(0%)">
<div class="djhj-notification" style="max-width: 100px">
<div class="djhj-message">You are hijacking</div>
<form
action="{% url 'hijack:release' %}"
method="POST"
class="djhj-actions"
>
{% csrf_token %}
<input type="hidden" name="next" value="/admin/sport/student/" />
<button class="djhj-button" type="submit">
{% trans 'release' %}
</button>
</form>
</div>
</div>
{% load i18n static %}

{% block content %}
<link rel="stylesheet" type="text/css" href="{% static 'hijack/hijack.css' %}" media="screen">
<div class="djhj" id="djhj">
<div class="djhj-notification">
<div class="djhj-message">
{% blocktrans trimmed with user=request.user %}
You are currently working on behalf of <em>{{ user }}</em>.
{% endblocktrans %}
</div>
<form action="{% url 'hijack:release' %}" method="POST" class="djhj-actions">
{% csrf_token %}
<input type="hidden" name="next" value="/admin/sport/student/">
<button class="djhj-button" onclick="document.getElementById('djhj').style.display = 'none';" type="button">
{% trans 'hide warning' %}
</button>
<button class="djhj-button" type="submit">
{% translate 'stop impersonating' %}
</button>
</form>
</div>
</div>
{% endblock content %}

0 comments on commit 3b0c681

Please sign in to comment.