Skip to content

Commit

Permalink
chore: set title per view
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfrey committed Feb 28, 2022
1 parent 8ecbe88 commit fb083ff
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${collection.getServiceId()} - ${collection.getCollectionId()}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${collections.getServiceId()} - ${messages.get(\"collections\")}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${conformance.getServiceId()} - ${messages.get(\"conformance\")}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${item.getServiceId()} - ${item.getCollectionId()} - ${item.getId()}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${item.getServiceId()} - ${item.getCollectionId()} - ${messages.get(\"items\")}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</footer>
</#macro>

<#macro layout>
<#macro layout title = "JOA">
<!doctype html>

<html lang="en">
Expand All @@ -33,7 +33,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1">

<title>JOA</title>
<title>${title}</title>

<meta name="description" content="JOA - OGC API made simple">
<meta name="author" content="Sebastian Frey">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<#-- @ftlvariable name="" type="com.github.sebastianfrey.joa.resources.views.OpenAPIView" -->
<#-- @ftlvariable name="openAPI" type="com.github.sebastianfrey.joa.resources.views.OpenAPIView" -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="SwaggerIU"
content="${serviceId} - SwaggerUI"
/>
<title>SwaggerUI</title>
<title>${serviceId} - SwaggerUI</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/swagger-ui.css" />
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${queryables.getServiceId()} - ${queryables.getCollectionId()} - ${messages.get(\"queryables\")}">
<@components.nav>
<@components.navlist>
<@components.navitem href = "">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${service.getServiceId()}">
<@components.nav>
<@components.navlist>
<@components.navitem href = context.toAbsoluteUrl("")>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<#import "Components.ftl" as components>
<#import "Icons.ftl" as icons>

<@layout.layout>
<@layout.layout title = "${messages.get(\"services\")}">
<@components.nav>
<@components.navlist>
<@components.navitem href=context.toAbsoluteUrl("") content="">
Expand Down

0 comments on commit fb083ff

Please sign in to comment.