~homeworkprod/byceps

62c9e1919d9ee09234d11d589872f44f1c776143 — Jochen Kupperschmidt a month ago c4bdca9
Remove list of all brands from global admin dashboard

It has been superseded by the active brands list at the top.
3 files changed, 0 insertions(+), 23 deletions(-)

D byceps/blueprints/admin/dashboard/templates/admin/dashboard/_brands.html
M byceps/blueprints/admin/dashboard/templates/admin/dashboard/view_global.html
M byceps/blueprints/admin/dashboard/views.py
D byceps/blueprints/admin/dashboard/templates/admin/dashboard/_brands.html => byceps/blueprints/admin/dashboard/templates/admin/dashboard/_brands.html +0 -18
@@ 1,18 0,0 @@
{% from 'macros/admin/brand.html' import render_brand_avatar %}


<h2>{{ _('Brands') }}</h2>
{%- if brands %}
<ol class="fancy-list">
  {%- for brand in brands|sort(attribute='title') %}
  <li>
    <a href="{{ url_for('admin_dashboard.view_brand', brand_id=brand.id) }}">
      <span style="margin-right: 0.25rem;">{{ render_brand_avatar(brand, '32') }}</span>
      {{ brand.title }}
    </a>
  </li>
  {%- endfor %}
</ol>
{%- else %}
<p>{{ _('No brands')|dim }}</p>
{%- endif %}

M byceps/blueprints/admin/dashboard/templates/admin/dashboard/view_global.html => byceps/blueprints/admin/dashboard/templates/admin/dashboard/view_global.html +0 -3
@@ 21,9 21,6 @@
<div class="dashboard-section-title">{{ _('Overview') }}</div>

  <div class="grid dashboard">
    {%- call render_cell('brand') %}
{%- include 'admin/dashboard/_brands.html' %}
    {%- endcall %}
    {{ render_bigstats_cell(party_count, _('Parties'), href=url_for('party_admin.index'), icon_name='date') }}
    {{ render_bigstats_cell(user_count|separate_thousands, _('Users'), href=url_for('user_admin.index'), icon_name='users') }}
    {{ render_bigstats_cell(recent_users_count, _('new users in the last 7 days'), href=url_for('user_admin.index'), icon_name='users', color='#008800') }}

M byceps/blueprints/admin/dashboard/views.py => byceps/blueprints/admin/dashboard/views.py +0 -2
@@ 66,7 66,6 @@ def view_global():
        for shop in active_shops
    ]

    brands = brand_service.get_all_brands()
    party_count = party_service.count_parties()

    user_count = user_stats_service.count_users()


@@ 89,7 88,6 @@ def view_global():
        'active_parties_with_ticket_stats': active_parties_with_ticket_stats,
        'active_shops_with_open_orders_counts': active_shops_with_open_orders_counts,

        'brands': brands,
        'party_count': party_count,

        'user_count': user_count,