[openstreetmap/openstreetmap-website] Added /notes/mine url path (#2006)
Jamie Guthrie
notifications at github.com
Wed Sep 26 14:37:26 UTC 2018
jguthrie100 commented on this pull request.
> if params[:display_name]
if @user = User.active.find_by(:display_name => params[:display_name])
@params = params.permit(:display_name)
- @title = t "notes.mine.title", :user => @user.display_name
- @heading = t "notes.mine.heading", :user => @user.display_name
+
+ # set title/heading
+ if current_user && current_user.display_name == @user.display_name
+ @title = t "user.show.my notes"
+ @heading = t "user.show.my notes"
I'm only copying what it does in the traces controller.. it basically just says "My Notes" if you're logged in instead of "Harry's Notes"
--
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/2006#discussion_r220589931
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180926/c5966bdd/attachment.html>
More information about the rails-dev
mailing list