[openstreetmap-website] Show ref in changeset summaries when no name is available (#1140)
Simon Legner
notifications at github.com
Tue Mar 8 21:16:29 UTC 2016
https://github.com/openstreetmap/iD uses `iD.util.displayName` to name the objects in the summary:

```js
iD.util.displayName = function(entity) {
var localeName = 'name:' + iD.detect().locale.toLowerCase().split('-')[0];
return entity.tags[localeName] || entity.tags.name || entity.tags.ref;
};
```
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1140#issuecomment-193971529
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160308/80539d28/attachment.html>
More information about the rails-dev
mailing list