Commit Graph

85 Commits

Author SHA1 Message Date
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
Rasmus Kaj
551c5c6897 Redirect from /random.
Use a redirect rather than just rendering a random photo page.
Also, add a link to /random to the menu.
2017-11-07 23:36:09 +01:00
Rasmus Kaj
9b60733570 Show date and time below all images (if known). 2017-11-06 18:44:38 +01:00
Rasmus Kaj
38711abc37 Some lint-style changes suggested by clippy. 2017-09-27 00:19:03 +02:00
Rasmus Kaj
cde078317a Add a message for login failure. 2017-09-25 19:12:54 +02:00
Rasmus Kaj
3a6a9cb21d Add admin function to rotate image. 2017-09-25 07:25:58 +02:00
Rasmus Kaj
16a1b75643 Cleanup some more.
Get rid of lib.rs, and move main entry point to main.rs.
2017-09-02 00:05:44 +02:00
Rasmus Kaj
a0df34644b Allways give "next" argument for login link. 2017-08-03 19:59:21 +02:00
Rasmus Kaj
f78966682a Support "next" parameter in login form. 2017-08-03 12:50:01 +02:00
Rasmus Kaj
ce44b1f18f Expose version in command line and footer. 2017-08-01 01:41:27 +02:00
Rasmus Kaj
65fb620ba8 Get rid of some swedish, for consistency. 2017-07-30 19:47:54 +02:00
Rasmus Kaj
60807405bb Tell a logged in user if a photo is public or not. 2017-07-30 17:51:19 +02:00
Rasmus Kaj
e5b749795e Use a custom 404 page.
Mainly, provide a login link on it.
2017-06-27 00:13:48 +02:00
Rasmus Kaj
5ea5a9bd90 Update ructe.
It now supports adding static sass files, so remove direct dependency
on rsass.
2017-05-08 07:09:22 +02:00
Rasmus Kaj
fee9a801db Add viewport setting. 2017-02-16 13:59:52 +01:00
Rasmus Kaj
483fe37487 Avoid empty "Tid:" 2017-02-12 17:56:26 +01:00
Rasmus Kaj
abf5dcf384 Large is full.
The "large" version of an image is the full original file.  Only
logged-in users may access the large version.
2017-02-12 15:24:39 +01:00
Rasmus Kaj
3a1a2d15d3 Add basic attribution. 2017-02-11 22:24:35 +01:00
Rasmus Kaj
84a8e641f7 Add js click-to-zoom. 2017-02-11 15:23:03 +01:00
Rasmus Kaj
878f2f6ad8 Add a footer.
And some layout changes.
2017-02-11 12:20:48 +01:00
Rasmus Kaj
eada496c5b Use slices in templates. 2017-02-05 12:08:38 +01:00
Rasmus Kaj
17e62508a1 Improve details view. 2017-02-03 19:44:13 +01:00
Rasmus Kaj
b69ceb8166 Nicer urls for images and details. 2017-02-01 16:12:03 +01:00
Rasmus Kaj
eb0dbbe62b DRY photo linking. 2017-02-01 15:32:39 +01:00
Rasmus Kaj
8cd215cdc2 Improve handling of static files.
Use static files handling from updated ructe rather than local
handling, and use rsass rather than sass-rs and sass-sys.

Static files are now kept in the binary (no more need to access the
build directory at runtime).  Also, there is an admin command to save
the static files to a directory, for the benefit of fronting web
servers and backwards compatibility.
2017-01-29 19:03:35 +01:00
Rasmus Kaj
fa60b6e1f8 No need to defind CSSLINK in main. 2016-12-19 07:19:26 +01:00
Rasmus Kaj
bf15d170be Fix broken js for leaflet. 2016-12-06 10:35:18 +01:00