Put displayed link back to using login_name

This commit is contained in:
Brenda Wallace
2019-01-18 20:00:31 +13:00
committed by GitHub
parent 9a18918b42
commit a06516b80f

View File

@@ -17,7 +17,7 @@ function showCropMap(cropmap) {
var marker = new L.Marker(new L.LatLng(owner.latitude, owner.longitude));
var planting_url = "/plantings/" + planting.id;
var planting_link = "<a href='" + planting_url + "'>" + owner.slug + "'s " + crop.name + "</a>";
var planting_link = "<a href='" + planting_url + "'>" + owner.login_name + "'s " + crop.name + "</a>";
var where = "<p><i>" + owner.location + "</i></p>";
@@ -54,4 +54,4 @@ $(document).ready(function() {
$('.btn.toggle.crop-hierarchy').click(function () {
$('.toggle.crop-hierarchy').toggleClass('hide');
});
});
});