kopia lustrzana https://github.com/wagtail/wagtail
Switch to site icon and use td.title for hostname column
rodzic
a5fbb74782
commit
61d75f440d
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block content %}
|
||||
{% trans "Delete site" as del_str %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=del_str subtitle=site.hostname icon="radio-empty" %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=del_str subtitle=site.hostname icon="site" %}
|
||||
|
||||
<div class="row row-flush nice-padding">
|
||||
<p>{% trans "Are you sure you want to delete this site?" %}</p>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% block content %}
|
||||
|
||||
{% trans "Add site" as add_site_str %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=add_site_str icon="radio-empty" %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=add_site_str icon="site" %}
|
||||
|
||||
<form action="{% url 'wagtailsites_create' %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% block content %}
|
||||
|
||||
{% trans "Editing" as editing_str %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=site.hostname icon="radio-empty" %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=site.hostname icon="site" %}
|
||||
|
||||
<form action="{% url 'wagtailsites_edit' site.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
{% trans "Sites" as sites_str %}
|
||||
{% if perms.site.add_site %}
|
||||
{% trans "Add a site" as add_a_site_str %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=sites_str add_link="wagtailsites_create" add_text=add_a_site_str icon="radio-empty" %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=sites_str add_link="wagtailsites_create" add_text=add_a_site_str icon="site" %}
|
||||
{% else %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=sites_str icon="radio-empty" %}
|
||||
{% include "wagtailadmin/shared/header.html" with title=sites_str icon="site" %}
|
||||
{% endif %}
|
||||
|
||||
<div class="nice-padding">
|
||||
|
@ -31,7 +31,7 @@
|
|||
<tbody>
|
||||
{% for site in sites %}
|
||||
<tr>
|
||||
<td class="hostname">
|
||||
<td class="hostname title">
|
||||
<h2>
|
||||
<a href="{% url 'wagtailsites_edit' site.id %}">{{ site.hostname }}</a>
|
||||
</h2>
|
||||
|
|
|
@ -18,6 +18,6 @@ hooks.register('register_admin_urls', register_admin_urls)
|
|||
def construct_main_menu(request, menu_items):
|
||||
if request.user.is_superuser:
|
||||
menu_items.append(
|
||||
MenuItem(_('Sites'), urlresolvers.reverse('wagtailsites_index'), classnames='icon icon-radio-empty', order=602)
|
||||
MenuItem(_('Sites'), urlresolvers.reverse('wagtailsites_index'), classnames='icon icon-site', order=602)
|
||||
)
|
||||
hooks.register('construct_main_menu', construct_main_menu)
|
||||
|
|
Ładowanie…
Reference in New Issue