[openstreetmap/openstreetmap-website] Display how long until a note will disappear (PR #3676)
Harry Wood
notifications at github.com
Wed Sep 7 14:32:38 UTC 2022
@harry-wood commented on this pull request.
> @@ -23,4 +23,9 @@ def note_author(author, link_options = {})
link_to h(author.display_name), link_options.merge(:controller => "/users", :action => "show", :display_name => author.display_name)
end
end
+
+ def disappear_date(closed_date)
+ date = closed_date + 7.days
I've made this a CONSTANT now, as well as rewriting it a bit
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3676#discussion_r964923055
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3676/review/1099292967 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220907/75ff319c/attachment-0001.htm>
More information about the rails-dev
mailing list