Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemention of new WebComponent header #15

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.georchestra.cas;

import lombok.Data;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand All @@ -16,9 +17,16 @@
@Data
public class GeorchestraConfiguration {

@Value( "${useLegacyHeader:false}" )
boolean useLegacyHeader = false;

@Value( "${headerUrl}" )
String headerUrl;

@Value("${headerHeight}")
String headerHeight;

@Value("${headerScript}")
String headerScript;

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@

<body>
<div th:fragment="header">
<iframe
th:src="${@georchestraConfiguration.getHeaderUrl()}"
th:style="'width:100%;height:'+ ${@georchestraConfiguration.getHeaderHeight()}+'px;border:none;overflow:hidden;'" scrolling="no" frameborder="0">
</iframe>
<geor-header th:style="'width:100%;height:'+ ${@georchestraConfiguration.getHeaderHeight()}+'px;border:none;overflow:hidden;'"
th:legacy-url="${@georchestraConfiguration.getHeaderUrl()}"
th:legacy-header="${@georchestraConfiguration.isUseLegacyHeader()}"
></geor-header>
<script th:src="${@georchestraConfiguration.getHeaderScript()}"></script>
</div>
</body>

Expand Down