2023-09-24 08:45:16 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
ui: fix state for inactive tickets in ticket page
diff --git a/view/ticket.html b/view/ticket.html index 2eccd48..8d5e023 100644 --- a/view/ticket.html +++ b/view/ticket.html @@ -37,7 +37,15 @@ <form action="{{$shift_path}}/left?from=tick" method="post"> <button class="shift-button" type="submit">←</button> </form> + % if $tick.is_active == 1 then {{$states[$tick.state_id]}} + % else + % if $tick.state_id == 1 then + backlog + % else + archive + % end + % end <form action="{{$shift_path}}/right?from=tick" method="post"> <button class="shift-button" type="submit">→</button> </form>