~homeworkprod/byceps

634b02639be0ad99f0559f26eb8eae700a0a7f66 — Jochen Kupperschmidt a month ago fc2b0a8
Link from shop cells on global admin dashboard to open orders lists
M byceps/blueprints/admin/dashboard/templates/admin/dashboard/_active_shops.html => byceps/blueprints/admin/dashboard/templates/admin/dashboard/_active_shops.html +3 -3
@@ 10,10 10,10 @@

{%- if active_shops_with_open_orders_counts %}
  {%- for shop, open_orders_count in active_shops_with_open_orders_counts %}
    {%- call render_cell(href=url_for('shop_shop_admin.view', shop_id=shop.id)) %}
  <div>{{ shop.title }}</div>
    {%- call render_cell() %}
  <div><a href="{{ url_for('shop_shop_admin.view', shop_id=shop.id) }}" class="disguised" style="display: block;">{{ shop.title }}</a></div>
      {%- if open_orders_count %}
      <div style="font-size: 0.6875rem; margin-top: 1rem;"><strong style="color: #ee3322;">{{ open_orders_count }}</strong> offene Bestellungen</div>
  <div style="font-size: 0.6875rem; margin-top: 1rem;"><a href="{{ url_for('shop_order_admin.index_for_shop', shop_id=shop.id, only_payment_state='open') }}" class="disguised" style="display: block;"><strong style="color: #ee3322;">{{ open_orders_count }}</strong> offene Bestellungen</a></div>
      {%- endif %}
    {%- endcall %}
  {%- endfor %}

M byceps/static/style/admin_dashboard.css => byceps/static/style/admin_dashboard.css +2 -1
@@ 22,10 22,11 @@
  grid-column: span 2;
}

.grid .cell a {
.grid .cell a:not(.disguised) {
  color: currentColor;
  text-decoration: none;
}

.grid .cell a:hover .box {
  background-color: #f4f4f4;
}