Fix "more picture" indication (+n) on mobile by adding a link on the indication

This commit is contained in:
flaburgan 2013-11-16 02:04:14 -08:00
parent 859cd83e38
commit a02b0519c9
2 changed files with 6 additions and 4 deletions

View file

@ -35,6 +35,7 @@
* Force comments sort order in mobile spv [#4578](https://github.com/diaspora/diaspora/pull/4578) * Force comments sort order in mobile spv [#4578](https://github.com/diaspora/diaspora/pull/4578)
* Fix getting started page for mobile [#4536](https://github.com/diaspora/diaspora/pull/4536) * Fix getting started page for mobile [#4536](https://github.com/diaspora/diaspora/pull/4536)
* Refactor mobile header, fix [#4579](https://github.com/diaspora/diaspora/issues/4579) * Refactor mobile header, fix [#4579](https://github.com/diaspora/diaspora/issues/4579)
* Fix "more picture" indication (+n) on mobile by adding a link on the indication [#4592](https://github.com/diaspora/diaspora/pull/4592)
## Features ## Features
* Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353) * Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)

View file

@ -6,10 +6,11 @@
- if post.is_a?(StatusMessage) - if post.is_a?(StatusMessage)
-if post.photos.size > 0 -if post.photos.size > 0
.photo_attachments .photo_attachments
= link_to person_photo_path(post.author, post.photos.first), class: "stream-photo-link" do
- if post.photos.size > 1 - if post.photos.size > 1
.additional_photo_count .additional_photo_count
= "+ #{post.photos.size-1}" = "+ #{post.photos.size-1}"
= link_to (image_tag post.photos.first.url(:thumb_large), :class => "stream-photo big-stream-photo"), person_photo_path(post.author, post.photos.first), :class => "stream-photo-link" = image_tag post.photos.first.url(:thumb_large), class: "stream-photo big-stream-photo"
- elsif post.activity_streams? - elsif post.activity_streams?
= image_tag post.image_url = image_tag post.image_url