fix: use hardcoded href instead of {% url %} to avoid NoReverseMatch in templates
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
{% extends "admin/base.html" %}
|
{% extends "admin/base.html" %}
|
||||||
{% load humanize %}
|
|
||||||
|
|
||||||
{% block title %}{{ title }} | OpenClaw Archive{% endblock %}
|
{% block title %}{{ title }} | OpenClaw Archive{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="p-3">
|
<div class="p-3">
|
||||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||||
<h1>📋 Daily Report: <span class="text-primary">{{ agent_name }}</span> — <span class="text-success">{{ target_date }}</span></h1>
|
<h1>Daily Report: <span class="text-primary">{{ agent_name }}</span> — <span class="text-success">{{ target_date }}</span></h1>
|
||||||
<a href="{% url 'admin:openclaw_daily_reports' %}?agent={{ agent_name }}&start={{ target_date }}&end={{ target_date }}" class="btn btn-secondary">← Back to List</a>
|
<a href="/admin/daily-reports/?agent={{ agent_name }}&start={{ target_date }}&end={{ target_date }}" class="btn btn-secondary">← Back to List</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for item in sessions %}
|
{% for item in sessions %}
|
||||||
@@ -27,9 +26,9 @@
|
|||||||
<table class="table table-bordered table-sm mb-0" style="font-size:12px; table-layout: fixed;">
|
<table class="table table-bordered table-sm mb-0" style="font-size:12px; table-layout: fixed;">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width:60px">
|
<col style="width:60px">
|
||||||
<col style="width:100px">
|
|
||||||
<col style="width:80px">
|
<col style="width:80px">
|
||||||
<col style="width:140px">
|
<col style="width:100px">
|
||||||
|
<col style="width:150px">
|
||||||
<col style="width:500px">
|
<col style="width:500px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead class="table-light">
|
<thead class="table-light">
|
||||||
@@ -83,7 +82,6 @@
|
|||||||
<span class="text-muted"><em>(empty)</em></span>
|
<span class="text-muted"><em>(empty)</em></span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# Tool calls for this message #}
|
|
||||||
{% with msg.tool_calls.all as tc_list %}
|
{% with msg.tool_calls.all as tc_list %}
|
||||||
{% if tc_list %}
|
{% if tc_list %}
|
||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<td>{{ group.session_count }}</td>
|
<td>{{ group.session_count }}</td>
|
||||||
<td>{{ group.message_count }}</td>
|
<td>{{ group.message_count }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'admin:openclaw_daily_report_detail' group.agent_name group.date_val.year group.date_val.month group.date_val.day %}"
|
<a href="/admin/daily-reports/{{ group.agent_name }}/{{ group.date_val.year }}-{{ group.date_val.month }}-{{ group.date_val.day }}/"
|
||||||
class="btn btn-sm btn-info">
|
class="btn btn-sm btn-info">
|
||||||
View Report
|
View Report
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user