Skip to content

Instantly share code, notes, and snippets.

@bmvakili
Created December 27, 2013 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bmvakili/8142716 to your computer and use it in GitHub Desktop.
Save bmvakili/8142716 to your computer and use it in GitHub Desktop.
Liferay Marketplace - Portal Statistics - Template
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<table>
<thead>
<tr>
<th>
Name
</th>
<th>
Value
</th>
</tr>
</thead>
<tbody>
<#if entries?has_content>
<#list entries as curStatisticProvider>
<tr title='<@liferay_ui["message"] key=curStatisticProvider.getDescription() />'>
<td>
<@liferay_ui["message"] key=curStatisticProvider.getName() />
</td>
<td>
${curStatisticProvider.value}
</td>
</tr>
</#list>
</#if>
</tbody>
</table>
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<table>
<thead>
<tr>
<th>
Name
</th>
<th>
Value
</th>
</tr>
</thead>
<tbody>
<#if entries?has_content>
<#list entries as curStatisticProvider>
<tr title='<@liferay_ui["message"] key=curStatisticProvider.getDescription() />'>
<td>
<#if curStatisticProvider.name = entry.name>
<strong><u><em>
</#if>
<@liferay_ui["message"] key=curStatisticProvider.getName() />
<#if curStatisticProvider.name = entry.name>
</em></u></strong>
</#if>
</td>
<td>
<#if curStatisticProvider.name = entry.name>
<strong><u><em>
</#if>
${curStatisticProvider.value}
<#if curStatisticProvider.name = entry.name>
</em></u></strong>
</#if>
</td>
</tr>
</#list>
</#if>
</tbody>
</table>
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<table>
<thead>
<tr>
<th>
Name
</th>
<th>
Value
</th>
</tr>
</thead>
<tbody>
<#if entries?has_content>
<#list entries as curStatisticProvider>
<tr title='<@liferay_ui["message"] key=curStatisticProvider.getDescription() />'>
<td>
<#if curStatisticProvider.name != entry.name>
<strong><u><em>
</#if>
<@liferay_ui["message"] key=curStatisticProvider.getName() />
<#if curStatisticProvider.name != entry.name>
</em></u></strong>
</#if>
</td>
<td>
<#if curStatisticProvider.name != entry.name>
<strong><u><em>
</#if>
${curStatisticProvider.value}
<#if curStatisticProvider.name != entry.name>
</em></u></strong>
</#if>
</td>
</tr>
</#list>
</#if>
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment