fix rank layout in search page
This commit is contained in:
8
jquery/databap.js
vendored
8
jquery/databap.js
vendored
@@ -585,8 +585,8 @@ function Databap()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
for(iRankId in asItems) self.appendItem(asItems[iRankId], $Container, false);
|
for(iRankId in asItems) self.appendItem(asItems[iRankId], $Container, false);
|
||||||
}
|
|
||||||
self.addSuccessIcon();
|
self.addSuccessIcon();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{keywords:searchWords},
|
{keywords:searchWords},
|
||||||
'json',
|
'json',
|
||||||
@@ -614,16 +614,16 @@ function Databap()
|
|||||||
//Rank (search)
|
//Rank (search)
|
||||||
if(typeof asItemInfo.rank != 'undefined')
|
if(typeof asItemInfo.rank != 'undefined')
|
||||||
{
|
{
|
||||||
$verHtml.find('#description')
|
$verHtml.find('.glue-right')
|
||||||
.append(
|
.append(
|
||||||
$('<span>', {style:'float:right;'})
|
$('<span>', {'class':'rank'})
|
||||||
.append($('<i>', {'class':'fa fa-inline fa-c-kpi'}))
|
.append($('<i>', {'class':'fa fa-inline fa-c-kpi'}))
|
||||||
.append(asItemInfo.rank)
|
.append(asItemInfo.rank)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Icon
|
//Icon
|
||||||
$verHtml.find('.fa').addClass('fa-c-'+asItemInfo.type);
|
$verHtml.find('#type_logo').addClass('fa-c-'+asItemInfo.type);
|
||||||
|
|
||||||
//Link
|
//Link
|
||||||
var sItemLink = self.getInternalLink(asItemInfo.type, asItemInfo.id_item);
|
var sItemLink = self.getInternalLink(asItemInfo.type, asItemInfo.id_item);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div id="author_box" class="author_box clickable round">
|
<div id="author_box" class="author_box clickable round">
|
||||||
<a id="item_link" href="" target="_blank">
|
<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>) • <span id="led"></span></span>
|
<span class="glue-right"><span id="author_name"></span> (<span id="author_company"></span>) • <span id="led"></span></span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -335,6 +335,11 @@ a[href^="table"].internal_link span.item {
|
|||||||
font-size:13px;
|
font-size:13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author_box span.rank {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left:10px;
|
||||||
|
}
|
||||||
|
|
||||||
.standalone .author_box {
|
.standalone .author_box {
|
||||||
margin-top:10px;
|
margin-top:10px;
|
||||||
}
|
}
|
||||||
|
|||||||
1
todo
1
todo
@@ -8,7 +8,6 @@ Internal:
|
|||||||
- put feedback box in title
|
- put feedback box in title
|
||||||
|
|
||||||
Bug fix:
|
Bug fix:
|
||||||
- [1.0.0] Recherche : conflit entre "rank" et author / date
|
|
||||||
- [1.0.0] Tab dans chat
|
- [1.0.0] Tab dans chat
|
||||||
- [1.0.1] Check le document type plutot que l'extension pour les /img
|
- [1.0.1] Check le document type plutot que l'extension pour les /img
|
||||||
- [1.0.1] Resize .gif
|
- [1.0.1] Resize .gif
|
||||||
|
|||||||
Reference in New Issue
Block a user