mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
💄 Add minor cosmetic improvement on error report template
This commit is contained in:
parent
fcdf33b134
commit
63a3186e6d
4 changed files with 19 additions and 8 deletions
|
@ -6,13 +6,19 @@ penpot - error list
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<nav>
|
<nav>
|
||||||
<h1>Latest error reports:</h1>
|
<div class="title">
|
||||||
|
<h1>Error reports (last 200)</h1>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<main class="horizontal-list">
|
<main class="horizontal-list">
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
<li><a class="date" href="/dbg/error/{{item.id}}">{{item.created-at}}</a>
|
<li>
|
||||||
<span class="title">{{item.hint|abbreviate:150}}</span></li>
|
<a class="date" href="/dbg/error/{{item.id}}">{{item.created-at}}</a>
|
||||||
|
<a class="hint" href="/dbg/error/{{item.id}}">
|
||||||
|
<span class="title">{{item.hint|abbreviate:150}}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "app/templates/base.tmpl" %}
|
{% extends "app/templates/base.tmpl" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
penpot - error report v2 {{id}}
|
Report: {{hint|abbreviate:150}} - {{id}} - Penpot Error Report (v3)
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
|
@ -50,7 +50,13 @@ nav {
|
||||||
background: #e3e3e3;
|
background: #e3e3e3;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav > h1 {
|
nav > .title {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav > .title > h1 {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
|
@ -151,7 +157,6 @@ nav > div:not(:last-child) {
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
min-width: 210px;
|
min-width: 210px;
|
||||||
margin: 0px 20px;
|
margin: 0px 20px;
|
||||||
cursor: pointer;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -238,9 +238,9 @@
|
||||||
(-> (io/resource "app/templates/error-report.v2.tmpl")
|
(-> (io/resource "app/templates/error-report.v2.tmpl")
|
||||||
(tmpl/render report)))
|
(tmpl/render report)))
|
||||||
|
|
||||||
(render-template-v3 [{report :content}]
|
(render-template-v3 [{report :content id :id}]
|
||||||
(-> (io/resource "app/templates/error-report.v3.tmpl")
|
(-> (io/resource "app/templates/error-report.v3.tmpl")
|
||||||
(tmpl/render report)))
|
(tmpl/render (assoc report :id id))))
|
||||||
]
|
]
|
||||||
|
|
||||||
(when-not (authorized? pool request)
|
(when-not (authorized? pool request)
|
||||||
|
|
Loading…
Add table
Reference in a new issue