[openstreetmap/openstreetmap-website] Add "view" tab to main navigation (#2420)

BrandonXLF notifications at github.com
Fri Nov 1 04:02:28 UTC 2019


This is one of my two solutions to the problem of the UI not presenting a clear way to return to the "view" page. I finally realized you can just click the logo, but this isn't very clear and I've seen several people online face the same issue. This solution works by adding a "View" tab to the main navigation menu. Here's an example of it working: ![viewtab](https://user-images.githubusercontent.com/42590338/68001467-8fa88700-fc3a-11e9-9dc2-629cbe515018.gif).


You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/2420

-- Commit Summary --

  * Added "View" tab
  * Added "layouts.view"
  * Allow for JS updating of #view_tab
  * Remove .current from #view_tab on index page

-- File Changes --

    M app/assets/javascripts/index.js (5)
    M app/views/layouts/_header.html.erb (3)
    M config/locales/en.yml (1)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/2420.patch
https://github.com/openstreetmap/openstreetmap-website/pull/2420.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/2420
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191031/a3bc9512/attachment.html>


More information about the rails-dev mailing list