mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-20 21:11:55 +00:00
clicking user bar buttons now redirects parent page
This commit is contained in:
parent
637899f6c2
commit
5a4caabd44
7 changed files with 6 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ ul{
|
|||
}
|
||||
|
||||
li{
|
||||
@include transition(width 0.2s ease);
|
||||
@include transition(width 0.1s ease);
|
||||
float:right;
|
||||
clear:both;
|
||||
width:3.5em;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "wagtailadmin/skeleton.html" %}
|
||||
{% extends "wagtailadmin/admin_base.html" %}
|
||||
{% load compress %}
|
||||
{% load i18n %}
|
||||
{% block titletag %}{% trans "Sign in" %}{% endblock %}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block item_content %}
|
||||
<form action="{% url 'wagtailadmin_pages_approve_moderation' self.revision.id %}" method="post">
|
||||
<form action="{% url 'wagtailadmin_pages_approve_moderation' self.revision.id %}" target="_parent" method="post">
|
||||
{% csrf_token %}
|
||||
<div class="action icon icon-tick">
|
||||
<input type="submit" value="{% trans 'Approve' %}" />
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
{% block furniture %}
|
||||
<div class="wagtail-userbar">
|
||||
<nav>
|
||||
<a href="{% url 'wagtailadmin_home' %}" class="home icon icon-wagtail" title="{% trans 'Go to Wagtail admin interface' %}">{% trans 'Go to Wagtail admin interface' %}</a>
|
||||
<a href="{% url 'wagtailadmin_home' %}" target="_parent" class="home icon icon-wagtail" title="{% trans 'Go to Wagtail admin interface' %}">{% trans 'Go to Wagtail admin interface' %}</a>
|
||||
<ul>
|
||||
{% for item in items %}
|
||||
{{ item|safe }}
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block item_content %}
|
||||
<a href="{% url 'wagtailadmin_pages_edit' self.page.id %}" class="action icon icon-edit">{% trans 'Edit' %}</a>
|
||||
<a href="{% url 'wagtailadmin_pages_edit' self.page.id %}" target="_parent" class="action icon icon-edit">{% trans 'Edit' %}</a>
|
||||
{% endblock %}
|
||||
|
|
@ -7,7 +7,6 @@
|
|||
border:0;
|
||||
width:150px;
|
||||
height:300px;
|
||||
transition
|
||||
}
|
||||
</style>
|
||||
<iframe id="wagtail-userbar" src="{% url 'wagtailadmin_userbar' page.self.id %}" width="1000px" height="1000px" frameborder="0" allowtransparency="true" scrolling="no" style="background:transparent"></iframe>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
{% load i18n %}
|
||||
|
||||
{% block item_content %}
|
||||
<form action="{% url 'wagtailadmin_pages_reject_moderation' self.revision.id %}" method="post">
|
||||
<form action="{% url 'wagtailadmin_pages_reject_moderation' self.revision.id %}" target="_parent" method="post">
|
||||
{% csrf_token %}
|
||||
<div class="action icon icon-cross">
|
||||
<input type="submit" value="{% trans 'Reject' %}" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue