Growstuff / growstuff

Open data project for small-scale food growers

Home Page:http://growstuff.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forums > Surface the year of last post

CloCkWeRX opened this issue · comments

https://www.growstuff.org/forums
image

Should show '11 Jan 23' or similar instead of just 11 Jan.

Currently:

            - if post.updated_at > post.recent_activity
              = post.updated_at.to_date.to_formatted_s(:short)
            - else
              = post.recent_activity.to_date.to_formatted_s(:short)

Potentially we could introduce a helper than outputs a span with a title attribute, full date and use that everywhere.