mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
use mustache template engine to render repository root page
This commit is contained in:
@@ -77,7 +77,7 @@ public class RepositoryRootResource
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
public static final String TEMPLATE = "/templates/repository-root.ftl";
|
||||
public static final String TEMPLATE = "/templates/repository-root.mustache";
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
|
||||
@@ -91,11 +91,11 @@
|
||||
<h1>SCM-Manager Repositories</h1>
|
||||
|
||||
<ul>
|
||||
<#list repositories as repository>
|
||||
{{#repositories}}
|
||||
<li>
|
||||
<a href="${repository.url}">${repository.name}</a> (<a href="${repository.detailUrl}">Details</a>, <a href="${repository.commitUrl}">Commits</a>, <a href="${repository.sourceUrl}">Source</a>)
|
||||
<a href="{{url}}">{{name}}</a> (<a href="{{detailUrl}}">Details</a>, <a href="{{commitUrl}}">Commits</a>, <a href="{{sourceUrl}}">Source</a>)
|
||||
</li>
|
||||
</#list>
|
||||
{{/repositories}}
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
Reference in New Issue
Block a user