Commit Graph

147 Commits

Author SHA1 Message Date
Ivan Habunek 017ffcba7e Parse YAML frontmatter if at beggining of paste 2019-06-26 18:04:21 -04:00
Ivan Habunek 8dca6d6ec2 Inject commonly used modules via context processor
Additionally removes unused highlight_file template args.
2019-06-26 18:04:15 -04:00
Drew DeVault 5b659419e5 Add Arch Linux build manifest 2019-06-24 19:01:25 -04:00
Drew DeVault 28e5b4c355 Add environment to config.example.ini 2019-06-24 13:37:23 -04:00
Ivan Habunek 52e772e909 Style tables rendered from markdown
Done by inheriting .table because it's not possible to add a class
parameter to rendered tables. Width set to auto so that tables would not
be forced to be full-width.
2019-06-24 13:37:23 -04:00
Ivan Habunek 11e7497eb7 Move inline style to scss 2019-06-24 13:37:23 -04:00
Éloi Rivard 6ac7deaac6 Define 'make' program via an environment variable 2019-05-29 08:55:00 -04:00
Drew DeVault faa43dc53c Normalize API per conventions 2019-04-29 11:08:24 -04:00
Ivan Habunek aaf9903626 Add missing validation object 2019-04-29 11:07:19 -04:00
Drew DeVault 1ef5b538ea Update config.example.ini 2019-04-19 09:53:37 -04:00
Drew DeVault 977c7d07ee Deploy new version 2019-04-18 18:26:41 -04:00
Drew DeVault 35dbc012fe Switch to Alpine 3.9 for builds 2019-04-18 18:19:30 -04:00
Drew DeVault 67654ea675 Change default paste visibility to unlisted 2019-04-18 18:19:06 -04:00
Drew DeVault df4d4ca766 Fix up visibility patchset 2019-04-17 13:09:39 -04:00
Mykyta Holubakha 71e4ca603e Allow setting and updating visibility using API 2019-04-17 13:01:59 -04:00
Mykyta Holubakha 3dec85ed45 API: check access to private pastes 2019-04-17 13:01:58 -04:00
Mykyta Holubakha f17b057bf0 Allow setting visibility when creating a paste 2019-04-17 13:01:56 -04:00
Mykyta Holubakha 898eef310d Add manage view to pastes
Allow to change a paste's visibility using the settings page
2019-04-17 13:01:53 -04:00
Mykyta Holubakha 8fc1124b2d Show private pastes only to the owner 2019-04-17 13:01:51 -04:00
Mykyta Holubakha 642db5ad56 Add visibility column to pastes 2019-04-17 13:01:49 -04:00
Drew DeVault 84d18aa1b6 Update to use core.sr.ht's get_origin 2019-04-09 20:14:26 -04:00
Drew DeVault 5ea4c8bb83 Updates to webhooks per core.sr.ht changes 2019-04-04 11:06:55 -04:00
Tommy Nguyen 49afca152e Add margin under view pastes button for mobile 2019-03-21 14:04:41 -04:00
Drew DeVault 42d24a2437 Allow pastes with duplicate hashes 2019-03-17 22:57:51 -04:00
Drew DeVault 667356509b Fix 500 on empty pastes 2019-03-12 18:34:49 -04:00
Francis Dinh 728842d6e8 Normalize linefeeds when submitting via web form
The previous attempt at fixing it only does it for the REST API. This
applies the change for submission via web as well.

Fixes #10
2019-03-11 17:58:11 -04:00
Tommy Nguyen 1ea5ac3d29 Normalize linefeeds to \n when POST'ing data
When you submit an HTML form, the W3 standard requires the data be
separated by CRLF. However, some people will find this surprising so we
normalize the linefeeds, which is what services like Gist do.

Fixes #10
2019-03-11 14:16:43 -04:00
Drew DeVault eb2bac8330 Fix package name in setup.py 2019-03-03 13:23:03 -07:00
Drew DeVault da29303bda Add paste:read to blob by ID 2019-03-03 12:06:13 -07:00
Drew DeVault 1e9e3bfc72 Add API module to setup.py 2019-03-03 11:09:28 -07:00
Drew DeVault bfe888ffd5 Implement paste.sr.ht API 2019-03-03 11:07:46 -07:00
Drew DeVault b33e112669 Fix bugs around null filenames 2019-03-01 13:58:27 -07:00
Drew DeVault 6d854dda40 Add alembic modules to setup.py 2019-02-27 08:58:06 -05:00
Liam Cottam abb83d08b9 Fix empty title for pastes without filename
Added in enabling the pastesrht-migrate tool
2019-02-27 08:55:26 -05:00
Drew DeVault ced80d2ae1 Fix "view pastes" with partial pastes 2019-02-24 19:33:16 -05:00
Drew DeVault d21aba55ca Fix paste-id == None 2019-02-24 17:07:42 -05:00
Drew DeVault 6023e97dd1 Add @loginrequired to paste list view 2019-02-24 17:02:16 -05:00
Drew DeVault 51938137c7 Import abort in public.py 2019-02-24 16:42:18 -05:00
Drew DeVault f51065d68e Fix typo in .builds/alpine.yml 2019-02-24 16:41:16 -05:00
Drew DeVault c310aceb3b Add Alpine CI 2019-02-24 16:38:11 -05:00
Drew DeVault bd9e00f840 Update setup.py 2019-02-24 16:00:37 -05:00
Drew DeVault e8d0e86b6b Add list of pastes 2019-02-24 15:29:12 -05:00
Drew DeVault 99f5935287 Rig up URL in nav-tabs 2019-02-24 15:12:57 -05:00
Drew DeVault f51567a0ad Implement raw blob view 2019-02-24 15:12:01 -05:00
Drew DeVault 90274ab6a3 Add support for multiple files 2019-02-24 15:08:51 -05:00
Drew DeVault d607d09988 Initial pass on single-file paste support 2019-02-24 14:43:54 -05:00
Drew DeVault 728562215e Initial commit 2019-02-09 14:48:50 -05:00