Skip to content

Commit

Permalink
Link to wiki for changeset comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kepta committed Jan 29, 2016
1 parent 7c9bc50 commit f31daa1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ en:
modified: Modified
deleted: Deleted
created: Created
about_changeset_comments: About changeset comments
about_changeset_comments_link: //wiki.openstreetmap.org/wiki/Good_changeset_comments
contributors:
list: "Edits by {users}"
truncated_list: "Edits by {users} and {count} others"
Expand Down Expand Up @@ -760,4 +762,3 @@ en:
help: "You can replay this walkthrough or view more documentation by clicking the {button} Help button."
save: "Don't forget to regularly save your changes!"
start: "Start mapping!"

2 changes: 1 addition & 1 deletion dist/locales/en.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions js/id/ui/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ iD.ui.Commit = function(context) {
commentField.call(d3.combobox().data(comments));
});

var changeSetInfo = commentSection.append('div')
.attr('class', 'changeset-info');

changeSetInfo.append('a')
.attr('target', '_blank')
.attr('tabindex', -1)
.call(iD.svg.Icon('#icon-out-link', 'inline'))
.attr('href', t('commit.about_changeset_comments_link'))
.append('span')
.text(t('commit.about_changeset_comments'));

// Warnings
var warnings = body.selectAll('div.warning-section')
.data([context.history().validate(changes)])
Expand Down

0 comments on commit f31daa1

Please sign in to comment.