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
Rasmus Kaj
d4ade480d6
Use ructe 0.3.2, with mime support.
2017-06-23 17:13:44 +02:00
Rasmus Kaj
7470b09303
Fix travis link in readme.
2017-05-12 16:43:22 +02:00
Rasmus Kaj
09c6a5131e
Update diesel to 0.12.
2017-05-12 16:39:23 +02:00
Rasmus Kaj
86616719e1
Remove rustc-serialize.
...
It was only needed for mustache, which I no longer use. (Both
mustache and rustc-serialize is still dependencies of nickel, but
that's ok as long as I dont have to touch them in my code.)
2017-05-12 14:02:41 +02:00
Rasmus Kaj
ab57b6ed91
Update nickel-jwt-session.
2017-05-12 13:26:36 +02:00
Rasmus Kaj
33b9f8a27b
Use foo? rather than try!(foo).
2017-05-08 22:01:59 +02:00
Rasmus Kaj
e73c363986
Unify far_expires handling.
...
Make the expire header on images actually far.
2017-05-08 20:44:31 +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
5db71988da
Another minor style improvement.
2017-02-12 16:03:36 +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
b5f6c53448
Webkit-compatible styles.
2017-02-12 13:03:55 +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
c4e97948c6
Avoid version-spreading diesel.
2017-02-11 11:47:18 +01:00
Rasmus Kaj
f3f47268f6
Lock chrono version.
...
It must match the version used by nickel.
2017-02-08 18:41:58 +01:00
Rasmus Kaj
708ff73997
Simplify error handling.
...
Internal server error is internal server error anyway, so why not put
a panic in the log for it.
2017-02-08 18:41:20 +01:00
Rasmus Kaj
eada496c5b
Use slices in templates.
2017-02-05 12:08:38 +01:00
Rasmus Kaj
801b79925c
More room for picture.
2017-02-04 18:19:32 +01:00
Rasmus Kaj
2ce41194e6
Some code-style improvements.
2017-02-04 18:17:32 +01:00
Rasmus Kaj
cb000948f2
A little more modular.
2017-02-04 17:48:42 +01:00
Rasmus Kaj
31dae7177d
Stay with diesel 0.9.
...
I guess it's easier to just stay on diesel version 0.9 until I have
rust 1.15 everywhere and can take advantage of the fact that diesel
should work nicer on stable rust.
2017-02-04 11:47:12 +01:00
Rasmus Kaj
767a0c6bb0
Refuse to tag non-existing images.
...
But find images even if the file names are lowercased since tagging.
2017-02-04 11:35:17 +01:00
Rasmus Kaj
01b21bd36d
Refuse to tag non-existing images.
2017-02-03 21:47:45 +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
1ae8cf91b5
More flexible route mapping.
2017-02-01 07:39:47 +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
698fb2c23b
Update dependencies.
...
No direct build dependency on syntex and dotenv makes things easier.
2017-01-20 07:10:40 +01:00