aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The Cancel button is now managed by crispy forms.Matthew Lemon2024-08-083-7/+12
|
* wip: adding delete and replace buttons for PDFsMatthew Lemon2024-08-053-85/+94
|
* Add feature to add PDFs to resourcesMatthew Lemon2024-08-036-6/+120
| | | | Implemented the ability to upload and manage PDFs for resources. Added the necessary form, view, and templates to support this functionality. Updated routes and UI elements to integrate the new feature seamlessly.
* Add return type hint to upload_snapshotted_pages_to_s3Matthew Lemon2024-08-031-1/+1
| | | | This change explicitly specifies that the function upload_snapshotted_pages_to_s3 returns a boolean. Adding type hints helps improve code readability and maintainability by providing clear expectations on the function's return value.
* Add admin models for PDFResource and PDFPageSnapshotMatthew Lemon2024-08-032-1/+15
| | | | Expand the admin interface to include PDFResource and PDFPageSnapshot models. The new admin classes define `list_display` attributes to manage displayed columns in the admin list views.
* Removes blackism....Matthew Lemon2024-08-031-3/+1
|
* Remove Client created log line that is unnecessary.Matthew Lemon2024-08-031-1/+0
|
* Add S3 utility module and refactor S3 functions into itMatthew Lemon2024-08-034-113/+116
| | | | Created a new `s3.py` utility module for handling S3 interactions including file uploads and generating presigned URLs. Refactored views to utilize these new utility functions and moved the PDF collection type function to a new `utils.py` module to improve code organization and readability.
* Updated help text in form field.Matthew Lemon2024-08-031-1/+1
|
* Adds ability to update the thumbnail/feature imagesMatthew Lemon2024-08-035-10/+82
|
* wip: adding the update thumbnails formMatthew Lemon2024-08-035-5/+47
|
* Refactored list template into includes to fix div hell.Matthew Lemon2024-08-023-143/+104
|
* wip: trying to fix fucked divs on index pageMatthew Lemon2024-08-021-139/+140
| | | | More to come - going to have to redo all the HTML on this page.
* Fix: div problems in index page.Matthew Lemon2024-08-011-140/+139
|
* Refactor PDF collection type conditions for readability.Matthew Lemon2024-08-011-5/+5
| | | | Simplify conditional checks for PDF collection types by removing unnecessary line continuations. Also, fix param format in hx_download_button docstring and adjust string formatting for error messages.
* Fix: bug where thumbnail image filenames were not being saved on the ↵Matthew Lemon2024-08-011-0/+1
| | | | resource object.
* Responsive feature cards on index pageMatthew Lemon2024-08-011-75/+82
| | | | | - Width is responsive - Breakpoints allow for stacking at smaller ones
* Renamed additional_resource_categories to subcategories in ResourceInfo object.Matthew Lemon2024-08-011-2/+2
|
* Ordering the subcategories dropdown list on the update form.Matthew Lemon2024-08-011-0/+1
|
* Ordering the subcategories on the admin page.Matthew Lemon2024-08-011-1/+3
|
* Releasing the exception working to the error message.Matthew Lemon2024-08-011-2/+2
|
* Fix bug where new subcategories were being created on selectionMatthew Lemon2024-08-015-12/+56
|
* Fix error with validation on additional_resource_categoryMatthew Lemon2024-08-011-1/+0
|
* wip: Adds a new model for additional categoriesMatthew Lemon2024-07-297-9/+119
| | | | | | | | - Adds new ResourceSubcategory - Uses this for choices= in the Resource form (create) - Adds this new model to the admin Doesn't validate in the edit form yet,
* Formatting changes onlyMatthew Lemon2024-07-291-25/+24
|
* wip: creating a multiple choice field for additional categoriesMatthew Lemon2024-07-292-4/+12
|
* Tidy up the HTML onlyMatthew Lemon2024-07-291-3/+8
|
* Now handles EFL badges for non-featured cardsMatthew Lemon2024-07-291-2/+7
|
* Handle the long EFL badge nameMatthew Lemon2024-07-291-2/+7
| | | | The full title of "English as a Foreign Language (EFL)" did not fit inside a badge, so we have had to add a conditional in the template to guard against it.
* Card border changesMatthew Lemon2024-07-291-2/+2
|
* UI changes on index (see eblow)Matthew Lemon2024-07-281-44/+49
| | | | | | - removed Detail button - put Edit button in a card footer - Formatting the html
* Tweak to the width of the non-featured resource cardMatthew Lemon2024-07-281-1/+2
|
* Added border and badge colour based on categoryMatthew Lemon2024-07-284-4/+26
| | | | - You have to define them on the ResourceCategory model in the database
* Very simple border round feature block for EY LiteracyMatthew Lemon2024-07-113-4/+17
|
* Adds ability to add colour class to main categoryMatthew Lemon2024-07-116-2/+33
| | | | | - Creates a new line in the database - Uses this in the template instead of the default bootstrap class
* Curriculum is optional and age ranges are fixedMatthew Lemon2024-07-114-6/+46
|
* Better display of number of files in PDFMatthew Lemon2024-07-071-4/+6
| | | | | | | | - The header bar now contains a Number of files: X dependent on the number of files in the resource - The File Preview header now includes a counter number if this is a multi-page PDF - The title of PDF file is put alongside the File Preview text in the h4
* Better implementation of carouselMatthew Lemon2024-07-073-2/+20
| | | | | | - Removed the primary coloured background - Changed the colour of the next and previous icons - Reduced the width of the actual image
* Basic implementation of a carouselMatthew Lemon2024-07-041-9/+28
| | | | Needs lots of work and tidying up mind...
* Adds htmx.js local fileMatthew Lemon2024-06-291-0/+1
|
* Removed pypdfium2 which doesn't build on FreeBSDMatthew Lemon2024-06-231-17/+19
| | | | | | | | | | | | Libraries used: - PdPDF2 (to get basic PDF length) - https://pypi.org/project/PyPDF2/ - pdf2image (to extract images from each page) - https://github.com/Belval/pdf2image Reduction of quality of screenshotted image is in place. Reduced pdf screenshot quality considerably
* Fix erroneous return statementMatthew Lemon2024-06-221-3/+1
|
* Removes unnecessary commentMatthew Lemon2024-06-221-28/+0
|
* Better use of pytest-django markMatthew Lemon2024-06-221-3/+2
|
* Fixes bug where multiple PDFs not snappshottedMatthew Lemon2024-06-222-7/+38
| | | | | Includes test of new function which determines the length and composition of the snappshotted pages.
* Removes extraneous code create_resource_objectsMatthew Lemon2024-05-261-20/+0
|
* Tweaking bordersMatthew Lemon2024-05-261-1/+1
|
* Changes the flex alignment to start for non-featured resourcesMatthew Lemon2024-05-261-1/+1
|
* Tweaking the layout of the list pageMatthew Lemon2024-05-262-5/+9
|
* Correctly handles the unique constraint on feature_slotMatthew Lemon2024-05-265-69/+88
|