mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-29 07:06:04 +02:00
Reduce prominence of share links, add G+
This commit is contained in:
+18
-6
@@ -2262,11 +2262,11 @@ img.wiki-image {
|
||||
------------------------------------------------------- */
|
||||
|
||||
.modal-actions .restore:before {
|
||||
background-position: -500px -220px;
|
||||
background-position: -600px -220px;
|
||||
}
|
||||
|
||||
.modal-actions .reset:before {
|
||||
background-position: -600px -220px;
|
||||
background-position: -700px -220px;
|
||||
}
|
||||
|
||||
/* Success Modal
|
||||
@@ -2280,16 +2280,28 @@ img.wiki-image {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
||||
.save-success .button.social {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.save-success .button.social:before {
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.save-success .button.osm:before {
|
||||
background-position: 0px -220px;
|
||||
}
|
||||
|
||||
.save-success .button.twitter:before {
|
||||
background-position: -100px -220px;
|
||||
background-position: -100px -245px;
|
||||
}
|
||||
|
||||
.save-success .button.facebook:before {
|
||||
background-position: -200px -220px;
|
||||
background-position: -200px -245px;
|
||||
}
|
||||
|
||||
.save-success .button.google:before {
|
||||
background-position: -300px -245px;
|
||||
}
|
||||
|
||||
/* Splash Modal
|
||||
@@ -2297,11 +2309,11 @@ img.wiki-image {
|
||||
|
||||
.modal-actions .walkthrough:before,
|
||||
.walkthrough a:before {
|
||||
background-position: -300px -220px;
|
||||
background-position: -400px -220px;
|
||||
}
|
||||
|
||||
.modal-actions .start:before {
|
||||
background-position: -400px -220px;
|
||||
background-position: -500px -220px;
|
||||
}
|
||||
|
||||
/* Commit Modal
|
||||
|
||||
+2
-1
@@ -216,7 +216,8 @@ en:
|
||||
just_edited: "You just edited OpenStreetMap!"
|
||||
view_on_osm: "View on OSM"
|
||||
facebook: "Share on Facebook"
|
||||
tweet: "Tweet"
|
||||
twitter: "Share on Twitter"
|
||||
google: "Share on Google+"
|
||||
help_html: |
|
||||
Your changes should appear in the "Standard" layer in a few minutes. Other layers, and certain features, may take longer
|
||||
(<a href='https://help.openstreetmap.org/questions/4705/why-havent-my-changes-appeared-on-the-map'>details</a>).
|
||||
|
||||
Vendored
+564
-299
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 170 KiB |
Vendored
+2
-1
@@ -265,7 +265,8 @@
|
||||
"just_edited": "You just edited OpenStreetMap!",
|
||||
"view_on_osm": "View on OSM",
|
||||
"facebook": "Share on Facebook",
|
||||
"tweet": "Tweet",
|
||||
"twitter": "Share on Twitter",
|
||||
"google": "Share on Google+",
|
||||
"help_html": "Your changes should appear in the \"Standard\" layer in a few minutes. Other layers, and certain features, may take longer\n(<a href='https://help.openstreetmap.org/questions/4705/why-havent-my-changes-appeared-on-the-map'>details</a>).\n"
|
||||
},
|
||||
"confirm": {
|
||||
|
||||
+16
-18
@@ -24,31 +24,29 @@ iD.ui.Success = function(context) {
|
||||
body.append('p')
|
||||
.html(t('success.help_html'));
|
||||
|
||||
var changesetURL = context.connection().changesetURL(changeset.id);
|
||||
|
||||
body.append('a')
|
||||
.attr('class', 'button col12 osm')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
return context.connection().changesetURL(changeset.id);
|
||||
})
|
||||
.attr('href', changesetURL)
|
||||
.text(t('success.view_on_osm'));
|
||||
|
||||
body.append('a')
|
||||
.attr('class', 'button col12 twitter')
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
return 'https://twitter.com/intent/tweet?source=webclient&text=' +
|
||||
encodeURIComponent(message);
|
||||
})
|
||||
.text(t('success.tweet'));
|
||||
var sharing = {
|
||||
facebook: 'https://facebook.com/sharer/sharer.php?u=' + encodeURIComponent(changesetURL),
|
||||
twitter: 'https://twitter.com/intent/tweet?source=webclient&text=' + encodeURIComponent(message),
|
||||
google: 'https://plus.google.com/share?url=' + encodeURIComponent(changesetURL)
|
||||
};
|
||||
|
||||
body.append('a')
|
||||
.attr('class', 'button col12 facebook')
|
||||
body.selectAll('.button.social')
|
||||
.data(d3.entries(sharing))
|
||||
.enter().append('a')
|
||||
.attr('class', function(d) { return 'button social col4 ' + d.key; })
|
||||
.attr('target', '_blank')
|
||||
.attr('href', function() {
|
||||
return 'https://facebook.com/sharer/sharer.php?u=' +
|
||||
encodeURIComponent(context.connection().changesetURL(changeset.id));
|
||||
})
|
||||
.text(t('success.facebook'));
|
||||
.attr('href', function(d) { return d.value; })
|
||||
.call(bootstrap.tooltip()
|
||||
.title(function(d) { return t('success.' + d.key); })
|
||||
.placement('bottom'));
|
||||
}
|
||||
|
||||
success.changeset = function(_) {
|
||||
|
||||
Reference in New Issue
Block a user