Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SADE
SADE
Commits
6f606654
Commit
6f606654
authored
Jul 05, 2017
by
Mathias Goebel
🎠
Browse files
rule between tg warnings, alert class form message
parent
60279b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/fontane/misc.xqm
View file @
6f606654
...
...
@@ -444,15 +444,16 @@ let $getStatus :=
else ()
let $doc := doc( $col || "/" || $res )
return
let $status := $doc/xhtml:div[@class]/tokenize(@class, '\s+')[last()]
if( $doc//ok ) then () else
<div class="alert alert-
danger
">
<div class="alert alert-
{$status}
">
<h4>TextGrid-Statusmeldung</h4>
<p>Es liegt eine aktuelle Meldung zum TextGrid Repository vor. Einige
Funktionen, z.Bsp die Darstellung der Faksimiles, sind vom TextGrid
Repository abhängig und daher evtl. davon betroffen. Hier folgt die
Meldung von TextGrid.</p>
<h5>Status: {$
doc/xhtml:div[@class]/tokenize(@class, '\s+')[last()]
}</h5>
{$doc/xhtml:div//xhtml:p[@lang="de"]}
<h5>Status: {$
status
}</h5>
{
for $i at $pos in
$doc/xhtml:div//xhtml:p[@lang="de"]
return (if($pos gt 1) then <hr/> else (),$i)
}
</div>
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment