fix rank layout in search page

This commit is contained in:
2014-09-10 22:49:37 +02:00
parent ed6275164e
commit 679860798f
4 changed files with 10 additions and 6 deletions

8
jquery/databap.js vendored
View File

@@ -585,8 +585,8 @@ function Databap()
else
{
for(iRankId in asItems) self.appendItem(asItems[iRankId], $Container, false);
self.addSuccessIcon();
}
self.addSuccessIcon();
},
{keywords:searchWords},
'json',
@@ -614,16 +614,16 @@ function Databap()
//Rank (search)
if(typeof asItemInfo.rank != 'undefined')
{
$verHtml.find('#description')
$verHtml.find('.glue-right')
.append(
$('<span>', {style:'float:right;'})
$('<span>', {'class':'rank'})
.append($('<i>', {'class':'fa fa-inline fa-c-kpi'}))
.append(asItemInfo.rank)
);
}
//Icon
$verHtml.find('.fa').addClass('fa-c-'+asItemInfo.type);
$verHtml.find('#type_logo').addClass('fa-c-'+asItemInfo.type);
//Link
var sItemLink = self.getInternalLink(asItemInfo.type, asItemInfo.id_item);

View File

@@ -1,6 +1,6 @@
<div id="author_box" class="author_box clickable round">
<a id="item_link" href="" target="_blank">
<i class="fa fa-inline fa-30"></i><span id="description" class="description"></span>
<i id="type_logo" class="fa fa-inline fa-30"></i><span id="description" class="description"></span>
<span class="glue-right"><span id="author_name"></span> (<span id="author_company"></span>) &bull; <span id="led"></span></span>
</a>
</div>

View File

@@ -335,6 +335,11 @@ a[href^="table"].internal_link span.item {
font-size:13px;
}
.author_box span.rank {
font-weight: bold;
margin-left:10px;
}
.standalone .author_box {
margin-top:10px;
}

1
todo
View File

@@ -8,7 +8,6 @@ Internal:
- put feedback box in title
Bug fix:
- [1.0.0] Recherche : conflit entre "rank" et author / date
- [1.0.0] Tab dans chat
- [1.0.1] Check le document type plutot que l'extension pour les /img
- [1.0.1] Resize .gif