N°1094.2 Portal: Showing "icon" attribute on ServiceFamily and Service levels in "mosaic" mode of "services" BrowseBrick.

SVN:trunk[5038]
This commit is contained in:
Guillaume Lajarige
2017-10-18 14:29:53 +00:00
parent 54858c63f5
commit 8e83baf72b
3 changed files with 18 additions and 7 deletions

View File

@@ -187,7 +187,7 @@
// - Adding stub div
var textElem = $('<div></div>').addClass('mosaic-item-text');
// - Adding image
if( (item.image !== undefined) && (item.image !== '') )
if( (item.image !== undefined) && (item.image !== '') && (item.image !== null) )
{
iItemFlags += 4;
aElem.append( $('<div></div>').addClass('mosaic-item-image').append( $('<img />').attr('src', item.image) ) );

View File

@@ -677,10 +677,19 @@ table .group-actions .item-action-wrapper .panel-body > p:last-child{
font-size: 1em;
}
/****************/
/* - Mosaic mode */
/* Note: Some of the CSS is factorised in the "Tree mode" part */
/****************/
/****************************************************************/
/* - Mosaic mode */
/* */
/* Note: Some of the CSS is factorised in the "Tree mode" part */
/* */
/* Note: .mosaic-item-layout-x classes are for different */
/* presentation modes. Like in binary, add the values to know */
/* which class to use. */
/* - 1 is for name */
/* - 2 is for description */
/* - 4 is for image */
/* eg. .mosaic-item-layout-5 when just name and image */
/****************************************************************/
#brick_content_mosaic{
position: relative;
padding: 10px 10px 1px 10px;