Show More
@@ -449,6 +449,7 b' class HomeView(BaseAppView):' | |||||
449 | 'id': -10, |
|
449 | 'id': -10, | |
450 | 'value': query, |
|
450 | 'value': query, | |
451 | 'value_display': label, |
|
451 | 'value_display': label, | |
|
452 | 'value_icon': '<i class="icon-code"></i>', | |||
452 | 'type': 'search', |
|
453 | 'type': 'search', | |
453 | 'subtype': 'repo', |
|
454 | 'subtype': 'repo', | |
454 | 'url': h.route_path('search_repo', |
|
455 | 'url': h.route_path('search_repo', | |
@@ -466,6 +467,7 b' class HomeView(BaseAppView):' | |||||
466 | 'id': -20, |
|
467 | 'id': -20, | |
467 | 'value': query, |
|
468 | 'value': query, | |
468 | 'value_display': label, |
|
469 | 'value_display': label, | |
|
470 | 'value_icon': '<i class="icon-history"></i>', | |||
469 | 'type': 'search', |
|
471 | 'type': 'search', | |
470 | 'subtype': 'repo', |
|
472 | 'subtype': 'repo', | |
471 | 'url': h.route_path('search_repo', |
|
473 | 'url': h.route_path('search_repo', | |
@@ -491,6 +493,7 b' class HomeView(BaseAppView):' | |||||
491 | 'id': -30, |
|
493 | 'id': -30, | |
492 | 'value': query, |
|
494 | 'value': query, | |
493 | 'value_display': label, |
|
495 | 'value_display': label, | |
|
496 | 'value_icon': '<i class="icon-code"></i>', | |||
494 | 'type': 'search', |
|
497 | 'type': 'search', | |
495 | 'subtype': 'repo_group', |
|
498 | 'subtype': 'repo_group', | |
496 | 'url': h.route_path('search_repo_group', |
|
499 | 'url': h.route_path('search_repo_group', | |
@@ -508,6 +511,7 b' class HomeView(BaseAppView):' | |||||
508 | 'id': -40, |
|
511 | 'id': -40, | |
509 | 'value': query, |
|
512 | 'value': query, | |
510 | 'value_display': label, |
|
513 | 'value_display': label, | |
|
514 | 'value_icon': '<i class="icon-history"></i>', | |||
511 | 'type': 'search', |
|
515 | 'type': 'search', | |
512 | 'subtype': 'repo_group', |
|
516 | 'subtype': 'repo_group', | |
513 | 'url': h.route_path('search_repo_group', |
|
517 | 'url': h.route_path('search_repo_group', | |
@@ -529,6 +533,7 b' class HomeView(BaseAppView):' | |||||
529 | 'id': -1, |
|
533 | 'id': -1, | |
530 | 'value': query, |
|
534 | 'value': query, | |
531 | 'value_display': u'File search for: `{}`'.format(query), |
|
535 | 'value_display': u'File search for: `{}`'.format(query), | |
|
536 | 'value_icon': '<i class="icon-code"></i>', | |||
532 | 'type': 'search', |
|
537 | 'type': 'search', | |
533 | 'subtype': 'global', |
|
538 | 'subtype': 'global', | |
534 | 'url': h.route_path('search', |
|
539 | 'url': h.route_path('search', | |
@@ -539,6 +544,7 b' class HomeView(BaseAppView):' | |||||
539 | 'id': -2, |
|
544 | 'id': -2, | |
540 | 'value': query, |
|
545 | 'value': query, | |
541 | 'value_display': u'Commit search for: `{}`'.format(query), |
|
546 | 'value_display': u'Commit search for: `{}`'.format(query), | |
|
547 | 'value_icon': '<i class="icon-history"></i>', | |||
542 | 'type': 'search', |
|
548 | 'type': 'search', | |
543 | 'subtype': 'global', |
|
549 | 'subtype': 'global', | |
544 | 'url': h.route_path('search', |
|
550 | 'url': h.route_path('search', |
@@ -889,6 +889,7 b'' | |||||
889 | var searchType = data['type']; |
|
889 | var searchType = data['type']; | |
890 | var searchSubType = data['subtype']; |
|
890 | var searchSubType = data['subtype']; | |
891 | var valueDisplay = data['value_display']; |
|
891 | var valueDisplay = data['value_display']; | |
|
892 | var valueIcon = data['value_icon']; | |||
892 |
|
893 | |||
893 | var pattern = '(' + escapeRegExChars(value) + ')'; |
|
894 | var pattern = '(' + escapeRegExChars(value) + ')'; | |
894 |
|
895 | |||
@@ -906,7 +907,12 b'' | |||||
906 | } |
|
907 | } | |
907 | // full text search/hints |
|
908 | // full text search/hints | |
908 | else if (searchType === 'search') { |
|
909 | else if (searchType === 'search') { | |
|
910 | if (valueIcon === undefined) { | |||
909 | icon += '<i class="icon-more"></i> '; |
|
911 | icon += '<i class="icon-more"></i> '; | |
|
912 | } else { | |||
|
913 | icon += valueIcon + ' '; | |||
|
914 | } | |||
|
915 | ||||
910 | if (searchSubType !== undefined && searchSubType == 'repo') { |
|
916 | if (searchSubType !== undefined && searchSubType == 'repo') { | |
911 | valueDisplay += '<div class="pull-right tag">repository</div>'; |
|
917 | valueDisplay += '<div class="pull-right tag">repository</div>'; | |
912 | } |
|
918 | } |
General Comments 0
You need to be logged in to leave comments.
Login now