[openstreetmap/openstreetmap-website] Element version pages (PR #4480)
Anton Khorev
notifications at github.com
Tue Jan 23 19:54:40 UTC 2024
@AntonKhorev commented on this pull request.
> @@ -0,0 +1,19 @@
+class OldNodesController < ApplicationController
+ layout :map_layout
+
+ before_action :authorize_web
+ before_action :set_locale
+ before_action -> { check_database_readable(:need_api => true) }
+ before_action :require_oauth
+
+ authorize_resource
+
+ around_action :web_timeout
+
+ def show
+ @type = "node"
+ @feature = OldNode.preload(:old_tags, :changeset => [:changeset_tags, :user]).find([params[:id], params[:version]])
No, we are not rendering them for historic elements.
https://github.com/openstreetmap/openstreetmap-website/blob/6163b01f146d97201e0c2d9efff83dd5dbadebf7/app/models/old_node.rb#L98-L101
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4480#discussion_r1463919177
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4480/review/1839806679 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240123/75affa26/attachment.htm>
More information about the rails-dev
mailing list