Also I want to know, if there is a simple solution. I'm achieving this by adding two extra attributes to the AppLog BO.
Attributes:
IconColor
IconFontAwasome
Business Rules:
IconCalculation IF NEW
If AppLog.Action='New' Then
AppLog.IconFontAwasome='fa fa-plus'
AppLog.IconColor='#256117'
Icon Calculation IF EDIT
If AppLog.Action='Edit' Then
AppLog.IconFontAwasome='fa fa-pencil'
AppLog.IconColor='#564208'
Icon Calculation IF DELETE
If AppLog.Action='Delete' Then
AppLog.IconFontAwasome='fa fa-trash'
AppLog.IconColor='#EC1010'
Then using attributes in Custom query like below;
<a class="list-group-item oos-default" style="padding-top: 10px; padding-bottom: 10px;">
<h4 class="list-group-item-grid-heading-small" style="display:inline-block; line-height: 22px; width:220px">
<i style="color:{IconColor}; font-size:20px; vertical-align: bottom; margin-right:5px;" class="{IconFontAwasome}"></i>
<b>Date: </b>{TimeStamp} <br/>
<b>Action By: </b>{sc_UserFullName}
</h4>
<h4 class="list-group-item-grid-small-nomargin"
style="line-height: 22px; display:inline-block; font-size: 15px; margin-left: 32px;">
<b>{Action}</b> - {ActionObject}<br />
{Summary}
</h4>
</a>
Not an ideal way but works. Waiting experts to provide a better solution on this.