photo / frontend

The official @github repository of the Trovebox frontend software. A photo sharing and photo management web interface for data stored "in the cloud" (i.e. Amazon S3, Rackspace CloudFiles, Google Storage).
https://trovebox.com
Apache License 2.0
1.38k stars 244 forks source link

Add link to albums from Photo page #1328

Open kareem opened 11 years ago

kareem commented 11 years ago

There doesn't seem to be a way to see what albums a photo belongs to from the photo page, or to visit those albums from the photo page.

jmathai commented 11 years ago

This requires a bit of work but I agree it's important.

In the photo table we have an albums column that simply lists albumId. We need to modify that to include a collection of album objects. This makes writes a bit more expensive when adding/removing albums but makes the display of albums alongside a photo fairly trivial.

jmathai commented 10 years ago

The biggest issue in figuring this out was finding an efficient way of getting this in the /photos/list.json API. A better solution and one we can implement sooner is to have it available only in the /photo/:id/view.json API.