Fix link to post on mobile photo page

closes #7274
This commit is contained in:
Steffen van Bergerem 2017-01-12 20:37:51 +01:00 committed by Benjamin Neff
parent 521b3deefe
commit a290c432d8
2 changed files with 5 additions and 1 deletions

View file

@ -10,6 +10,7 @@
* Fix jasmine tests in firefox [#7246](https://github.com/diaspora/diaspora/pull/7246)
* Prevent scroll to top when clicking 'mark all as read' in the notification dropdown [#7253](https://github.com/diaspora/diaspora/pull/7253)
* Update existing notifications in dropdown on fetch [#7270](https://github.com/diaspora/diaspora/pull/7270)
* Fix link to post on mobile photo page [#7274](https://github.com/diaspora/diaspora/pull/7274)
## Features
* Add links to the aspects and followed tags pages on mobile [#7265](https://github.com/diaspora/diaspora/pull/7265)

View file

@ -17,7 +17,10 @@
= person_link(photo.author)
.info
%span
= link_to(post_path(photo)) do
- if photo.status_message
= link_to(post_path(photo.status_message)) do
= timeago(photo.created_at)
- else
= timeago(photo.created_at)
-if additional_photos && additional_photos.length > 1