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
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
18f15d53d6
Some fooling around with stats.
2016-11-27 18:00:34 +01:00
Rasmus Kaj
eccbf9a1cf
Avoid unnessecary string copying.
...
Unleash the power of rust checked borrows! :-)
2016-11-27 01:05:03 +01:00
Rasmus Kaj
d10343e0cb
Include readkpa in rphotosadm.
2016-11-27 00:54:08 +01:00
Rasmus Kaj
7b2cb158ac
Use match, not nested if.
2016-11-26 12:32:16 +01:00
Rasmus Kaj
7354707486
Include findphotos in rphotosadm.
2016-11-26 11:31:21 +01:00
Rasmus Kaj
5afd58086d
Include makepublic in rphotosadm.
...
Another separate binary merged into the general adm binary.
2016-11-24 22:42:59 +01:00
Rasmus Kaj
e5b5c28d5e
Move user administration into rphotosadm.
2016-11-21 08:45:54 +01:00
Rasmus Kaj
b38ac8c661
Start moving towards a single adm command.
2016-11-20 21:33:16 +01:00
Rasmus Kaj
e0ce981b8d
Merge branch 'master' into feature/memcached-rs
2016-11-20 16:58:46 +01:00
Rasmus Kaj
f711b136ac
Dont print empty data on details page.
2016-11-20 16:58:11 +01:00
Rasmus Kaj
a18daeac7c
Change photo order.
2016-11-20 15:52:38 +01:00
Rasmus Kaj
ae40d3bf8e
More robust leaflet scritping.
2016-11-20 13:33:37 +01:00
Rasmus Kaj
ae5cb673ab
Fix some code style issues.
...
Mainly the proper ordering of use statements.
2016-11-20 00:33:31 +01:00
Rasmus Kaj
754fa51efe
Use a middleware to access cache.
...
The proper way to get easy access to a configured memcached client in
a request handler is to have a middleware method to get it.
2016-11-19 23:55:13 +01:00
Rasmus Kaj
171b29cd6c
Better logging re caching.
2016-11-19 20:49:44 +01:00
Rasmus Kaj
3fc702d859
Merge branch 'master' into feature/memcached-rs
2016-11-12 20:51:16 +01:00
Rasmus Kaj
5b57b7de88
Put nulls last in some orderings.
2016-11-11 21:49:58 +01:00
Rasmus Kaj
4b6b927640
More natural year order.
...
Most recent years first, old pictures and pictures without a date last
on the frontpage.
2016-11-09 07:53:04 +01:00
Rasmus Kaj
08ade16c02
Avoid single-digit request times.
2016-11-08 23:51:00 +01:00
Rasmus Kaj
a7960f5569
Refactor caching.
...
Separate the caching logic from how to the actual image scaling.
2016-11-08 23:48:08 +01:00
Rasmus Kaj
0d1285da37
Try memcached-rs.
2016-11-03 17:18:07 +01:00
Rasmus Kaj
704c930010
Fix ordering.
2016-11-03 16:01:20 +01:00
Rasmus Kaj
e2784cc75c
Update dependencies.
2016-10-28 00:44:30 +02:00
Rasmus Kaj
9e96505709
Use published ructe.
2016-10-04 20:54:55 +02:00
Rasmus Kaj
094a63de46
Dependency hunting.
2016-10-03 23:08:24 +02:00
Rasmus Kaj
8291b91bcf
Show slightly larger pics.
2016-09-28 14:36:03 +02:00
Rasmus Kaj
6d8eff3015
Remove unused code.
2016-09-27 20:42:22 +02:00
Rasmus Kaj
0597b636dc
Don't drop camera info.
2016-09-26 22:38:22 +02: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