RumovZ
4692a48ef3
Add card mod column for notes mode
2021-04-08 20:14:10 +02:00
RumovZ
2350cd6e91
Add deck column for notes mode
2021-04-08 19:46:06 +02:00
RumovZ
c6ebb9b441
Merge row contexts
2021-04-08 13:51:46 +02:00
RumovZ
ee0ad6f5d6
Fix deck column serialization string
2021-04-06 23:03:30 +02:00
RumovZ
929b7dc15b
Make Column a strum
2021-04-06 16:54:09 +02:00
Damien Elmes
8d6b9d15a5
avoid fetching decks for each row
...
Like notetypes, there is a col.get_deck() routine which caches
fetches, so that successive fetches are cheap. This makes it simpler
to just fetch the deck at the start.
We were also attempting to fetch a deck with id 0 for each row; I've
changed this so that we only fetch it if the id is non-zero.
I18n uses an Arc internally, so it is cheap to clone. This allow us
to drop the lifetime specifiers on the context structures.
2021-04-05 15:13:32 +10:00
Damien Elmes
4e9a5ec5ea
fix a clippy lint
2021-04-01 18:01:31 +10:00
Damien Elmes
2b6c8b4296
tuple type for InvalidInput
2021-04-01 17:37:18 +10:00
Damien Elmes
094e4ad461
crate::err -> crate::error
2021-04-01 16:07:13 +10:00
RumovZ
99e28068f9
Refactor get_row_color()
2021-03-31 08:56:54 +02:00
RumovZ
5e151cdc42
Pass Column by value
2021-03-31 00:02:10 +02:00
RumovZ
8779fb5ede
Add note interval column
2021-03-30 23:44:35 +02:00
RumovZ
31155f2dcd
Refactor note_ease_str()
2021-03-30 23:44:16 +02:00
RumovZ
f530c6d852
Fix comment typo
2021-03-30 21:40:35 +02:00
RumovZ
1ad91a5312
Add note due column
2021-03-30 21:39:15 +02:00
RumovZ
e9c14a763c
Refactor card_due_str()
2021-03-30 20:50:09 +02:00
RumovZ
da156cd759
Rename browser_rows to browser_table
...
Reflects the addition of column handling.
2021-03-30 12:08:35 +02:00