Commit 4234bd6f authored by Ryan Herbert's avatar Ryan Herbert
Browse files

my account: display number of uses on tags

parent cbfe3991
......@@ -179,7 +179,7 @@ def index():
tags = get_most_used_tags(group_list) # list tags used without filtering
for r in tags:
if(r.tag.name is not None):
result[r.auth_group.role]['tags'].append(r.tag.name)
result[r.auth_group.role]['tags'].append("%s (%d)" % (r.tag.name, r.count))
involved_group_ids = get_involved_groups() # for search autocomplete
......
......@@ -28,7 +28,7 @@
{{pass}}
<div class="set_data margined-bottom">
{{ for tag in result[role]['tags']: }}
<a onclick="event.preventDefault();event.stopPropagation();db.callLinkable($(this))" href="/my_account/index" class="tag-link" data-linkable-type="tag" data-linkable-target-param="filter" data-linkable-name="#{{=tag}}">#{{=tag}}</a>
<a onclick="event.preventDefault();event.stopPropagation();db.callLinkable($(this))" href="/my_account/index" class="tag-link" data-linkable-type="tag" data-linkable-target-param="filter" data-linkable-name="#{{=tag.split(' ')[0]}}">#{{=tag}}</a>
{{pass}}
</div>
<div class="set_data">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment