Skip to content

Commit

Permalink
[Fixes #12161] No href in profile_detail > Resources > links of resou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
mattiagiupponi authored and giohappy committed Apr 17, 2024
1 parent 8200def commit 75edcdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions geonode/api/resourcebase_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def format_objects(self, objects):
if formatted_obj.get("metadata", None):
formatted_obj["metadata"] = [model_to_dict(_m) for _m in formatted_obj["metadata"]]

formatted_obj["detail_url"] = obj.detail_url

formatted_objects.append(formatted_obj)

return formatted_objects
Expand Down
4 changes: 2 additions & 2 deletions geonode/people/templates/people/profile_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ <h4>{% trans "Resources" %}</h4>
<div class="col-md-12">
{% include "people/_profile_filters.html" %}
</div>
<!-- <div class="col-md-12">
<div class="col-md-12">
{% include "search/_sort_filters.html" %}
</div> -->
</div>
<div class=" col-xs-12 col-md-12">
{% include 'base/_resourcebase_snippet.html' %}
</div>
Expand Down

0 comments on commit 75edcdb

Please sign in to comment.