Update info.ftl
This commit is contained in:
parent
4f930a9fba
commit
01899c034b
@ -24,26 +24,36 @@ export default function Info(props: PageProps<Extract<KcContext, { pageId: "info
|
|||||||
<div id="kc-info-message">
|
<div id="kc-info-message">
|
||||||
<p className="instruction">
|
<p className="instruction">
|
||||||
{message.summary}
|
{message.summary}
|
||||||
|
{requiredActions && <b>{requiredActions.map(requiredAction => msgStr(`requiredAction.${requiredAction}` as const)).join(",")}</b>}
|
||||||
{requiredActions !== undefined && (
|
|
||||||
<b>{requiredActions.map(requiredAction => msgStr(`requiredAction.${requiredAction}` as const)).join(",")}</b>
|
|
||||||
)}
|
|
||||||
</p>
|
</p>
|
||||||
{!skipLink && pageRedirectUri !== undefined ? (
|
{(() => {
|
||||||
<p>
|
if (skipLink) {
|
||||||
<a href={pageRedirectUri}>{msg("backToApplication")}</a>
|
return null;
|
||||||
</p>
|
}
|
||||||
) : actionUri !== undefined ? (
|
|
||||||
<p>
|
if (pageRedirectUri) {
|
||||||
<a href={actionUri}>{msg("proceedWithAction")}</a>
|
return (
|
||||||
</p>
|
<p>
|
||||||
) : (
|
<a href={pageRedirectUri}>{msg("backToApplication")}</a>
|
||||||
client.baseUrl !== undefined && (
|
</p>
|
||||||
<p>
|
);
|
||||||
<a href={client.baseUrl}>{msg("backToApplication")}</a>
|
}
|
||||||
</p>
|
if (actionUri) {
|
||||||
)
|
return (
|
||||||
)}
|
<p>
|
||||||
|
<a href={actionUri}>{msg("proceedWithAction")}</a>
|
||||||
|
</p>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (client.baseUrl) {
|
||||||
|
return (
|
||||||
|
<p>
|
||||||
|
<a href={client.baseUrl}>{msg("backToApplication")}</a>
|
||||||
|
</p>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})()}
|
||||||
</div>
|
</div>
|
||||||
</Template>
|
</Template>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user