Commit b748b8bd authored by Arnaud Saval's avatar Arnaud Saval

WEBLAB-759 add a hypertext link if the source is an URL

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/trunk/WebLabServices/Portlets/metadata-portlet@2979 a803c184-d8de-4a0e-a52b-d3eef88212b6
parent 35bcc8e8
......@@ -356,7 +356,15 @@
<fmt:message key="meta.source" />&nbsp;:
</th>
<td>
<i>${resource_desc[rdfProperties['source']][0]}</i>
<c:choose>
<c:when test="${fn:startsWith(resource_desc[rdfProperties['source']][0],'http://')}">
<a class="meta_link" target="_blank" href="${resource_desc[rdfProperties['source']][0]}">
${resource_desc[rdfProperties['source']][0]}</a>
</c:when>
<c:otherwise>
<i>${resource_desc[rdfProperties['source']][0]}</i>
</c:otherwise>
</c:choose>
</td>
</tr>
</c:if> <c:if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment