Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-server
Compare revisions
2d4490528e4e49a6953b27d428a7b61dda468804 to 82510c6b303b693810a6c491d428ada1b6f66c26
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
caosdb/src/caosdb-server
Select target project
No results found
82510c6b303b693810a6c491d428ada1b6f66c26
Select Git revision
Swap
Target
caosdb/src/caosdb-server
Select target project
caosdb/src/caosdb-server
1 result
2d4490528e4e49a6953b27d428a7b61dda468804
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
add noscript hint
· 86a42484
Timm Fitschen
authored
3 years ago
86a42484
Merge branch 'f-noscript' into 'dev'
· 82510c6b
Henrik tom Wörden
authored
3 years ago
add noscript hint See merge request
!10
82510c6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/caosdb/server/resource/JdomRepresentation.java
+7
-0
7 additions, 0 deletions
...n/java/org/caosdb/server/resource/JdomRepresentation.java
with
7 additions
and
0 deletions
src/main/java/org/caosdb/server/resource/JdomRepresentation.java
View file @
82510c6b
...
@@ -28,6 +28,7 @@ import java.io.Writer;
...
@@ -28,6 +28,7 @@ import java.io.Writer;
import
org.caosdb.server.CaosDBServer
;
import
org.caosdb.server.CaosDBServer
;
import
org.caosdb.server.ServerProperties
;
import
org.caosdb.server.ServerProperties
;
import
org.jdom2.Document
;
import
org.jdom2.Document
;
import
org.jdom2.Element
;
import
org.jdom2.ProcessingInstruction
;
import
org.jdom2.ProcessingInstruction
;
import
org.jdom2.output.Format
;
import
org.jdom2.output.Format
;
import
org.jdom2.output.XMLOutputter
;
import
org.jdom2.output.XMLOutputter
;
...
@@ -68,6 +69,12 @@ public class JdomRepresentation extends WriterRepresentation {
...
@@ -68,6 +69,12 @@ public class JdomRepresentation extends WriterRepresentation {
super
(
MediaType
.
TEXT_XML
);
super
(
MediaType
.
TEXT_XML
);
this
.
indent
=
indent
;
this
.
indent
=
indent
;
this
.
document
=
document
;
this
.
document
=
document
;
Element
noscript
=
new
Element
(
"noscript"
);
Element
div
=
new
Element
(
"h1"
);
div
.
addContent
(
"Please enable JavaScript!"
);
noscript
.
addContent
(
div
);
document
.
getRootElement
().
addContent
(
0
,
noscript
);
if
(
xslPath
!=
null
&&
document
!=
null
)
{
if
(
xslPath
!=
null
&&
document
!=
null
)
{
addStyleSheet
(
document
,
xslPath
);
addStyleSheet
(
document
,
xslPath
);
}
}
...
...
This diff is collapsed.
Click to expand it.