Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

#if($creditBlockLogs && $creditBlockLogs.size() > 0)
    #foreach($log in $creditBlockLogs)
        <div class="credit-log-entry" style="border-bottom:1px solid #eee; padding:8px 4px;">
            <div>
                #if($log.getAction().name() == "BLOCK")
                    <span class="label label-danger">BLOCK</span>
                #else
                    <span class="label label-success">UNBLOCK</span>
                #end
                <span style="float:right; color:#888;">$log.getCreatedOn().format($dateTimeFormatter)</span>
            </div>
            <div style="margin-top:4px;">Reason: #if($log.getReason() && $log.getReason() != "")$log.getReason()#{else}-#end</div>
            <div style="color:#888; font-size:12px;">By: $log.getPerformedBy()</div>
        </div>
    #end
#else
    <div style="text-align:center; color:#888; padding:12px;">No block / unblock history.</div>
#end