Update timer function logs display to show first log entry
- Modify logs template to extract and display the first log entry - Preserve existing log display formatting and empty log handling
This commit is contained in:
@@ -47,7 +47,8 @@ history_url=url_for('timer.history', function_id=function_id)) }}
|
|||||||
|
|
||||||
<!-- Logs -->
|
<!-- Logs -->
|
||||||
<div class="bg-gray-50 rounded-lg p-3 overflow-auto max-h-40">
|
<div class="bg-gray-50 rounded-lg p-3 overflow-auto max-h-40">
|
||||||
<pre class="text-sm font-mono text-gray-600 whitespace-pre-wrap">{{ invocation.logs }}</pre>
|
<pre
|
||||||
|
class="text-sm font-mono text-gray-600 whitespace-pre-wrap">{{ (invocation.logs | map('first')) | join('\n') }}</pre>
|
||||||
{% if not invocation.logs %}
|
{% if not invocation.logs %}
|
||||||
<div class="text-sm text-gray-400 italic">No logs available</div>
|
<div class="text-sm text-gray-400 italic">No logs available</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user