[openstreetmap/openstreetmap-website] Use more named paths (#3293)
Andy Allan
notifications at github.com
Thu Aug 12 17:03:31 UTC 2021
This PR refactors various links to use named paths, rather than the `controller => ... action => ...` alternative. This makes them easier to read, particularly when dealing with `display_name` parameters.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3293
-- Commit Summary --
* Use user_account_path for links to settings page
* Use named paths for various user blocks links
* Use named paths for diary comments path
-- File Changes --
M app/controllers/confirmations_controller.rb (4)
M app/controllers/users_controller.rb (10)
M app/views/layouts/_header.html.erb (2)
M app/views/site/edit.html.erb (2)
M app/views/user_blocks/_block.html.erb (2)
M app/views/user_blocks/show.html.erb (2)
M app/views/users/show.html.erb (16)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3293.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3293.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3293
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210812/cfcfed53/attachment.htm>
More information about the rails-dev
mailing list