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 -->
|
||||
<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 %}
|
||||
<div class="text-sm text-gray-400 italic">No logs available</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user