[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:

![2016-03-08-22-01-23-001](https://cloud.githubusercontent.com/assets/782446/13616260/63b4c5ea-e579-11e5-8736-68c37c469f5a.png)

```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