diff --git a/core/src/main/java/org/eclipsefoundation/core/resource/CacheResource.java b/core/src/main/java/org/eclipsefoundation/core/resource/CacheResource.java index 8f887cc4550e75921626de8961af0e029911a4bd..93bd14114bf4b006f1684870169b8500b4ff0559 100644 --- a/core/src/main/java/org/eclipsefoundation/core/resource/CacheResource.java +++ b/core/src/main/java/org/eclipsefoundation/core/resource/CacheResource.java @@ -64,8 +64,9 @@ public class CacheResource { return Response .ok() .entity(cacheKeysView - .data("cacheKeys", service.getCacheKeys().stream().map(this::buildWrappedKeys).collect(Collectors.toList()), "key", - passedKey) + .data("cacheKeys", service.getCacheKeys().stream().map(this::buildWrappedKeys).collect(Collectors.toList())) + .data("key", passedKey) + .data("title", "Application Cache Keys") .render()) .build(); } diff --git a/core/src/main/resources/templates/cache_keys.html b/core/src/main/resources/templates/cache_keys.html index 8d7efe92f00d1af1e90542661eee3690190cd8c4..cecd6513a517ba6cbd2b751aaa45d169f31f1f6c 100644 --- a/core/src/main/resources/templates/cache_keys.html +++ b/core/src/main/resources/templates/cache_keys.html @@ -1,4 +1,5 @@ -{#include eclipse_header /} +{#eclipse_base} +{#insert precontent} {|<style> .panel.list-group > div { background-color: white; @@ -10,9 +11,8 @@ color: #c74922; border-color: #c74922; }</style>|} - -<section class="container"> - <h1>Cache keys</h1> +{/} +{#insert content} <table class="table margin-top-30"> <caption>List of active keys in the Quarkus cache for the current application</caption> <thead> @@ -36,7 +36,8 @@ {/for} </tbody> </table> -</section> +{/} +{#insert postcontent} {|<script> async function postClearRequest(ctx) { let k = ctx.getAttribute('data-key'); @@ -62,4 +63,5 @@ } </script>|} -{#include eclipse_footer /} \ No newline at end of file +{/} +{/} \ No newline at end of file diff --git a/core/src/main/resources/templates/eclipse_header.html b/core/src/main/resources/templates/eclipse_header.html index a280d808a55985aabab9c6b54f9a4628f4bfdae3..2549813186f5fb13aaa8c1df9d5493069ea3af26 100644 --- a/core/src/main/resources/templates/eclipse_header.html +++ b/core/src/main/resources/templates/eclipse_header.html @@ -18,10 +18,10 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= <meta name="description" content="The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks."/> <meta property="og:description" content="The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks."/> <meta property="og:image" content="//www.eclipse.org/eclipse.org-common/themes/solstice/public/images/logo/eclipse-foundation-200x200.png"/> -<title>{#insert title}HTML Template{/} | The Eclipse Foundation</title> -<meta property="og:title" content="{#insert title}HTML Template{/} | The Eclipse Foundation"/> -<meta itemprop="name" content="{#insert title}HTML Template{/} | The Eclipse Foundation"/> -<meta name="twitter:title" content="{#insert title}HTML Template{/} | The Eclipse Foundation"/> +<title>{#insert title}{title ?: 'HTML Template'}{/} | The Eclipse Foundation</title> +<meta property="og:title" content="{#insert title}{title ?: 'HTML Template'}{/} | The Eclipse Foundation"/> +<meta itemprop="name" content="{#insert title}{title ?: 'HTML Template'}{/} | The Eclipse Foundation"/> +<meta name="twitter:title" content="{#insert title}{title ?: 'HTML Template'}{/} | The Eclipse Foundation"/> <meta property="og:image:width" content="200"/> <meta property="og:image:height" content="200"/> <meta itemprop="description" content="The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks."/> diff --git a/core/src/main/resources/templates/tags/eclipse_base.html b/core/src/main/resources/templates/tags/eclipse_base.html new file mode 100644 index 0000000000000000000000000000000000000000..e794e0c13fbcd3a47d91288b3e438bd8a92973d0 --- /dev/null +++ b/core/src/main/resources/templates/tags/eclipse_base.html @@ -0,0 +1,12 @@ +{#include eclipse_header /} +{#insert precontent}{/} +{#insert content_prewrap} +<section class="container"> + <h1>{title}</h1> +{/} +{#insert content}{/} +{#insert content_postwrap} +</section> +{/} +{#insert postcontent}{/} +{#include eclipse_footer /} \ No newline at end of file