Commit 446045b0 authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

the list of systems is not displayed anymore in 3 columns

and a unordered list is used intead of an ordered one
parent e7aaa427
...@@ -13,8 +13,8 @@ div .left{ ...@@ -13,8 +13,8 @@ div .left{
float:left; float:left;
} }
#results ol>li{ #results div>ul>li{
padding-top:5px; padding-top:4px;
margin-top:5px; margin-top:5px;
} }
......
...@@ -11,9 +11,7 @@ function(head, req) { ...@@ -11,9 +11,7 @@ function(head, req) {
var first_docid, last_docid; var first_docid, last_docid;
var row, system; var row, system;
send(Mustache.to_html(templates.replicon.head , {})); send(Mustache.to_html(templates.replicon.head , {}));
var item_in_col = 0;
var item = 0 var item = 0
var col_height = 15;
var more_results = false; var more_results = false;
var next_key= null; var next_key= null;
var next_docid = null; var next_docid = null;
...@@ -28,7 +26,6 @@ function(head, req) { ...@@ -28,7 +26,6 @@ function(head, req) {
next_docid = row.id; next_docid = row.id;
break; break;
} }
item_in_col++;
last_key = row.key; last_key = row.key;
last_docid = row.id; last_docid = row.id;
system = row.value ; system = row.value ;
...@@ -42,10 +39,6 @@ function(head, req) { ...@@ -42,10 +39,6 @@ function(head, req) {
"taxonomy" : system.taxonomy, "taxonomy" : system.taxonomy,
"type" : system.type "type" : system.type
})); }));
if( item_in_col >= col_height){
send('</ol></div><div class="left"><ol>');
item_in_col = 0;
}
} }
if (!first_key){ if (!first_key){
send( 'No results found'); send( 'No results found');
......
<li class="tooltip"> <li class="tooltip">
<a href="{{url}}">{{name}}</a> <a href="{{url}}"><span class="replicon_property">Strain</span>: {{strain}} ; <span class="replicon_property">T3SS family</span>: {{T3SS_family}}</a>
<ul> <ul>
<li><span class="replicon_property">taxonomy id</span>: {{taxid}}</li>
<li><span class="replicon_property">full taxonomy</span>: {{taxonomy}}</li>
<li><span class="replicon_property">replicon type</span>: {{type}}</li>
<li><span class="replicon_property">code</span>: {{code}}</li> <li><span class="replicon_property">code</span>: {{code}}</li>
<li><span class="replicon_property">T3SS_family</span>: {{T3SS_family}}</li>
<li><span class="replicon_property">taxid</span>: {{taxid}}</li>
<li><span class="replicon_property">strain</span>: {{strain}}</li>
<li><span class="replicon_property">taxonomy</span>: {{taxonomy}}</li>
<li><span class="replicon_property">type</span>: {{type}}</li>
</ul> </ul>
</li> </li>
</ol> </ul>
</div> </div>
<div id="paginate"> <div id="paginate">
{{#prev}}<span class="nav_page" data-href="{{prev}}">&lt; previous</span>{{/prev}}{{#next}}|<span class="nav_page" data-href="{{next}}">next &gt;</span>{{/next}} {{#prev}}<span class="nav_page" data-href="{{prev}}">&lt; previous</span>{{/prev}}{{#next}}|<span class="nav_page" data-href="{{next}}">next &gt;</span>{{/next}}
......
Markdown is supported
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