Standardize on "@user | captured_at | sitelink" for attribution

This commit is contained in:
Bryan Housel
2017-11-05 22:46:53 -05:00
parent 4c69341d83
commit ccc8153370
3 changed files with 12 additions and 4 deletions
+6
View File
@@ -142,6 +142,12 @@
}
.osc-attribution a,
.osc-attribution a:visited,
.osc-attribution span {
padding: 4px 2px;
color: #fff;
}
.osc-attribution a:active,
.osc-attribution a:hover {
color: #77ddff;
}
+4 -4
View File
@@ -539,12 +539,12 @@ export default {
var attribution = d3_select('.mapillary-js-dom .Attribution');
var capturedAt = attribution.selectAll('.captured-at');
if (capturedAt.empty()) {
attribution
.append('span')
.text('|');
capturedAt = attribution
.append('span')
.insert('span', ':last-child')
.attr('class', 'captured-at');
attribution
.insert('span', ':last-child')
.text('|');
}
capturedAt
.text(timestamp);
+2
View File
@@ -314,6 +314,7 @@ export default {
attribution
.append('a')
.attr('class', 'captured_by')
.attr('target', '_blank')
.attr('href', apibase + '/user/' + d.captured_by)
.text('@' + d.captured_by);
@@ -336,6 +337,7 @@ export default {
attribution
.append('a')
.attr('class', 'image_link')
.attr('target', '_blank')
.attr('href', apibase + '/details/' + d.sequence_id + '/' + d.sequence_index)
.text('openstreetcam.org');
}