소스 검색

HUE-1998 [search] Improve demo collection message display

Removed jumpiness and updated link
Enrico Berti 11 년 전
부모
커밋
f9f1b93
1개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. 13 6
      apps/search/src/search/templates/search.mako

+ 13 - 6
apps/search/src/search/templates/search.mako

@@ -89,6 +89,19 @@ ${ commonheader(_('Search'), "search", user, "90px") | n,unicode }
   </form>
 </div>
 
+% if 'is_demo' in response['responseHeader']:
+  <div class="container-fluid">
+    <div class="row-fluid">
+      <div class="span12">
+        <div class="alert alert-warn">
+          ${ _('A demo index is used. In order to be interactive, please ') } <a href="http://gethue.tumblr.com/post/78012277574/tutorial-demo-the-search-on-hadoop-examples" target="_blank">${ _('create the indexes') }</a> ${ _(' in Solr.') }
+        </div>
+      </div>
+    </div>
+  </div>
+% endif
+
+
 <div id="loader" class="row" style="text-align: center;margin-top: 20px">
   <!--[if lte IE 9]>
       <img src="/static/art/spinner-big.gif" />
@@ -114,12 +127,6 @@ ${ commonheader(_('Search'), "search", user, "90px") | n,unicode }
 % else:
 <div class="container results">
 
-% if 'is_demo' in response['responseHeader']:
- <div class="alert alert-warn">
-  ${ _('A demo index is used. In order to be interactive, please ') } <a href="">${ _('create the indexes') }</a> ${ _(' in Solr.') }
- </div>
-% endif 
-
   <div id="mainContent" class="row hide">
     % if response and 'response' in response and 'docs' in response['response'] and len(response['response']['docs']) > 0 and 'normalized_facets' in response:
       <% shown_facets = 0 %>