Skip to content

Instantly share code, notes, and snippets.

@fjunior87
Created August 13, 2016 15:15
Show Gist options
  • Save fjunior87/9d37e433b9dd857985e58b6550bc7d51 to your computer and use it in GitHub Desktop.
Save fjunior87/9d37e433b9dd857985e58b6550bc7d51 to your computer and use it in GitHub Desktop.
<c:forEach var="contact" items="${contacts}" >
<sling:adaptTo adaptable="${contact}" adaptTo="com.xicojunior.contacts.models.Contact" var="contactProps" />
<li class="list-group-item">
<div class="col-xs-12 col-sm-3">
<c:if test="${not empty contactProps.contactImage }">
<img src="${contactProps.contactImage}" alt="${contactProps.name}" class="img-responsive img-circle">
</c:if>
</div>
<div class="col-xs-12 col-sm-9">
<span class="name">${contactProps.name}</span><br>
<span class="glyphicon glyphicon-map-marker text-muted c-info" data-toggle="tooltip" title="" data-original-title="${contactProps.address}"></span>
<span class="visible-xs"> <span class="text-muted">${contactProps.address}</span><br></span>
<span class="glyphicon glyphicon-earphone text-muted c-info" data-toggle="tooltip" title="" data-original-title="${contactProps.phone}"></span>
<span class="visible-xs"> <span class="text-muted">${contactProps.phone}</span><br></span>
<span class="fa fa-comments text-muted c-info" data-toggle="tooltip" title="" data-original-title="${contactProps.email}"></span>
<span class="visible-xs"> <span class="text-muted">${contactProps.email}</span><br></span>
</div>
<div class="clearfix"></div>
</li>
</c:forEach>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment