Replace Edit Documentation link with pencil icon

(closes #5753)
This commit is contained in:
Bryan Housel
2019-02-01 11:49:03 -05:00
parent bde55bd7ee
commit d1fca87d79
4 changed files with 11 additions and 22 deletions
+3 -7
View File
@@ -2238,16 +2238,12 @@ div.combobox {
width: 100%;
overflow: hidden;
}
.tag-reference-body .tag-reference-description {
margin: 10px 5px 0 5px;
.tag-reference-description {
margin: 10px 5px;
}
.tag-reference-body a {
.tag-reference-link {
display: block;
}
.tag-reference-body .tag-reference-description:last-child,
.tag-reference-body a:last-child {
margin-bottom: 15px;
}
.preset-list .tag-reference-body {
position: relative;
+2 -4
View File
@@ -411,8 +411,6 @@ en:
tooltip_note: "Center and zoom the map to focus on this note."
tooltip_data: "Center and zoom the map to focus on this data."
tooltip_issue: "Center and zoom the map to focus on this issue."
no_documentation_combination: There is no documentation available for this tag combination
no_documentation_key: There is no documentation available for this key
show_more: Show More
view_on_osm: View on openstreetmap.org
view_on_keepRight: View on keepright.at
@@ -425,8 +423,8 @@ en:
role: Role
choose: Select feature type
results: "{n} results for {search}"
reference: View on OpenStreetMap Wiki
edit_reference: Edit or translate description
no_documentation_key: There is no documentation available for this key
edit_reference: "edit/translate"
wiki_reference: View documentation
wiki_en_reference: View documentation in English
back_tooltip: Change feature
+2 -4
View File
@@ -506,8 +506,6 @@
"tooltip_data": "Center and zoom the map to focus on this data.",
"tooltip_issue": "Center and zoom the map to focus on this issue."
},
"no_documentation_combination": "There is no documentation available for this tag combination",
"no_documentation_key": "There is no documentation available for this key",
"show_more": "Show More",
"view_on_osm": "View on openstreetmap.org",
"view_on_keepRight": "View on keepright.at",
@@ -520,8 +518,8 @@
"role": "Role",
"choose": "Select feature type",
"results": "{n} results for {search}",
"reference": "View on OpenStreetMap Wiki",
"edit_reference": "Edit or translate description",
"no_documentation_key": "There is no documentation available for this key",
"edit_reference": "edit/translate",
"wiki_reference": "View documentation",
"wiki_en_reference": "View documentation in English",
"back_tooltip": "Change feature",
+4 -7
View File
@@ -123,17 +123,14 @@ export function uiTagReference(tag) {
_body
.append('p')
.attr('class', 'tag-reference-description')
.text(docs.description || t('inspector.no_documentation_key'));
_body
.text(docs.description || t('inspector.no_documentation_key'))
.append('a')
.attr('class', 'tag-reference-link')
.attr('class', 'tag-reference-edit')
.attr('target', '_blank')
.attr('tabindex', -1)
.attr('title', t('inspector.edit_reference'))
.attr('href', 'https://wiki.openstreetmap.org/wiki/' + docs.title)
.call(svgIcon('#iD-icon-out-link', 'inline'))
.append('span')
.text(t('inspector.edit_reference'));
.call(svgIcon('#iD-icon-edit', 'inline'));
if (docs.wiki) {
_body