[openstreetmap/openstreetmap-website] Allow reporting of abusive users to moderators or admins (#1268)
Ilya Zverev
notifications at github.com
Mon Aug 15 10:23:25 UTC 2016
> +
> + def reports_url(issue)
> + class_name = issue.reportable.class.name
> + case class_name
> + when "DiaryEntry"
> + link_to issue.reportable.title, issue
> + when "User"
> + link_to issue.reportable.display_name.to_s, issue
> + when "DiaryComment"
> + link_to "#{issue.reportable.diary_entry.title}, Comment id ##{issue.reportable.id}", issue
> + when "Changeset"
> + link_to "Changeset ##{issue.reportable.id}",issue
> + when "Note"
> + link_to "Note ##{issue.reportable.id}", issue
> + else
> + nil
Isn't `nil` the default?
--
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/1268/files/ea2d71f25bdf7fbf4cd3e389c27be4af574d6ed3#r74743639
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160815/ff25978a/attachment.html>
More information about the rails-dev
mailing list