Skip to content

Commit

Permalink
add setting descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Sep 17, 2024
1 parent e1dc470 commit 7976956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cone/app/browser/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def categorized_children(self):
category.append({
'title': child.metadata.title,
'icon': child.nodeinfo.icon,
'description': child.metadata.description,
'target': make_url(self.request, node=child),
'current': child.name == self.model.name
})
Expand Down
4 changes: 3 additions & 1 deletion src/cone/app/browser/templates/settings.pt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
<div class="col-10 col-sm-9">
<div class="card-body">
<span tal:content="item['title']" class="card-text"></span>
<p class="card-text"><small class="text-muted">User and Group Settings</small></p>
<p class="card-text">
<small class="text-muted" tal:content="item['description']"></small>
</p>
</div>
</div>
</div>
Expand Down

0 comments on commit 7976956

Please sign in to comment.