Skip to content

Commit ec24c99

Browse files
authored
[Fix GeoNode#12517] Update layer to dataset for pinax notification (GeoNode#12518)
* Update pinax dataset template
1 parent 285a5d2 commit ec24c99

File tree

12 files changed

+5
-5
lines changed

12 files changed

+5
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load i18n %}
22
{% trans "The following dataset was approved" %} by a Manager or Staff member:<br/>
33
<strong>{{ resource.title }}</strong>, {% trans "owned by" %} <i><a href="{{ default_http_protocol }}://{{ current_site }}/people/profile/{{ resource.owner.username }}">{{ resource.owner.username }}</a></i><br/>
4-
{% trans "You can visit the dataset's detail page here" %}: http://{{ current_site }}{% url "layer_detail" resource.service_typename %}
4+
{% trans "You can visit the dataset's detail page here" %}: {{ default_http_protocol }}://{{ current_site }}{{ resource.get_absolute_url }}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load i18n %}
22
{% trans "The user" %} <i><a href="{{ default_http_protocol }}://{{ current_site }}/people/profile/{{ resource.owner.username }}">{{ resource.owner.username }}</a></i> {% trans "uploaded the following dataset" %}:<br/>
33
<strong>{{ resource.title }}</strong><br/>
4-
{% trans "You can visit the dataset's detail page here" %}: http://{{ current_site }}{% url "layer_detail" resource.service_typename %}
4+
{% trans "You can visit the dataset's detail page here" %}: {{ default_http_protocol }}://{{ current_site }}{{ resource.get_absolute_url }}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load i18n %}
22
{% trans "The following dataset was published" %}:<br/>
33
<strong>{{ resource.title }}</strong>, {% trans "owned by" %} <i><a href="{{ default_http_protocol }}://{{ current_site }}/people/profile/{{ resource.owner.username }}">{{ resource.owner.username }}</a></i><br/>
4-
{% trans "You can visit the dataset's detail page here" %}: http://{{ current_site }}{% url "layer_detail" resource.service_typename %}
4+
{% trans "You can visit the dataset's detail page here" %}: {{ default_http_protocol }}://{{ current_site }}{{ resource.get_absolute_url }}

geonode/templates/pinax/notifications/layer_rated/full.txt geonode/templates/pinax/notifications/dataset_rated/full.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
{% trans "rated" %} {{ rating }}<br/>
44
{% trans "the following dataset" %}:<br/>
55
{{ resource.title }}, {% trans "owned by" %} {{ resource.owner.username }}<br/>
6-
{% trans "You can visit the dataset's detail page here" %}: http://{{ current_site }}{% url "layer_detail" resource.service_typename %}
6+
{% trans "You can visit the dataset's detail page here" %}: {{ default_http_protocol }}://{{ current_site }}{{ resource.get_absolute_url }}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load i18n %}
22
{% trans "The following dataset was updated" %}:<br/>
33
<strong>{{ resource.title }}</strong>, {% trans "owned by" %} <i><a href="{{ default_http_protocol }}://{{ current_site }}/people/profile/{{ resource.owner.username }}">{{ resource.owner.username }}</a></i><br/>
4-
{% trans "You can visit the dataset's detail page here" %}: http://{{ current_site }}{% url "layer_detail" resource.service_typename %}
4+
{% trans "You can visit the dataset's detail page here" %}: {{ default_http_protocol }}://{{ current_site }}{{ resource.get_absolute_url }}

0 commit comments

Comments
 (0)