Commit graph

2183 commits

Author SHA1 Message Date
Mike Colagrosso
dad5df0059 Add index on EbookId
There are several queries that join the `Projects` and `Ebooks` tables.
An index speeds up those joins.
2025-01-02 09:57:45 -06:00
Mike Colagrosso
eacd7306b0 Remove templates/EbookProjects.php
378555d removed the reference to it in `www/ebook-placeholders/get.php`
2025-01-01 20:29:15 -06:00
Paul Bryan
dacd2db3b3 Fix typo 2025-01-01 13:06:35 -06:00
Alex Cabal
21f86fd147 Fix typo 2025-01-01 11:13:01 -06:00
Alex Cabal
bcba5c2192 Remove now-redundant PD placeholders code 2025-01-01 10:05:59 -06:00
Alex Cabal
ee14ff30ea Fix broken HTML in PD Day post 2025-01-01 09:04:28 -06:00
Alex Cabal
bbf8110373 Fix PD day banner on mobile 2025-01-01 09:04:19 -06:00
Alex Cabal
8e5f065b89 Tweak PD Day 2025 blog post 2024-12-31 22:31:07 -06:00
Alex Cabal
cb379f58a3 Tweak PD Day banner 2024-12-31 22:31:07 -06:00
Mike Colagrosso
f0bfa7a43b Rewrite DeleteUnused() queries using new indices 2024-12-31 22:31:00 -06:00
Mike Colagrosso
5c8315e6ff Add new indices for deleting unused records 2024-12-31 22:31:00 -06:00
partev
18420fdbd9 use the main wikipedia link instead of the mobile like
en.m.wikipedia.org -> en.wikipedia.org
2024-12-31 22:23:18 -06:00
Alex Cabal
fcb5240585 Tweak PD Day banner 2024-12-31 15:00:14 -06:00
Alex Cabal
6ad882e2cc Move donation banners 2024-12-31 14:28:38 -06:00
Alex Cabal
9abae874f6 Fix sort order of collection placeholders with no sequence 2024-12-31 14:21:59 -06:00
Alex Cabal
e664063f18 Switch image in PD day post 2024-12-31 13:09:39 -06:00
Alex Cabal
b8def40795 Tweak semantics and contribute index page 2024-12-31 11:08:21 -06:00
Alex Cabal
b8c4de4b20 Change order of collection sorting 2024-12-31 10:32:57 -06:00
Alex Cabal
40296c2562 Fix wrong property references in user edit form 2024-12-31 10:31:16 -06:00
Alex Cabal
18dce33946 Tweak PD Day 2025 blog post 2024-12-30 23:44:08 -06:00
Alex Cabal
e972267ee8 Add social media manager ask to footer 2024-12-30 22:14:01 -06:00
Alex Cabal
616b9677a9 Fix donation progress bar 2024-12-30 22:04:09 -06:00
Alex Cabal
d146550bf3 Tweak PD Day 2025 blog post 2024-12-30 22:04:02 -06:00
Alex Cabal
7b676269a8 Code formatting 2024-12-29 15:16:22 -06:00
Alex Cabal
53fe66a364 Initialize empty values for some image URLs 2024-12-29 15:10:41 -06:00
Alex Cabal
31633ee8ac Fix class in search form 2024-12-29 15:10:32 -06:00
Alex Cabal
e4e945f63f Tweak wanted list template structure 2024-12-29 14:14:20 -06:00
Alex Cabal
b8690f91b5 Don't show two success messages when creating a project 2024-12-29 14:14:20 -06:00
Weijia Cheng
160e639a78 Add instructions on transcribing poetry 2024-12-29 13:45:58 -05:00
Weijia Cheng
50f4be1f2e Remove spreadsheet link from how-tos index (duplicates spreadsheets page) 2024-12-29 13:45:58 -05:00
Alex Cabal
2c0c87bcb0 Expand placeholder subforms if they have data 2024-12-28 19:20:30 -06:00
Alex Cabal
c43c4fa2dd Tweak wanted list appearance 2024-12-28 19:14:04 -06:00
Mike Colagrosso
c016547e2c Rename template to CollectionDescriptor 2024-12-28 14:18:08 -06:00
Mike Colagrosso
2d5cba0aaa Rename function to Ebook::GetByIsWantedAndDifficulty() 2024-12-28 14:18:08 -06:00
Mike Colagrosso
e25993b208 Add parameter to MarkdownToHtml for inline HTML 2024-12-28 14:18:08 -06:00
Mike Colagrosso
7bd08087dc Inline and remove templates/WantedEbooks.php 2024-12-28 14:18:08 -06:00
Mike Colagrosso
5b605a00b7 Populate the wanted list from DB placeholders 2024-12-28 14:18:08 -06:00
Mike Colagrosso
0359119a11 Add Formatter::MarkdownToInlineHtml()
HTML without the surrounding `<p>` tags will be useful to show
placeholder notes to admins on the wanted ebooks page.

Examples of generating block-level and inline HTML:

https://github.com/erusev/parsedown/wiki/Tutorial:-Get-Started
2024-12-28 14:18:08 -06:00
Mike Colagrosso
9652d63b12 Add Template::CollectionFormatted for common formatting 2024-12-28 14:18:08 -06:00
Alex Cabal
617d27ec92 Tweak comment 2024-12-27 21:21:57 -06:00
Alex Cabal
5b86428404 Fix duplicate attribute in project edit form 2024-12-27 21:21:52 -06:00
Weijia Cheng
e585ecdf3f Add a review initial commit step to the review guide 2024-12-27 14:49:23 -06:00
Weijia Cheng
8d8d657d10 Add Georgia Douglas Johnson spreadsheet 2024-12-27 14:49:23 -06:00
Mike Colagrosso
4b0c38ae97 Nudge the placeholder ribbon left 2px, past the border 2024-12-27 13:50:02 -06:00
Alex Cabal
7df973bea2 Fix wrong catch block in artwork upload 2024-12-26 17:09:38 -06:00
Alex Cabal
2948f96518 Add blog post 2024-12-26 17:07:03 -06:00
Alex Cabal
c936a68696 Update wanted ebooks list 2024-12-26 12:53:26 -06:00
Mike Colagrosso
d6dd10be9c Clean up unused Tags, LocSubjects, and Collections
On `Ebook::Save()` and `Ebook::Delete()`, remove any unreferenced `Tag`,
`LocSubject`, and `Collection` records. These are analogous to these lines in
`Ebook::Create()`:

```
$this->CreateTags();
$this->CreateLocSubjects();
$this->CreateCollections();
```

`EbookPlaceholder`s can't have `Tags` or `LocSubjects` at the moment, but other
mistakes in production that are later corrected could leave unused `Tags` and
`LocSubjects`.

Context: https://github.com/standardebooks/web/pull/447#issuecomment-2555734692
2024-12-26 12:10:13 -06:00
Alex Cabal
88ed9639f5 Add dark mode support to emails 2024-12-23 15:07:06 -06:00
Alex Cabal
ca8a11f663 Improve responsive view of some forms 2024-12-23 14:07:22 -06:00