ux: change file search to file content search which makes a better description of what we search for.
This commit is contained in:
parent
6aa2443428
commit
f3d86f6a00
2 changed files with 4 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ def assert_and_get_main_filter_content(result):
|
|||
if data_item['type'] == 'search':
|
||||
display_val = data_item['value_display']
|
||||
if data_item['id'] == -1:
|
||||
assert 'File search for:' in display_val, display_val
|
||||
assert 'File content search for:' in display_val, display_val
|
||||
elif data_item['id'] == -2:
|
||||
assert 'Commit search for:' in display_val, display_val
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ class HomeView(BaseAppView, DataGridAppView):
|
|||
qry = query
|
||||
return {'q': qry, 'type': 'content'}
|
||||
|
||||
label = u'File search for `{}`'.format(h.escape(query))
|
||||
label = u'File content search for `{}`'.format(h.escape(query))
|
||||
file_qry = {
|
||||
'id': -10,
|
||||
'value': query,
|
||||
|
|
@ -497,7 +497,7 @@ class HomeView(BaseAppView, DataGridAppView):
|
|||
qry = query
|
||||
return {'q': qry, 'type': 'content'}
|
||||
|
||||
label = u'File search for `{}`'.format(query)
|
||||
label = u'File content search for `{}`'.format(query)
|
||||
file_qry = {
|
||||
'id': -30,
|
||||
'value': query,
|
||||
|
|
@ -541,7 +541,7 @@ class HomeView(BaseAppView, DataGridAppView):
|
|||
{
|
||||
'id': -1,
|
||||
'value': query,
|
||||
'value_display': u'File search for: `{}`'.format(query),
|
||||
'value_display': u'File content search for: `{}`'.format(query),
|
||||
'value_icon': '<i class="icon-code"></i>',
|
||||
'type': 'search',
|
||||
'subtype': 'global',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue