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
7778c079ed
Consistency in whats public.
...
Attempt to only link public images from public overviews.
Some calls to desc() needs to be changed to desc().nulls_last() when
availiable in diesel.
2016-06-10 15:36:24 +02:00
Rasmus Kaj
2f3b222148
Get rid of some junk.
2016-06-06 22:28:07 +02:00
Rasmus Kaj
daf64dae30
Some photos lacks datetime.
...
In the database, it is nullable. In reality, it is unknown for
some of my older photos.
2016-06-05 15:55:23 +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
366b125862
Start conversion to diesel.
...
Use diesel instead of rustorm. This compiles, but much of the
interestign stuff is commented out.
2016-05-29 21:51:27 +02:00
Rasmus Kaj
94697fc35e
Better linkpath in header.
...
Also known as breadcrumb links.
2016-05-18 18:44:50 +02:00
Rasmus Kaj
76a43e0efa
Avoid trying to serve the raw images.
2016-05-15 22:05:42 +02:00
Rasmus Kaj
a3f414bd97
Use nickel form-body parsing for login.
2016-05-11 18:14:23 +02:00
Rasmus Kaj
5a57dc5e90
Add shorthand for date queries.
2016-05-04 22:11:31 +02:00
Rasmus Kaj
d1f5044466
Date links in page header.
2016-05-04 18:45:50 +02:00
Rasmus Kaj
3d956a106b
Rustfmt.
2016-05-04 13:16:20 +02:00
Rasmus Kaj
88b0d8b57b
Dont panic.
...
Handle errors in image scaling properly.
2016-05-03 18:37:35 +02:00
Rasmus Kaj
a21d60a7be
Show good pics only to guests.
...
If there is not a logged in user, show only pictures that
are graded above a certain limit.
2016-05-02 23:52:06 +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
Rasmus Kaj
e6a8c3189c
Better code organisation.
...
Put handlers in separate functions, not just one extremely large main.
2016-04-19 18:10:26 +02:00
Rasmus Kaj
b340bb5f9d
Summarize images per year and month.
2016-01-31 21:15:44 +01:00
Rasmus Kaj
84987eca40
Add a program to find image files.
2016-01-31 14:34:48 +01:00
Rasmus Kaj
2335c5e97f
Move PhotosDir to separate file.
2015-12-26 20:18:44 +01:00
Rasmus Kaj
ba094853a2
Views per year/month/day.
2015-12-25 18:32:11 +01:00
Rasmus Kaj
d2adab3ecb
Add original time to photos.
2015-12-22 18:22:21 +01:00
Rasmus Kaj
2c09e8d169
Dry and consistend photos_dir.
2015-12-06 23:00:16 +01:00
Rasmus Kaj
69003c561b
Use environment for config.
...
Take base directory for photos and host:port to listen to from
environment instead of just useing hard-coded values.
2015-12-06 22:29:05 +01:00
Rasmus Kaj
9345860657
Minor cleanup.
2015-12-06 17:12:09 +01:00
Rasmus Kaj
1d57275fe8
Dryer code with a macro.
...
Declare and initialize the data struct for rendering
at the same time in view (controller) code.
2015-12-06 16:33:25 +01:00
Rasmus Kaj
e832e4d00f
Better urls for image sizes.
2015-12-06 14:42:03 +01:00
Rasmus Kaj
5adeec2f91
RequestLoggerMiddleware.
...
Add a middleware that logs each request with result code
and elapsed time.
2015-11-30 20:31:23 +01:00
Rasmus Kaj
19db2ca293
Add support for places.
...
Only the simple tag-like places I used in kphotoalbum.
Proper geotagging is still left to do.
2015-11-29 22:38:47 +01:00
Rasmus Kaj
c768c071fc
Import my kpa grades.
2015-11-29 20:09:49 +01:00
Rasmus Kaj
b2569dfa82
Scale images only down, not up.
2015-11-29 18:53:09 +01:00
Rasmus Kaj
177de0e6b7
Support rotation of images.
2015-11-29 18:38:58 +01:00
Rasmus Kaj
472c3a476c
Provide orm_get_related.
...
It works the same each time, so provide it in my middleware.
2015-11-29 17:18:47 +01:00
Rasmus Kaj
c0ebb5a729
Add people data.
2015-11-28 09:53:12 +01:00
Rasmus Kaj
0ffa72a1db
Expires header works again.
...
Match the direct hyper dependency with the one in nickel.rs
and things work fine agin.
2015-11-27 18:38:46 +01:00
Rasmus Kaj
8227b153b0
Put RustormMiddleware in separate file.
2015-11-27 13:05:43 +01:00
Rasmus Kaj
275185a8bc
Setting expires broken in nickel 0.7.3.
...
Maybe there is a way, but the way I used have ceased to
work. https://github.com/nickel-org/nickel.rs/issues/303
2015-11-27 12:46:47 +01:00
Rasmus Kaj
735767065e
List all tags.
2015-11-27 00:02:18 +01:00
Rasmus Kaj
939cbac290
Basic styling.
2015-11-26 23:20:36 +01:00
Rasmus Kaj
5c5ac376c8
List photos for a tag.
...
And of course some rewriting of everything ...
2015-11-26 22:47:39 +01:00
Rasmus Kaj
b1d53c0762
Photos can have tags.
...
Read old data from kphotoalbum.
2015-11-23 06:48:09 +01:00
Rasmus Kaj
704877abd9
Actually show some photos.
2015-11-22 13:01:39 +01:00
Rasmus Kaj
87ddb0db1f
Read "photos" from db.
2015-11-21 16:21:44 +01:00
Rasmus Kaj
4cee26adea
Initial commit.
...
Very simple web service using the nickel framworkd.
2015-11-19 23:43:04 +01:00