mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 20:24:50 +09:00
Improved Ticket Layout
This commit is contained in:
parent
86de122354
commit
8094a37aea
4 changed files with 39 additions and 10 deletions
4
templates/ticket/list.cassius
Normal file
4
templates/ticket/list.cassius
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.container
|
||||||
|
display: grid
|
||||||
|
grid-template-columns: 1rem 1rem 2fr 2fr 8fr 1rem 1rem
|
||||||
|
grid-column-gap: 1rem
|
|
@ -23,6 +23,6 @@ $# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
<div class="submit">
|
<div class="submit">
|
||||||
<input type="submit" value="Filter">
|
<input type="submit" value="Filter">
|
||||||
|
|
||||||
<ul>
|
<div .container>
|
||||||
$forall ts <- rows
|
$forall ts <- rows
|
||||||
<li>^{ticketSummaryW shr prj ts Nothing}
|
^{ticketSummaryW shr prj ts Nothing}
|
||||||
|
|
|
@ -21,3 +21,24 @@
|
||||||
|
|
||||||
.#{cClosed}
|
.#{cClosed}
|
||||||
color: #{dark green}
|
color: #{dark green}
|
||||||
|
|
||||||
|
.ticket-status-column
|
||||||
|
grid-column: 1 / 1
|
||||||
|
"
|
||||||
|
.ticket-number-column
|
||||||
|
grid-column: 2 / 2
|
||||||
|
|
||||||
|
.ticket-date-column
|
||||||
|
grid-column: 3 / 3
|
||||||
|
|
||||||
|
.ticket-sharer-column
|
||||||
|
grid-column: 4 / 4
|
||||||
|
|
||||||
|
.ticket-title-column
|
||||||
|
grid-column: 5 / 5
|
||||||
|
|
||||||
|
.ticket-tree-column
|
||||||
|
grid-column: 6 / 6
|
||||||
|
|
||||||
|
.ticket-node-column
|
||||||
|
grid-column: 7 / 7
|
||||||
|
|
|
@ -12,7 +12,7 @@ $# You should have received a copy of the CC0 Public Domain Dedication along
|
||||||
$# with this software. If not, see
|
$# with this software. If not, see
|
||||||
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
|
|
||||||
<div>
|
<span .ticket-status-column>
|
||||||
$case tsStatus ts
|
$case tsStatus ts
|
||||||
$of TSNew
|
$of TSNew
|
||||||
<span .#{cNew}>
|
<span .#{cNew}>
|
||||||
|
@ -24,28 +24,32 @@ $# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
<span .#{cClosed}>
|
<span .#{cClosed}>
|
||||||
☒
|
☒
|
||||||
|
|
||||||
|
<span .ticket-number-column>
|
||||||
<a href=@{TicketR shr prj $ tsNumber ts}>
|
<a href=@{TicketR shr prj $ tsNumber ts}>
|
||||||
#{tsNumber ts}
|
#{tsNumber ts}
|
||||||
|
|
||||||
<span>
|
<span .ticket-date-column>
|
||||||
#{showDate $ tsCreatedAt ts}
|
#{showDate $ tsCreatedAt ts}
|
||||||
|
|
||||||
|
<span .ticket-sharer-column>
|
||||||
^{sharerLinkFedW $ tsCreatedBy ts}
|
^{sharerLinkFedW $ tsCreatedBy ts}
|
||||||
|
|
||||||
|
<span .ticket-title-column>
|
||||||
<a href=@{TicketR shr prj $ tsNumber ts}>
|
<a href=@{TicketR shr prj $ tsNumber ts}>
|
||||||
#{tsTitle ts}
|
#{tsTitle ts}
|
||||||
|
|
||||||
|
<span .ticket-tree-column>
|
||||||
$if tsComments ts > 0
|
$if tsComments ts > 0
|
||||||
<span>
|
💬
|
||||||
💬
|
#{tsComments ts}
|
||||||
#{tsComments ts}
|
|
||||||
|
|
||||||
$maybe params <- mparams
|
$maybe params <- mparams
|
||||||
<div>
|
<span .ticket-node-column>
|
||||||
<a href="#node-#{tsNumber ts}" title="Jump to subtree">
|
<a href="#node-#{tsNumber ts}" title="Jump to subtree">
|
||||||
☝
|
☝
|
||||||
$maybe route <- mroute
|
$maybe route <- mroute
|
||||||
<a href=@?{(route, params)} title="Move subtree here">
|
<a href=@?{(route, params)} title="Move subtree here">
|
||||||
☚
|
☚
|
||||||
$nothing
|
$nothing
|
||||||
<a id="node-#{tsNumber ts}">
|
<span .ticket-node-column>
|
||||||
|
<a id="node-#{tsNumber ts}">
|
||||||
|
|
Loading…
Reference in a new issue