Improve design of placeholder item

Also makes it show the error backtrace
This commit is contained in:
syeopite
2025-02-28 20:42:07 -08:00
parent dbeee71457
commit 9de69c0052
4 changed files with 79 additions and 13 deletions

View File

@@ -98,8 +98,16 @@
</div>
<% when Category %>
<% when ProblematicTimelineItem %>
<div>
<h4> Unable to parse this item </h4>
<div class="error-card">
<div class="explanation">
<i class="icon ion-ios-alert"></i>
<h4><%=translate(locale, "timeline_parse_error_placeholder_heading")%></h4>
<p><%=translate(locale, "timeline_parse_error_placeholder_message")%></p>
</div>
<details>
<summary class="pure-button pure-button-secondary"> Show technical details </summary>
<pre style="padding: 20px; background: rgba(0, 0, 0, 0.12345);"><%=get_issue_template(env, item.parse_exception)[1]%></pre>
</details>
</div>
<% else %>
<%-