Commit Graph

111 Commits

Author SHA1 Message Date
Rasmus Kaj
4e33806879 Update ructe to 0.16.0. 2023-01-28 12:51:34 +01:00
Rasmus Kaj
01013aaf06 Changed zoom-on-click to use fullscreen. 2023-01-12 01:22:21 +01:00
Rasmus Kaj
235d0a9d6f Tell robots not to index the login form. 2022-02-26 17:05:28 +01:00
Rasmus Kaj
c6124b9084 More refactoring.
Get rid of a bunch of remaining `unwrap`s, and consolidate
some parameters to a template that had too many.
2022-02-19 00:23:47 +01:00
Rasmus Kaj
c3aa86cb42 Improve error handling.
Views now returns `Result<T: Reply, ViewError>`.
There is a difference between a `ViewError` (an error that can be
represented as a http response) and a `Rejection` (which tells the
warp filter system to try other possible handlers).
Get rid of lots of "unwrap" (potential panics) in view handlers.
2022-02-16 22:44:59 +01:00
Rasmus Kaj
72e6942ea2 Minor markup/style improvement. 2021-07-04 19:02:37 +02:00
Rasmus Kaj
bb0751f37c Add number of hits to search results. 2020-10-28 01:18:41 +01:00
Rasmus Kaj
30b5b48a7e Refactor search time interval. 2020-09-08 23:03:42 +02:00
Rasmus Kaj
8ee8b809bc Redesign details view.
The details view is now implemented with css grid, in a full-window
no-scroll layout (except for small screens, where the design is still
sequential and scroll is used)

This incudes some cleanup of the markup and corresponding changes in
the admin script.
2020-07-16 20:12:22 +02:00
Rasmus Kaj
af13a538d9 twitter:card metadata apparently harmful. 2020-05-08 23:03:00 +02:00
Rasmus Kaj
0c3a4204a0 Add og metadata to image indexes. 2020-05-08 20:57:21 +02:00
Rasmus Kaj
0e2932c06a Refactor facet search. 2019-09-29 15:16:05 +02:00
Rasmus Kaj
08d0d9bb40 Fix toggling for "pos" search. 2019-09-24 11:24:22 +02:00
Rasmus Kaj
59cea4ddeb Implement negative searching.
Can now search for images with or without specific tags, places
or people, in any combination.
2019-08-13 18:57:18 +02:00
Rasmus Kaj
dab261d67f Magic pos / !pos search. 2019-08-01 21:04:46 +02:00
Rasmus Kaj
b613c16029 Implement search. 2019-07-23 00:58:52 +02:00
Rasmus Kaj
5df25e02de Refactor: Move some code
Just move some code around, make the longest file in the source
tree a bit shorter.
2019-07-02 15:47:35 +02:00
Rasmus Kaj
965dcab486 Make photo size required in db. 2019-05-18 21:43:58 +02:00
Rasmus Kaj
ee7b497745 More work on sizing in image lists. 2019-05-12 17:27:01 +02:00
Rasmus Kaj
95c5c0afe2 Cleanup next handling on login form. 2019-04-23 01:14:56 +02:00
Rasmus Kaj
5c03a28f59 Use warp instead of nickel.
Use the modern async warp web framework instead of nickel (which is
starting to feel a bit stale).

Url routing and context passing is changed a lot.
2019-04-22 16:08:19 +02:00
Rasmus Kaj
4d333741dd WIP: Edition 2018. 2019-03-26 18:10:00 +01:00
Rasmus Kaj
2c8fb0e148 Minor cleanup. 2019-02-23 20:48:17 +01:00
Rasmus Kaj
de86a3432c Add opengraph metadata to photo details. 2018-11-03 17:17:09 +01:00
Rasmus Kaj
9b9da347eb Put places after tags on details. 2018-09-07 21:09:51 +02:00
Rasmus Kaj
39126f2bc0 Improve presentation of places on a photo. 2018-09-06 13:52:06 +02:00
Rasmus Kaj
a9db221aac Add photo previews to map markers. 2018-07-19 21:17:00 +02:00
Rasmus Kaj
b3bcdec2dd Improve template markup for img size attrs. 2018-04-08 02:37:02 +02:00
Rasmus Kaj
914d68acf0 Shorter about string in footer. 2018-03-05 18:34:21 +01:00
Rasmus Kaj
fe7ca3b1cb Use image size on details view. 2018-03-05 18:33:17 +01:00
Rasmus Kaj
fc1ed81561 Store width and height of images.
Use it to calculate width and height of small images in lists.

Since the old database should be migratable to the new, the width and
height fields are nullable.  I aim to make them not nullable later,
after all images in the database has got width and height.
2018-03-05 00:29:39 +01:00
Rasmus Kaj
72c07fbe5d Get rid of a reexport. 2018-03-03 14:39:33 +01:00
Rasmus Kaj
7aa4a0fb30 Unify groups and index.
Remove the groups template, use the index template instead.

Remove the Group struct, add an optional title to the PhotoLink struct
instead.
2018-03-03 14:35:50 +01:00
Rasmus Kaj
28032e4026 Add maps to image lists. 2018-02-07 20:56:23 +01:00
Rasmus Kaj
5b9da3083b Move js for map from details.html to ux.js. 2018-02-04 23:42:15 +01:00
Rasmus Kaj
b60e929cac Improve some if let code. 2017-12-30 21:17:29 +01:00
Rasmus Kaj
73eb97f1d2 More methods, avoid a giant method. 2017-12-30 17:04:23 +01:00
Rasmus Kaj
0a6a7f8f1c Improve shoing of time spans. 2017-12-17 16:02:47 +01:00
Rasmus Kaj
09a88d8299 Move some js from template to ux.js. 2017-12-11 23:35:23 +01:00
Rasmus Kaj
1c6ed1c709 Shorten and simplify admin.js. 2017-12-11 23:11:36 +01:00
Rasmus Kaj
4471f9e083 Async AND defer is apparently a bad idea. 2017-12-11 22:07:51 +01:00
Rasmus Kaj
27481a62b3 Simpler and more versatile links. 2017-11-25 02:35:15 +01:00
Rasmus Kaj
94e661065b Some styling and UX. 2017-11-25 01:22:01 +01:00
Rasmus Kaj
448f9b8a75 Add admin UX to grade images. 2017-11-22 21:13:34 +01:00
Rasmus Kaj
ade508eb8d Use improved timecluster for day view.
Just as for people, places, and tag views.
2017-11-20 15:10:42 +01:00
Rasmus Kaj
5028a1831c Add timecluster grouping for place views.
Just as for people and tag views.
2017-11-20 12:42:01 +01:00
Rasmus Kaj
b47726a6a5 Add timecluster grouping for tag views.
Just as for people.
2017-11-20 11:40:06 +01:00
Rasmus Kaj
8e7a3a36b6 Cleanup. 2017-11-20 10:27:27 +01:00
Rasmus Kaj
63fac99f27 Split long list for person in chunks. 2017-11-19 23:46:03 +01:00
Rasmus Kaj
3dd706c1ef More accesskeys, incl a helpful listing. 2017-11-17 00:26:17 +01:00