aboutsummaryrefslogtreecommitdiffstats
path: root/src/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Implement update events.devHarald Eilertsen2021-08-251-0/+20
|
* Refactor event templates and add edit form.Harald Eilertsen2021-08-251-6/+20
|
* Upgrade to use Rocket 0.5.0-rc.1Harald Eilertsen2021-08-244-62/+69
|
* Use relative URLs for redirects.Harald Eilertsen2020-08-254-7/+7
|
* Add info about the event to the db and render landing page.Harald Eilertsen2020-08-251-0/+68
|
* Implement edit screenings in web ui.Harald Eilertsen2020-08-231-1/+48
|
* Store timestamps in UTC.Harald Eilertsen2020-08-231-6/+16
| | | | | | | | | 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-231-5/+8
| | | | | | | 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-231-1/+12
|
* Implement adding screenings in the web ui.Harald Eilertsen2020-08-231-4/+56
|
* Implement adding and listing films.Harald Eilertsen2020-08-231-3/+39
|
* Implement adding rooms through the web ui.Harald Eilertsen2020-08-221-1/+21
|
* 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-221-2/+15
|
* Rename Screening model to AggregateScreeningHarald Eilertsen2019-08-101-3/+3
|
* Update /screenings endpoint to return full info on screenings.Harald Eilertsen2019-04-281-2/+2
| | | | | 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-083-5/+5
|
* Move functions to query/modify db to connection object.Harald Eilertsen2019-04-083-4/+4
| | | | | | 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.
* Add endpoint to fetch screenings from the database.Harald Eilertsen2019-04-081-0/+32
| | | | | | 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 route to fetch films from database.Harald Eilertsen2019-04-021-0/+32
|
* Actually fetch available rooms from the database.Harald Eilertsen2019-03-211-5/+8
|
* Refactoring, move db connection and room controller to separate modules.Harald Eilertsen2019-03-041-0/+29