Commit graph

2284 commits

Author SHA1 Message Date
Fabien Basmaison
32fb06c9e6 Prevent stars from wrapping on multiple lines. 2021-04-24 13:23:03 +02:00
Fabien Basmaison
9ea91d8e7c cover: Search layout: Reduce padding around covers. 2021-04-24 12:56:38 +02:00
Fabien Basmaison
7f0b3184a1 cover: Use book-cover as component:
- Avoid specifying context-dependent values in CSS for components. Those values can be defined by the context calling the component.
- Use `<figure>` with optional caption.
- Reduce redundant markup.
- Allow more variables to be passed to the book-cover (image path and class for the container).
- Hide the book cover to screen readers.
2021-04-24 12:48:55 +02:00
Mouse Reeve
179ba24115 Safely handle invalid book 2021-04-23 15:29:55 -07:00
Mouse Reeve
a499259163 Fixes python formatting 2021-04-23 15:01:35 -07:00
Mouse Reeve
9ba0aec6d9 Show subtitles when titles are very short 2021-04-23 14:58:48 -07:00
Mouse Reeve
126594ec49 Cleans up queryset declarations 2021-04-23 13:47:13 -07:00
Mouse Reeve
888930f891 User request path for pagination 2021-04-23 13:35:12 -07:00
Mouse Reeve
d2b2065db8 Show user's book content 2021-04-23 13:32:58 -07:00
Mouse Reeve
cbdf573261
Merge pull request #991 from bookwyrm-social/character-encoding
Fixes character encoding bug
2021-04-23 12:06:04 -07:00
Mouse Reeve
d31827e5aa
Merge pull request #975 from reesporte/main
spanish translation updates
2021-04-23 12:03:03 -07:00
Mouse Reeve
013d5f1db3
Merge pull request #987 from bookwyrm-social/duplicate-boosts
Don't broadcast boosts twice
2021-04-23 11:58:01 -07:00
Mouse Reeve
607e98b331 Fixes character encoding error 2021-04-23 11:53:45 -07:00
Mouse Reeve
c907b1ff09 Test to replicate character encoding bug 2021-04-23 11:07:19 -07:00
Mouse Reeve
79424f7bfb Python formatting 2021-04-23 10:56:17 -07:00
Mouse Reeve
32e694032b Fixes duplicate boost model verification 2021-04-23 10:49:17 -07:00
Joachim
de19c7d7a6 Update status_header.html 2021-04-23 18:38:33 +02:00
Mouse Reeve
b457446f2f Don't save duplicate boosts 2021-04-22 19:36:27 -07:00
Mouse Reeve
f9c40aadd9 Python formatting 2021-04-22 18:30:58 -07:00
Mouse Reeve
74ccaf27fa Tag removal migration 2021-04-22 18:23:23 -07:00
Mouse Reeve
a3f91d991f Remove tag form 2021-04-22 18:19:42 -07:00
Mouse Reeve
563623616c Merge branch 'main' into remove-tags 2021-04-22 18:18:24 -07:00
Mouse Reeve
9148f36719 Fixes duplicate boosts 2021-04-22 18:16:00 -07:00
Mouse Reeve
adb8f6f90f
Merge pull request #986 from bookwyrm-social/scroll-behavior
Removes scroll padding
2021-04-22 14:38:46 -07:00
reese
6915b195ce translated some strings 2021-04-22 16:28:57 -05:00
Mouse Reeve
c6e8161a9f Removes scroll padding 2021-04-22 13:08:22 -07:00
Joachim
15c7a1dc82 Update bookwyrm.css 2021-04-22 20:57:24 +02:00
Joachim
6c89eb1b65 Update bookwyrm_tags.py 2021-04-22 20:48:25 +02:00
Joachim
15241e3807 ……… come back another day 2021-04-22 20:48:06 +02:00
Joachim
ebf20de10e linter linter go away 2021-04-22 20:45:16 +02:00
Joachim
00e6d0524f Accessibility: add language to lang attr on html tag
I only use the first subtag of the language string given by `get_language()`, because `get_language()` returns an all-lowercase string, and I don't know if it'll be considered valid by browsers.
2021-04-22 20:41:58 +02:00
Mouse Reeve
c455585262 Adds missing data file 2021-04-22 10:30:00 -07:00
Mouse Reeve
3ed822b9ea Don't erase follows on update 2021-04-22 10:28:10 -07:00
Mouse Reeve
a797b68558 Adds test that replicates follower deletion bug 2021-04-22 10:22:37 -07:00
Mouse Reeve
7bad8ac354
Merge pull request #982 from bookwyrm-social/flower-errors
Flower errors
2021-04-22 09:50:08 -07:00
Mouse Reeve
cfa424ca59 Fixes nondeterministic test outcome 2021-04-22 09:37:24 -07:00
Mouse Reeve
e9dc63e296 Only remove objects that are known 2021-04-22 09:25:12 -07:00
Mouse Reeve
c7daf27baf Adds migration for last edited by field 2021-04-22 09:06:26 -07:00
Mouse Reeve
9c87c91c62
Merge pull request #979 from bookwyrm-social/allow-refollow
Allow refollow
2021-04-22 08:56:48 -07:00
Mouse Reeve
4a73894802
Merge pull request #978 from bookwyrm-social/federation-bugs
Federation bugs
2021-04-22 08:42:47 -07:00
Mouse Reeve
6b84e53ddd Send accepts to duplicate follow requests 2021-04-22 08:40:32 -07:00
Mouse Reeve
d5b27e2202 Test re-following a user 2021-04-22 08:31:32 -07:00
Mouse Reeve
dd0aa7a123 Test that remote user is being set on books 2021-04-22 08:08:03 -07:00
Mouse Reeve
db09ca4331 Adds last edited by to author 2021-04-22 07:51:06 -07:00
Mouse Reeve
c405580e8e Updates edition federation test 2021-04-22 07:37:12 -07:00
Mouse Reeve
ae5e744731 Save last edited by user 2021-04-22 07:29:09 -07:00
Mouse Reeve
1472f7d919 Restores markdown rendering in book description previews 2021-04-22 06:58:21 -07:00
Joachim
2749e6ad95 Fix CSS for linter 2021-04-21 22:36:07 +02:00
Joachim
7a5ea31ee7 Fix progress display in title 2021-04-21 22:32:26 +02:00
Joachim
0b0a283e64 Fix buttons styles 2021-04-21 22:32:14 +02:00
Joachim
b1fea98458 Use one card-footer-item per footer button 2021-04-21 22:31:27 +02:00
Joachim
415a12cf78 Move H3 tag 2021-04-21 22:30:52 +02:00
Mouse Reeve
85b1c920cd
Merge pull request #973 from joachimesque/dropdown-style
Dropdown component design fixes
2021-04-21 13:08:41 -07:00
Joachim
53b47aa264 Revert "Move card footer container inside the card-footer component"
This reverts commit 58aeb72afa.
2021-04-21 21:48:31 +02:00
Joachim
17436b6657 Header fixes 2021-04-21 21:48:19 +02:00
Joachim
720109564d Fix condition 2021-04-21 21:35:42 +02:00
Joachim
265c38e877 Update direct message button style 2021-04-21 21:31:58 +02:00
Joachim
e4836bd9b3 Fix for lint 2021-04-21 21:29:28 +02:00
Joachim
2ae9085e55 Vertically align cells in desktop view 2021-04-21 21:26:20 +02:00
Joachim
482774f1e1 Add mobile styles for book preview table 2021-04-21 21:25:37 +02:00
Joachim
2987029a7d Remove useless style on non-dropdown element 2021-04-21 19:37:12 +02:00
Joachim
c86800be01 Remove padding and add radius to menu
Without padding, the children's lack of radius mask the radius. Using is-clipped helps clip with the parent's radius
2021-04-21 19:36:59 +02:00
Joachim
df72061c57 Improve menu action styles 2021-04-21 19:36:11 +02:00
Joachim
544dbda4ad Move menu item styles to menu item 2021-04-21 19:35:50 +02:00
Joachim
f01b7fbd15 Design and a11y fixes on Create Status forms
- Use `field` CSS class to better respect Bulma styles
- Fix buggy `id` on content field, causing a11y problems
- Fix progress control & select styles
- Various small style fixes
2021-04-21 18:34:04 +02:00
Joachim
2cacf5146b
Merge branch 'main' into smaller-statuses-dense-cards 2021-04-21 17:40:20 +02:00
Joachim
f7adaee0ed Verbosify buttons 2021-04-21 17:35:55 +02:00
Joachim
13957c2f44 Move footer some items to header
- Header elements are now enclosed in a media layout
- Footer elements are not in a card-footer anymore
2021-04-21 17:32:35 +02:00
Joachim
58aeb72afa Move card footer container inside the card-footer component 2021-04-21 17:23:48 +02:00
Mouse Reeve
914f617689 Cleans up imports 2021-04-20 14:06:45 -07:00
Mouse Reeve
d62cf3fecb Merge branch 'main' into smaller-statuses 2021-04-20 14:02:23 -07:00
Mouse Reeve
92bd5ab291
Merge pull request #970 from bookwyrm-social/display-fixes
Display fixes
2021-04-20 13:59:32 -07:00
Mouse Reeve
f4abd7b797 Linter fix 2021-04-20 13:50:53 -07:00
Mouse Reeve
5fc1e3f2fe Fixes merge regression for localized timestamps 2021-04-20 13:50:05 -07:00
Mouse Reeve
afde94d4c2
Merge branch 'main' into smaller-statuses 2021-04-20 13:48:21 -07:00
Mouse Reeve
baa423bb69
Merge pull request #967 from bookwyrm-social/date-localization
Fixes localization weirdness with dates
2021-04-20 13:44:34 -07:00
Mouse Reeve
2e12d54687
Merge pull request #966 from bookwyrm-social/user-admin
User admin
2021-04-20 13:43:51 -07:00
Mouse Reeve
c07dcb5458 Remove spaceless templatetags that cause rendering issues in statuses 2021-04-20 13:38:25 -07:00
Mouse Reeve
7012f95d6d Use input instead of textarea for series 2021-04-20 13:07:55 -07:00
Mouse Reeve
d47bbde651 Only one row of footer on list items 2021-04-20 13:02:43 -07:00
Mouse Reeve
b22d1863c9 More robust user page test and bug fix 2021-04-20 12:31:45 -07:00
Mouse Reeve
cbccb07252 Fixes display of replies 2021-04-20 11:18:59 -07:00
Mouse Reeve
9e5ebf9807 Move stars into header for ratings 2021-04-20 11:06:14 -07:00
Mouse Reeve
07dbc4c6c0 Much longer "full" version of trimmed text 2021-04-20 09:56:01 -07:00
Mouse Reeve
978760475f More compact display of statuses 2021-04-20 09:54:02 -07:00
Mouse Reeve
2c013b677b Patch broadcast in test 2021-04-19 20:01:29 -07:00
Mouse Reeve
63509c954d Adds test for changing user group 2021-04-19 18:12:55 -07:00
Mouse Reeve
0a37b4665c Adds control for moderator to set user group 2021-04-19 17:29:29 -07:00
Mouse Reeve
e1d24577d4 Fixes tests (again) 2021-04-19 16:42:51 -07:00
Mouse Reeve
11aa8baa53 Fixes tests and notifications page 2021-04-19 16:33:28 -07:00
Mouse Reeve
6a50c021ce Try naturalday for published date 2021-04-19 16:30:15 -07:00
Mouse Reeve
70a819951e Fixes localization weirdness with dates 2021-04-19 16:18:29 -07:00
Mouse Reeve
35cb3fa8fc Updates tests 2021-04-19 16:08:01 -07:00
Mouse Reeve
da19089d34 Changes language from "deactivate" to "suspend" 2021-04-19 15:55:28 -07:00
Mouse Reeve
1542866b6c Adds user admin view 2021-04-19 15:40:51 -07:00
Mouse Reeve
0dd8b33991 Moves user admin templates into snippets 2021-04-19 15:19:55 -07:00
Mouse Reeve
788e282dce Moves user admin pages into their own directory 2021-04-19 15:12:36 -07:00
Mouse Reeve
0947b79fb1 Python formatting 2021-04-19 15:06:33 -07:00
Mouse Reeve
91aa6fa95f Remove unneeded page checking logic 2021-04-19 15:01:20 -07:00
Mouse Reeve
77775d9bf8 Remove superfluous calls to all() 2021-04-19 14:47:59 -07:00
Mouse Reeve
d69ce8cbbd
Merge pull request #923 from SavinaRoja/584-sorting-lists
584 sorting of lists
2021-04-19 14:37:50 -07:00
Pablo Barton
fa75438070 per review, removing custom pagination for booklist and handling all pending books at the end of the list 2021-04-18 14:46:28 -04:00
Mouse Reeve
43a785b6c5
Merge pull request #959 from arkhi/editions-list
Display book identifiers in the list of Editions
2021-04-18 09:37:34 -07:00
Fabien Basmaison
415d6c4e3f Remove spacing between publisher info blocks. 2021-04-18 18:24:32 +02:00
D Anzorge
7a2731aef4 Use object ids with our instance base path for follow accept/reject 2021-04-18 18:08:13 +02:00
Pablo Barton
afd1cdc2a8 adjust test 2021-04-18 11:52:22 -04:00
Pablo Barton
3d0de5bea8 approving list items puts them at the end of the list 2021-04-18 11:15:42 -04:00
Fabien Basmaison
66c72c8b41 Add book identifiers to list of Editions:
- Add template for identifiers.
- Remove `space-between` that adds too much space on narrow views.
- Apply the `content` class only on publisher infos to avoid applying automatic styles to the description list.
2021-04-18 15:59:02 +02:00
Pablo Barton
602c8c83ba black 2021-04-17 22:09:00 -04:00
Pablo Barton
9031184176 addressing some review 2021-04-17 21:31:38 -04:00
Mouse Reeve
2914eea281 Catch user not found errors in feed 2021-04-17 18:23:33 -07:00
Mouse Reeve
02e6602a0b Reject statuses from deactivated remote users 2021-04-17 17:55:22 -07:00
Mouse Reeve
8421a2e832 Clarifies logic in if statement 2021-04-17 15:14:23 -07:00
Mouse Reeve
44528eaa09 Don't double-override to_activity 2021-04-17 13:31:37 -07:00
Mouse Reeve
ebdbdc8790 Broadcast deletions 2021-04-17 13:19:23 -07:00
Mouse Reeve
5b7f2007e8 Broadcast user deletions 2021-04-17 12:51:36 -07:00
Mouse Reeve
5df2ac676b Fixes error on deletion requests for unknown users 2021-04-17 12:51:30 -07:00
Mouse Reeve
779f44e9bd
Merge pull request #954 from bookwyrm-social/ap-image
Handle both Image and Document types
2021-04-17 12:11:41 -07:00
Mouse Reeve
020e6f74ef Python formatting 2021-04-17 11:57:06 -07:00
Mouse Reeve
8548cc99db
Merge pull request #946 from bookwyrm-social/ap-questions
Gracefully handle expect but unsupported activities
2021-04-17 11:52:40 -07:00
Mouse Reeve
7c85b554cf Handle both Image and Document types 2021-04-17 11:47:48 -07:00
Mouse Reeve
45cf1cd7a7
Merge pull request #953 from bookwyrm-social/admin-filters
Filter reports and users by server name and username
2021-04-17 11:26:12 -07:00
Mouse Reeve
6433aa23b2 Python formatting 2021-04-17 11:09:48 -07:00
Mouse Reeve
239d927e94
Merge pull request #952 from bookwyrm-social/user-reports
Fixes form for reporting users
2021-04-17 10:56:46 -07:00
Mouse Reeve
10cf189312 Filter reports and users by server name and username 2021-04-17 10:56:26 -07:00
Mouse Reeve
e0c16b21e9 Fixes form for reporting users 2021-04-17 10:28:03 -07:00
Mouse Reeve
01cfa9dde9 Show more info on report page about user and instance 2021-04-17 10:12:50 -07:00
Pablo Barton
f6824268ed 584 sorting of lists 2021-04-16 22:17:15 -04:00
Mouse Reeve
bd294cce83 Check if obj exists for updates 2021-04-16 15:17:55 -07:00
Mouse Reeve
caa261f4bf Gracefully handle expect, unsupported activities 2021-04-16 15:12:38 -07:00
Mouse Reeve
80ea459711 Suitable test name and comment 2021-04-15 17:57:02 -07:00
Mouse Reeve
da453f8056 Adds test for populate streams management command 2021-04-15 17:43:27 -07:00
Mouse Reeve
f792dd0dac
Merge pull request #943 from bookwyrm-social/activity-serialize-errors
Activity serialize errors
2021-04-15 17:00:00 -07:00
Mouse Reeve
220fb926c9 Rename Image to Document 2021-04-15 16:35:04 -07:00
Mouse Reeve
2f493336ad Don't try to delete nonexistant objects 2021-04-15 16:24:05 -07:00
Mouse Reeve
addcc59d7f Makes cc fields optional
Plus a bit of cleanup in comments and to: fields
2021-04-15 16:21:54 -07:00
Mouse Reeve
25b82fd2b0 Updates test 2021-04-15 16:11:03 -07:00
Mouse Reeve
9176a2b9ee Fixes bug that causes recusive broadcasts 2021-04-15 15:51:49 -07:00
Joachim
71390f1735 Set body height 2021-04-15 21:51:14 +02:00
Mouse Reeve
adaaf8da67 Fixes typo in populate streams command 2021-04-15 10:29:56 -07:00
Pablo Barton
88d37736ee 902 using get_page for Paginator instead of page 2021-04-15 08:54:23 -04:00
Joachim
74573b5355
Restrict list creation form to authenticated users
When visiting the `/list` route on an instance while unauthenticated, the button to toggle the List creation form is shown. This PR aims to hide the button to unauthenticated visitors.
2021-04-14 20:07:51 +02:00
Mouse Reeve
00c6b7e6e0 Fixes regex group 2021-04-13 18:26:54 -07:00
Mouse Reeve
e8d1c04712 Fixes logic error in checking sender 2021-04-13 18:04:54 -07:00
Mouse Reeve
822e2e1a93 Python formatting 2021-04-12 15:09:50 -07:00
Mouse Reeve
a907dfdce7 Adds tests for block lists 2021-04-12 15:08:10 -07:00
Mouse Reeve
901e7f69d4 Allow admins to upload domain blocklists
Fixes #804
2021-04-12 14:23:51 -07:00
Mouse Reeve
a1e28d810d
Merge pull request #881 from mouse-reeve/domain-block
Block federation at the domain level
2021-04-12 10:41:02 -07:00
Mouse Reeve
bb352439d3 Fixes views test for federation unblock 2021-04-12 10:27:29 -07:00
Mouse Reeve
878b3c6fe8 Only reactivate appropriate users when undoing domain block 2021-04-12 10:16:03 -07:00