Commit Graph

66 Commits

Author SHA1 Message Date
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
Rasmus Kaj
f711b136ac Dont print empty data on details page. 2016-11-20 16:58:11 +01:00
Rasmus Kaj
ae40d3bf8e More robust leaflet scritping. 2016-11-20 13:33:37 +01:00
Rasmus Kaj
f4f06434f9 Use a base template. 2016-09-26 00:45:13 +02:00
Rasmus Kaj
0b0877e54d Better handling of dates with no images. 2016-09-23 23:12:22 +02:00
Rasmus Kaj
c6672181d6 Covert all templates to ructe. 2016-09-23 22:03:04 +02:00
Rasmus Kaj
b79cbc7714 More ructe templates. 2016-09-23 16:40:54 +02:00
Rasmus Kaj
9a038765b9 Initial ructe experiment. 2016-09-20 07:35:28 +02:00
Rasmus Kaj
6ed42c0be7 Add camera support.
Store and show which camera each picture was taken with (if present in
exif data).
2016-08-09 01:41:46 +02:00
Rasmus Kaj
002f9c1ebb Template cleanup. 2016-07-09 21:25:34 +02:00
Rasmus Kaj
b474373479 Use GPS position of photos. 2016-07-09 16:04:19 +02:00
Rasmus Kaj
d2fd9b4430 Add an "on this day" feature. 2016-06-30 16:39:01 +02:00
Rasmus Kaj
b31a758a0d Implement places on photos. 2016-06-30 13:16:12 +02:00
Rasmus Kaj
c1d0862313 Implement people on photos. 2016-06-30 12:15:07 +02:00
Rasmus Kaj
855ea6c755 Implement tags on photos. 2016-06-30 01:29:02 +02:00
Rasmus Kaj
ffb5bbaf39 Reimplement all time-based views.
Also, proper database migrations and an attempt to make things
work on travis.
2016-06-04 21:08:14 +02:00
Rasmus Kaj
94697fc35e Better linkpath in header.
Also known as breadcrumb links.
2016-05-18 18:44:50 +02:00
Rasmus Kaj
d1f5044466 Date links in page header. 2016-05-04 18:45:50 +02:00
Rasmus Kaj
e523d43d34 Add jwt authorization.
The username/password handling is just mocked currently.
2016-05-01 15:50:49 +02:00
Rasmus Kaj
d4bfe0756f Use scss to prepare css.
The css file is built to a file with (short) checksum in the
file name, to be nicely cacheable.  The actual file name is
compiled into the binary and sent to the templates as a variable.
2016-04-22 23:56:13 +02:00