Ignas Kiela
03f8983945
Remove TicketSeen
...
Has a fair amount of complexity for not much gain.
2021-12-20 10:15:17 +01:00
Drew DeVault
d2f57b98c1
Overhaul default access lists (web)
...
The changes are:
- Introduce a visibility column, similar to git.sr.ht et al
- Consolodate the default access columns into one
2021-09-24 08:21:04 +02:00
Ivan Habunek
87ff71d4af
Store ticket comment counts in the database
...
This saves a query when rendering the tracker page, and allows sorting
by comment count which can be given as a sorting option.
2021-09-14 12:40:41 +02:00
Ivan Habunek
8b056f3d30
Implement sorting in ticket search
...
By default tickets are sorted by updated DESC, if not otherwise defined.
Sort order is defined by entering `sort:<term>` in the search box where
`<term>` can be one of `updated` or `created`. More terms can be added
later.
Sort order is descending by default, it can be reversed by specifying
`rsort:<term>` instead.
2021-09-14 12:40:40 +02:00
Steven Guikal
af6d7ed514
Add aria-labels for comment count and remove button
2021-08-20 10:44:01 +02:00
Drew DeVault
b779e21822
Fix use of relative URLs in "closed tickets" links
2021-03-01 08:57:57 -05:00
Drew DeVault
78b187bb75
API: implement ticket { subscription }
2021-02-16 10:04:26 -05:00
Drew DeVault
396fe85b86
Remove unimplemented search hint
2021-02-05 10:36:01 -05:00
наб
d3ef822252
Allow long tracker/ticket slugs to break
...
Ref: ~sircmpwn/sr.ht#245
2020-09-11 10:15:22 -04:00
Drew DeVault
b90c13da5e
tracker summary: update permissions notice
...
ref ~sircmpwn/todo.sr.ht#227
2020-09-01 16:26:53 -04:00
наб
b20d80a34d
Don't hide settings tab on narrow screens
...
Ref: ~sircmpwn/sr.ht#179
2020-08-26 09:35:03 -04:00
наб
0ac0859f4d
Don't suggest submitter:me if not logged in
2020-08-06 09:15:45 -04:00
наб
caaab0c2c1
Show subscription mailto: links to anonymous users
...
As suggested in <C4DCAJR6LQD2.GBNNZ1ME6L4N@homura>
2020-07-30 08:52:18 -04:00
наб
4270950afe
Add Tracker.ref() à la Ticket.ref(), replacing manual construxions
2020-07-22 13:19:56 -04:00
Ivan Habunek
5a123a5872
Add preview when creating tickets
2020-05-22 15:47:23 -04:00
Matt Singletary
ff14d6502f
Add label to search box
...
Use sr-only to not mess with (visible) design
2020-04-24 11:10:05 -04:00
Drew DeVault
5f745f7705
Correct layout of header nav
2020-03-30 10:15:39 -04:00
Drew DeVault
dd416c6a59
Responsiveness improvements
2020-03-10 11:07:56 -04:00
Ivan Habunek
e885f90876
Handle search errors
2020-02-11 11:58:16 -05:00
Drew DeVault
fe08cd4447
Implement ticket import
2020-01-09 12:19:44 -05:00
Drew DeVault
15ea80ab9b
Autofocus ticket title if another
2019-12-11 08:43:44 -05:00
Drew DeVault
c443228630
Move autofocus on tracker page to search
2019-11-19 18:27:23 -05:00
Drew DeVault
2fb6bc8d13
Split settings into separate blueprint
2019-11-04 16:15:37 -05:00
Drew DeVault
bf7f8aa3fc
Update UI for ticket submission via email
2019-08-22 13:31:29 +09:00
Drew DeVault
204597dfb4
Accept email tickets/comments for anon users
2019-08-22 13:20:39 +09:00
Drew DeVault
b4c92a39db
Generalize users into participants
2019-08-22 11:05:25 +09:00
Jonas Mueller
c8ef2f9b11
Fixup: Pluralisation of comment(s) in tracker
...
The definition of `.comments` for large screens currently overwrites the
one for small screens - `!important` to the rescue. Also `.label` is
already used elsewhere.
2019-08-08 10:26:23 +09:00
Drew DeVault
27fa6fecbd
Fix syntax error in tracker.html
2019-08-07 14:01:07 +09:00
Jonas Mueller
ba054a9845
Only show unread comments bubble if there are any
2019-08-07 13:58:37 +09:00
Jonas Mueller
b961b8adbf
Fix pluralisation of comment(s) in tracker
...
See https://todo.sr.ht/~sircmpwn/todo.sr.ht/187
2019-08-07 13:58:35 +09:00
Drew DeVault
8ff1a0cd20
Append label to search terms from tracker page
2019-06-02 15:58:37 -04:00
Drew DeVault
82214026e1
Remove unnecessary CSRF token from tracker search
2019-04-15 22:48:10 -04:00
Drew DeVault
ca23127257
Fix null tracker descriptions
2019-02-27 08:45:22 -05:00
Drew DeVault
4dcda4c690
Linkify ticket titles on tracker page
2019-02-22 16:35:22 -05:00
Drew DeVault
7ccee085ad
Use layout-full base where appropriate
...
Also removes todo.html entirely
2019-02-11 11:18:09 -05:00
Francis Dinh
b1b61aaaa0
Add label to search placeholder
2019-01-29 10:17:59 -05:00
Drew DeVault
01f734bd8c
Updates per core.sr.ht OAuth changes
2018-12-30 15:52:29 -05:00
Ivan Habunek
40f66d5420
Preload seen tickets list
...
Loads the data in one query instead of one per ticket.
2018-12-14 17:41:23 -05:00
Drew DeVault
b0d6e23ce2
Split tracker settings into tabs
2018-12-12 22:06:31 -05:00
Drew DeVault
ace2459bcd
Revert "Load seen time in the same query as tickets"
...
This reverts commit c7ed6615da
.
2018-12-04 11:47:58 -05:00
Ivan Habunek
5a194d7010
Fetch comment count instead of all comments
...
This will improve performance, especially when there are many comments.
2018-11-21 08:26:33 -05:00
Ivan Habunek
c7ed6615da
Load seen time in the same query as tickets
...
Use left join to load related TicketSeen objects along with Tickets
instead of doing a query per ticket when rendering.
2018-11-20 18:55:40 -05:00
Ivan Habunek
dc0de33664
Make use of filters to make code more readable
2018-11-20 08:12:23 -05:00
Drew DeVault
e84cd7218c
Add CSRF tokens
2018-11-16 00:40:57 -05:00
Ivan Habunek
de0137a0b0
Extract rendering of labels to a function
...
Extracted helper methods for rendering URLs to urls.py to avoid having
to repeat that code.
2018-10-24 20:11:37 -04:00
Ivan Habunek
d46dd6094f
Improve ORM relationships to and from Labels
...
* rename all backrefs to TicketLabel to 'ticket_labels'
* add Ticket.labels relationship through TicketLabel secondary
* add Label.tickets relationship through TicketLabel secondary
This avoids confusion as accessing 'ticket_labels' property will return
TicketLabel objects, and accessing 'labels' will return Label objects.
Also makes the code less verbose.
2018-10-24 20:09:08 -04:00
Drew DeVault
8bb8b3d7e0
Link to label searches from ticket page
2018-10-18 08:40:38 -04:00
Ivan Habunek
def9432287
Implement searching by label
...
Also link labels in ticket list to search by label.
2018-10-18 08:36:20 -04:00
Drew DeVault
0b87f69646
Style improvements to labels
...
Also fixes a bug with setting labels on tickets
2018-10-16 21:33:05 -04:00
Ivan Habunek
fb70ccd774
Show labels in ticket list and detail views
2018-10-16 21:10:40 -04:00