aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Ignore actual Rocket.toml.Harald Eilertsen2020-08-241-0/+1
| | | | To prevent it from accidentally being added to version control.
* Move database config to Rocket.toml.Harald Eilertsen2020-08-243-16/+35
| | | | | This makes for one place to config everything instead of programatically setting the config.
* Implement edit screenings in web ui.Harald Eilertsen2020-08-236-2/+112
|
* Use <time> elements in the screenings template.Harald Eilertsen2020-08-231-1/+6
|
* Store timestamps in UTC.Harald Eilertsen2020-08-232-8/+21
| | | | | | | | | For now we just hardcode that the local timezone of the site is UTC+2. Good enough for now, but something that should be configurable. Also split the date and time entries in the form again, the date refers to the start date. If the end time is before the start time, we assume it's the day after. Again, good enough for now.
* Change start/end times to complete timestamps.Harald Eilertsen2020-08-239-34/+44
| | | | | | | The way we had this until now with a date and separate start and end times does not really work. There are cases when a screening starts on one day, but ends on the next. By keeping a complete timestamp for both the start and end times, we don't fall into this problem.
* Implement deleting screenings from web ui.Harald Eilertsen2020-08-234-4/+34
|
* Implement adding screenings in the web ui.Harald Eilertsen2020-08-235-15/+134
|
* Terminate li tags.Harald Eilertsen2020-08-232-1/+2
|
* Implement adding and listing films.Harald Eilertsen2020-08-235-4/+88
|
* Add link to create new rom in room list template.Harald Eilertsen2020-08-231-0/+3
|
* Implement adding rooms through the web ui.Harald Eilertsen2020-08-226-3/+50
|
* Swap rank on plain and json response for room list.Harald Eilertsen2020-08-221-7/+9
| | | | Note to self: More explicit should have lower rank (higher precedence.)
* Use Tera templates to render pages.Harald Eilertsen2020-08-225-5/+209
|
* Update deps, drop serde_derive.Harald Eilertsen2020-08-225-577/+756
| | | | | serde_derive is included by passing the 'derive' feature to serde instead.
* Use so date format for html element id's.ramaskrik-2019Harald Eilertsen2019-10-171-13/+19
|
* Fix timezone in ramaskrik schedule data.Harald Eilertsen2019-10-171-1/+1
|
* Update schedule for Ramaskrik 2019.Harald Eilertsen2019-10-172-83/+81
|
* Add missing files.Harald Eilertsen2019-10-173-0/+1528
|
* Mainly cosmetic updates for ramaskrik.Harald Eilertsen2019-10-172-8/+13
|
* Revert "Replace favicon for ravenheart."Harald Eilertsen2019-10-071-0/+0
| | | | This reverts commit 896b30421727b7625d02cae375544dc1d542e9a5.
* Adjust where long titles break.Harald Eilertsen2019-10-051-2/+2
|
* Optimize performance.Harald Eilertsen2019-10-051-3/+9
| | | | | A lot of time went by in the `time_f()` function, simplify it by not using the JavaScript date formatting framework which is way overkill.
* Only convert final start/end_time to date objects.Harald Eilertsen2019-10-051-6/+6
| | | | | This makes the sort come out right, and there's no need to create a bunch of objects we just throw away.
* Misc updates.Harald Eilertsen2019-10-051-59/+42
| | | | | | | | | | | Use proper JavaScript Date objects for handling time and date information. Pick up the screening date from the starting time if not given explicitly. Dynamically set the with of each canvas based on the number of rooms with screenings for that day.
* Add times to movie boxes.ravenheart/2019Harald Eilertsen2019-10-041-4/+13
|
* Remove obsolete code.Harald Eilertsen2019-08-281-41/+0
|
* Brushing up a bit and prepare for deploy.Harald Eilertsen2019-08-283-14/+15
| | | | | | | | | | | use relative links to resources, so we can deploy to sub-url. explicitly set colours for canvas elements, styling did not work in all browsers. also make it white on black. tighten fonts and make screening titles bigger.
* Replace favicon for ravenheart.Harald Eilertsen2019-08-281-0/+0
|
* Reflow schedules with wrapped flex layout.Harald Eilertsen2019-08-281-0/+11
| | | | Use with of screen when it's there, otherwise be narrow and long.
* Add license info to footer.Harald Eilertsen2019-08-282-0/+39
|
* Style link elements in the html.Harald Eilertsen2019-08-281-0/+8
|
* Adapt to Ravenheart 2019, Oslo.Harald Eilertsen2019-08-283-3/+9
| | | | | | Also fetch the json directly from a file on the server. Since we don't really have any functionality in the backend app yet, we can deploy without it.
* Use canvas for drawing the schedules.HEADmasterHarald Eilertsen2019-08-283-8/+170
|
* Drop attribute no longer needed from lib.Harald Eilertsen2019-08-101-1/+1
| | | | Feature has been stabilized so no need to explicitly enable it anymore.
* Add db::get_screeinings to get plain screening model.Harald Eilertsen2019-08-102-1/+6
|
* Rename ScreeningRecord model to ScreeningHarald Eilertsen2019-08-101-2/+2
|
* Rename Screening model to AggregateScreeningHarald Eilertsen2019-08-105-11/+12
|
* Update rocket and other deps.Harald Eilertsen2019-08-101-266/+476
|
* Update /screenings endpoint to return full info on screenings.Harald Eilertsen2019-04-287-21/+49
| | | | | This makes each screening record self-contained, and the json payload more consistent with how it semantically fit together.
* Import model structs to main models module.Harald Eilertsen2019-04-087-20/+20
|
* Move functions to query/modify db to connection object.Harald Eilertsen2019-04-088-83/+78
| | | | | | Makes tha API a bit nicer by asking the database rather than passing the database on to each model. Reserve models for method/functions that work on the model structs themselves.
* Fix warnings from test runs.Harald Eilertsen2019-04-081-4/+2
|
* Add endpoint to fetch screenings from the database.Harald Eilertsen2019-04-088-5/+177
| | | | | | Not entirely happy about the way this turned out for now. A more ergonomic return type from the models::screenings::get_all() function will be investigated.
* Add models::film::by_title and models::room::by_name methods.Harald Eilertsen2019-04-082-0/+14
|
* Add readme and contributing guide.Harald Eilertsen2019-04-072-0/+69
|
* Refactor tests to always load fixtures, and sync execution.Harald Eilertsen2019-04-023-25/+44
| | | | | | | Rust will run tests in parallel by default, which does not work too well with using db transactions as a means to isolate changes in the database between tests. So we have to run the database tests one at a time, thus the mutex.
* Renamed test file.Harald Eilertsen2019-04-021-0/+0
|
* Add route to fetch films from database.Harald Eilertsen2019-04-026-5/+118
|
* Fetch rooms from database using ajax/json.Harald Eilertsen2019-03-232-0/+26
|