|
@@ -199,7 +199,12 @@ class base_view(object):
|
199
|
199
|
for t in self.item.tag_set.all():
|
200
|
200
|
i += 1
|
201
|
201
|
edit_url = pygal.url_tagedit(self.request, t.id) if self.may_modify() else None
|
|
202
|
+ search_query = 'tag:%s' % t.text
|
|
203
|
+ search_url = pygal.url_userview(self.request, '', search=search_query)
|
202
|
204
|
b.append_entry('tag-%d' % i, t.text, themes.color_icon_url(self.request, '%d.png' % (i % 10)), edit_url, True, False)
|
|
205
|
+ if pygal.get_search_query(self.request) != search_query:
|
|
206
|
+ b.append_entry_to_entry('tag-%d' % i, 'tagedit-%d' % i, _('Edit'), themes.gray_icon_url(self.request, 'edit2.png'), edit_url, True, False)
|
|
207
|
+ b.append_entry_to_entry('tag-%d' % i, 'tagsearch-%d' % i, _('Search'), themes.gray_icon_url(self.request, 'search.png'), search_url, True, False)
|
203
|
208
|
return b
|
204
|
209
|
|
205
|
210
|
@property
|