|
|
|
@ -78,7 +78,7 @@
|
|
|
|
<button onclick="window.location.href='/refresh'">🔄 Refresh Data</button>
|
|
|
|
<button onclick="window.location.href='/refresh'">🔄 Refresh Data</button>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Server-side search -->
|
|
|
|
<!-- Server-side search -->
|
|
|
|
<form method="get" action="{{ url_for('dashboard') }}" style="display:inline-block; margin-left:10px;">
|
|
|
|
<form method="get" action="{{ url_for('web.dashboard') }}" style="display:inline-block; margin-left:10px;">
|
|
|
|
<input type="text" name="q" placeholder="Search users..." value="{{ query or '' }}">
|
|
|
|
<input type="text" name="q" placeholder="Search users..." value="{{ query or '' }}">
|
|
|
|
<button type="submit">Search</button>
|
|
|
|
<button type="submit">Search</button>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
@ -94,27 +94,27 @@
|
|
|
|
{% set next_avg_dir = 'asc' if sort != 'avg_size' or dir == 'desc' else 'desc' %}
|
|
|
|
{% set next_avg_dir = 'asc' if sort != 'avg_size' or dir == 'desc' else 'desc' %}
|
|
|
|
|
|
|
|
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
<a href="{{ url_for('dashboard', q=query, page=1, sort='user', dir=next_user_dir) }}">
|
|
|
|
<a href="{{ url_for('web.dashboard', q=query, page=1, sort='user', dir=next_user_dir) }}">
|
|
|
|
User{% if sort=='user' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
User{% if sort=='user' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
<a href="{{ url_for('dashboard', q=query, page=1, sort='platform', dir=next_platform_dir) }}">
|
|
|
|
<a href="{{ url_for('web.dashboard', q=query, page=1, sort='platform', dir=next_platform_dir) }}">
|
|
|
|
Platform{% if sort=='platform' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
Platform{% if sort=='platform' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
<a href="{{ url_for('dashboard', q=query, page=1, sort='total_size', dir=next_total_dir) }}">
|
|
|
|
<a href="{{ url_for('web.dashboard', q=query, page=1, sort='total_size', dir=next_total_dir) }}">
|
|
|
|
Total Storage (GB){% if sort=='total_size' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
Total Storage (GB){% if sort=='total_size' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
<a href="{{ url_for('dashboard', q=query, page=1, sort='video_count', dir=next_count_dir) }}">
|
|
|
|
<a href="{{ url_for('web.dashboard', q=query, page=1, sort='video_count', dir=next_count_dir) }}">
|
|
|
|
Video Count{% if sort=='video_count' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
Video Count{% if sort=='video_count' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<th>
|
|
|
|
<a href="{{ url_for('dashboard', q=query, page=1, sort='avg_size', dir=next_avg_dir) }}">
|
|
|
|
<a href="{{ url_for('web.dashboard', q=query, page=1, sort='avg_size', dir=next_avg_dir) }}">
|
|
|
|
Avg Size per Video (GB){% if sort=='avg_size' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
Avg Size per Video (GB){% if sort=='avg_size' %} {{ '▲' if dir=='asc' else '▼' }}{% endif %}
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|
@ -138,7 +138,7 @@
|
|
|
|
{% if total_pages > 1 %}
|
|
|
|
{% if total_pages > 1 %}
|
|
|
|
<div class="pagination">
|
|
|
|
<div class="pagination">
|
|
|
|
{% if page > 1 %}
|
|
|
|
{% if page > 1 %}
|
|
|
|
<a href="{{ url_for('dashboard', page=page-1, q=query) }}">« Prev</a>
|
|
|
|
<a href="{{ url_for('web.dashboard', page=page-1, q=query) }}">« Prev</a>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<span>« Prev</span>
|
|
|
|
<span>« Prev</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
@ -147,12 +147,12 @@
|
|
|
|
{% if p == page %}
|
|
|
|
{% if p == page %}
|
|
|
|
<span class="active">{{ p }}</span>
|
|
|
|
<span class="active">{{ p }}</span>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ url_for('dashboard', page=p, q=query) }}">{{ p }}</a>
|
|
|
|
<a href="{{ url_for('web.dashboard', page=p, q=query) }}">{{ p }}</a>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if page < total_pages %}
|
|
|
|
{% if page < total_pages %}
|
|
|
|
<a href="{{ url_for('dashboard', page=page+1, q=query) }}">Next »</a>
|
|
|
|
<a href="{{ url_for('web.dashboard', page=page+1, q=query) }}">Next »</a>
|
|
|
|
{% else %}
|
|
|
|
{% else %}
|
|
|
|
<span>Next »</span>
|
|
|
|
<span>Next »</span>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|