[openstreetmap/openstreetmap-website] Overlapping texts (Changesets by nearby users) (Issue #3883)
GobinathAL
notifications at github.com
Sun Dec 3 08:38:04 UTC 2023
@gravitystorm Had it been two different actions, while defining around_action we can pass a different timeout layout to be used for certain actions. Now the problem is that same action has two different timeout layouts. So I'm thinking of wrapping the piece of code which needs a different timeout layout in a block(in this issue, the else part is the one that needs a different timeout layout).
```ruby
if request.format == :html && !@params[:list]
require_oauth
render :action => :history, :layout => map_layout
else
web_timeout :layout => false do
#code that needs a different timeout layout
end
end
```
and the web_timeout can be modified to accept an argument.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3883#issuecomment-1837410229
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3883/1837410229 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231203/c55c2c8d/attachment-0001.htm>
More information about the rails-dev
mailing list