{% load wagtailcore_tags i18n wagtailadmin_tags %}

{% panel id="main-links" heading=site classname="w-panel--dashboard" %}
<table class="listing listing--dashboard">
  <col width="50%" />
  <col width="50%" />
  <thead class="w-sr-only">
    <tr>
      <th>{% translate "Links" %}</th>
      <th>{% translate "Links" %}</th>
      <th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td class="sf-panel title">
        <div class="w-summary w-body-text">
          {% icon name="edit" classname="icon" %}
          {% translate "Edit home page" as edit_home_page %}
          <a href="{{ home_page_edit }}" title="{{ edit_home_page }}">{{ edit_home_page }}</a>
        </div>
        <div class="w-summary w-body-text">
          {% icon name="doc-empty-inverse" classname="icon" %}
          {% translate "Show all pages" as show_all_pages %}
          <a href="{{ pages_list }}" title="{{ show_all_pages }}">{{ show_all_pages }}</a>
        </div>
        <div class="w-summary w-body-text">
          {% icon name="circle-plus" classname="icon" %}
          {% translate "Create new page" as create_new_page %}
          <a href="{{ create_page }}" title="{{ create_new_page }}">{{ create_new_page }}</a>
        </div>
      </td>
      <td class="sf-panel title">
        <div class="w-summary w-body-text">
          {% icon name="bars" classname="icon" %}
          {% translate "Manage main menu" as manage_main_menu %}
          <a href="{{ main_menus }}" title="{{ manage_main_menu }}">{{ manage_main_menu }}</a>
        </div>
        <div class="w-summary w-body-text">
          {% icon name="cog" classname="icon" %}
          {% translate "Configure my site" as configure_my_site %}
          <a href="{{ settings_url }}" title="{{ configure_my_site }}">{{ configure_my_site }}</a>
        </div>
      </td>
    </tr>
  </tbody>
</table>
{% endpanel %}
