Commit Graph

280 Commits

Author SHA1 Message Date
Rasmus Kaj
ad2703a1d5 Force a rustfmt update.
There is bogosity in the version numbers.
An old rustfmt is 0.9.0, while the current rustfmt-nightly,
released yesterday, is 0.2.5.
2017-11-08 23:51:11 +01:00
Rasmus Kaj
4ffb1a3cdc Require a recent rustfmt on travis. 2017-11-08 22:32:21 +01:00
Rasmus Kaj
d41b22b4b8 Update and reenable rustfmt.
Update code format to the new recommended style.
2017-11-08 21:55:12 +01:00
Rasmus Kaj
5fc48cf2cf 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-08 21:09:15 +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
18ddb04d65 Remove readkpa subcommand.
My old kphotoalbum database is no longer relevant, rphotos is
the main soruce now and should not be overridden.

The readkpa subcomand was never intended for general consumption
anyway, it was hardcoded to match configurations in my kphotoalbum
setup.
2017-11-07 23:34:19 +01:00
Rasmus Kaj
a2af66366d Postrelease. 2017-11-07 07:32:40 +01:00
Rasmus Kaj
49bdf9c945 Release 0.3.4. 2017-11-06 20:12:57 +01:00
Rasmus Kaj
9b60733570 Show date and time below all images (if known). 2017-11-06 18:44:38 +01:00
Rasmus Kaj
1198ea4708 Improve UX for tag form. 2017-11-06 18:20:45 +01:00
Rasmus Kaj
94a5654386 Postrelease. 2017-11-06 18:09:50 +01:00
Rasmus Kaj
f53739fcc3 Release 0.3.2 2017-11-05 23:54:42 +01:00
Rasmus Kaj
21f2fce9e1 Nicer implementation of find_image_data. 2017-11-05 23:51:03 +01:00
Rasmus Kaj
8fb8d991dd Add UI to add tags to images. 2017-11-05 23:03:55 +01:00
Rasmus Kaj
376927e39c Silly feature; an url for a random image. 2017-11-05 17:56:18 +01:00
Rasmus Kaj
3c7ffbc4d4 Update ructe. 2017-11-05 16:51:52 +01:00
Rasmus Kaj
b7ffbe647e Lock image and xml-rs versions.
Avoid updating bitflags dependency to 1.0.0, which does not
support rustc 1.19.0 (which is what I currently have on my
FreeBSD server).
2017-10-23 12:39:27 +02:00
Rasmus Kaj
7b400425de Drop rust 1.18. 2017-10-23 11:22:25 +02:00
Rasmus Kaj
47eefbab74 Postrelease. 2017-10-23 11:01:33 +02:00
Rasmus Kaj
bea801257c Release version 0.3.0. 2017-09-27 17:13:27 +02:00
Rasmus Kaj
4ac62c66c5 Marginally less padding. 2017-09-27 16:58:49 +02:00
Rasmus Kaj
76c41d0608 Space between buttons. 2017-09-27 16:58:26 +02: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
f4d083360e Fix memcache problem.
Thirty days is max expire time in memcache, setting a larger value
gets it treated as a unix time (so when I said 90 days, everything
expired april 1, 1970).

Also, less logging while precaching.
2017-09-23 22:54:41 +02:00
Rasmus Kaj
e5188e1c09 Document intent. 2017-09-21 07:17:32 +02:00
Rasmus Kaj
8a926c3a55 Add a command for precaching thumbnails. 2017-09-20 23:47:27 +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
ce1e9c6190 Update some dependencies. 2017-09-01 23:36:08 +02:00
Rasmus Kaj
8131f5e5ec Merge server and adm to single binary. 2017-09-01 23:14:17 +02:00
Rasmus Kaj
97076336a6 Refuse non-replace pidfile.
If the given pid file already exists, but --replace is not given,
refuse to start the server.
2017-08-31 20:09:20 +02:00
Rasmus Kaj
ec52f0b57e Typo. 2017-08-31 19:32:24 +02:00
Rasmus Kaj
d52e874645 Add options for pidfile usage. 2017-08-15 19:54:22 +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
f3be8efeb4 Postrelease. 2017-08-02 13:53:54 +02:00
Rasmus Kaj
7447f5de48 Release version 0.2.0. 2017-08-01 11:08:15 +02:00
Rasmus Kaj
ce44b1f18f Expose version in command line and footer. 2017-08-01 01:41:27 +02:00
Rasmus Kaj
c9f024b205 Split days with to many photos in parts. 2017-08-01 01:15:46 +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
24a6783c4b Update nickel, hyper and nickel-jwt-session. 2017-07-30 00:53:50 +02:00
Rasmus Kaj
7193047a7d Copy the code for nickel_diesel.
To much problem with versions, the nickel_diesel crate isnt
maintained, so just copy the code here since it is short.
2017-07-27 18:30:17 +02:00
Rasmus Kaj
32bf0c0aa8 Very minor cleanup.
res.set can set multiple headers in one call by using a tuple.
2017-07-27 17:37:22 +02:00
Rasmus Kaj
48e76da129 Add rustc 1.18 build. 2017-07-27 17:35:45 +02:00
Rasmus Kaj
8422133a3c Minor clarification.
Rename a method, since caching is not handled by that but by
the caller.  Also remove a TODO about caching, since it was
actually done, just not in that place.
2017-07-27 17:05:17 +02:00
Rasmus Kaj
866db81d23 Avoid having the map hide the menu bar. 2017-07-11 22:54:52 +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
161e9c4df9 Up-to-date rexif takes path arguments. 2017-06-26 23:26:36 +02:00