clearer labels for OSM links in history panel (#8834)

This commit is contained in:
Jason Ghent
2021-12-07 06:45:13 -05:00
committed by GitHub
parent 144f3e9d22
commit 8111e5d427
3 changed files with 7 additions and 7 deletions

View File

@@ -643,8 +643,10 @@ en:
last_edit: Last Edit
edited_by: Edited By
changeset: Changeset
changeset_link: Changeset on osm.org
profile_link: Profile on osm.org
history_link: History on osm.org
unknown: Unknown
link_text: History on openstreetmap.org
note_no_history: "No History (New Note)"
note_comments: Comments
note_created_date: Created Date

File diff suppressed because one or more lines are too long

View File

@@ -40,7 +40,7 @@ export function uiPanelHistory(context) {
.attr('class', 'user-osm-link')
.attr('href', osm.userURL(userName))
.attr('target', '_blank')
.text('OSM');
.call(t.append('info_panels.history.profile_link'));
}
links
@@ -76,7 +76,7 @@ export function uiPanelHistory(context) {
.attr('class', 'changeset-osm-link')
.attr('href', osm.changesetURL(changeset))
.attr('target', '_blank')
.text('OSM');
.call(t.append('info_panels.history.changeset_link'));
}
links
@@ -98,7 +98,6 @@ export function uiPanelHistory(context) {
function redraw(selection) {
var selectedNoteID = context.selectedNoteID();
osm = context.connection();
var selected, note, entity;
if (selectedNoteID && osm) { // selected 1 note
selected = [ t.html('note.note') + ' ' + selectedNoteID ];
@@ -198,8 +197,7 @@ export function uiPanelHistory(context) {
.attr('class', 'view-history-on-osm')
.attr('href', osm.historyURL(entity))
.attr('target', '_blank')
.attr('title', t('info_panels.history.link_text'))
.text('OSM');
.call(t.append('info_panels.history.history_link'));
}
links
.append('a')