montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
54 stars 13 forks source link

Charging wrong images in the display view #103

Closed numeroteca closed 11 years ago

numeroteca commented 11 years ago

Each row dedicated to one newspaper contains front pages from all the newspaper in the thread. It does display the number of days that the thread has, but wrong images. All the rows contain the same 'wrong' images, but they link to the appropriate 'coding' page.

The loop at https://github.com/numeroteca/pageonex/blob/master/app/views/coding/display.html.erb#L130-L151 charges the photos not having in account the media in the iteration of @images[ic].local_path

The former solution used <% if @images[ic].media == m %> to allow only images that belonged to that media.