Skip to content

Commit

Permalink
Fix tags title for 3D Model and Layer Definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed Jun 13, 2024
1 parent de34ebd commit 09f762c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qgis-app/models/templatetags/resources_tagcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,14 @@ def get_resources_tagcloud(context, app_label, model):
@register.inclusion_tag("base/includes/resources_tagcloud_modal_include.html", takes_context=True)
def include_resources_tagcloud_modal(context, app_label, model):
tags = get_resources_tagcloud(context, app_label, model)
tags_title = model[0].upper() + model[1:]
if str(model).lower() == "wavefront":
tags_title = "3D Model"
elif str(model).lower() == "layerdefinition":
tags_title = "Layer Definition"

return {
'tags': tags,
'tags_title': model[0].upper() + model[1:] + " Tags",
'tags_title': tags_title + " Tags",
'tags_list_url': model + "_tag"
}

0 comments on commit 09f762c

Please sign in to comment.