Skip to content

Commit 357a30a

Browse files
Archana Singhdanielhb
authored andcommitted
Ginger S390x: Added ui directory and its files
1 parent 9e7409c commit 357a30a

File tree

22 files changed

+702
-0
lines changed

22 files changed

+702
-0
lines changed

ui/Makefile.am

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
SUBDIRS = config css images js pages
19+
20+
uidir = $(datadir)/wok/plugins/gingers390x/ui

ui/config/Makefile.am

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
xmldir = $(datadir)/wok/plugins/gingers390x/ui/config
19+
20+
dist_xml_DATA = \
21+
tab-ext.xml \
22+
$(NULL)

ui/config/tab-ext.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<tabs-ext>
3+
<tab>
4+
<access role="admin" mode="admin"/>
5+
<access role="user" mode="none"/>
6+
7+
<title>Host</title>
8+
<path>plugins/gingers390x/zio.html</path>
9+
</tab>
10+
</tabs-ext>

ui/css/Makefile.am

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
cssdir = $(datadir)/wok/plugins/gingers390x/ui/css

ui/images/Makefile.am

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
imagedir = $(datadir)/wok/plugins/gingers390x/ui/images

ui/js/Makefile.am

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
jsdir = $(datadir)/wok/plugins/gingers390x/ui/js

ui/pages/Makefile.am

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM, Corp. 2015
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
SUBDIRS = help
19+
20+
htmldir = $(datadir)/wok/plugins/gingers390x/ui/pages
21+
22+
dist_html_DATA = $(wildcard *.tmpl) $(NULL)

ui/pages/help/Makefile.am

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM Corp, 2015
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+
20+
SUBDIRS = zh_CN it_IT en_US zh_TW pt_BR ja_JP ru_RU ko_KR fr_FR de_DE es_ES
21+
22+
DITA_HTML_FILES = $(patsubst %.dita,%.html,$(wildcard */*.dita))
23+
HTML_FILES = $(if $(DITA_HTML_FILES), $(DITA_HTML_FILES), $(wildcard */*.html))
24+
DITA_XSL_FILE = dita-help.xsl
25+
26+
EXTRA_DIST = $(DITA_XSL_FILE)
27+
28+
helpdir = $(datadir)/wok/plugins/gingers390x/ui/pages/help
29+
30+
dist_help_DATA = gingers390x.css
31+
32+
all: $(HTML_FILES) $(wildcard */*.dita)
33+
34+
%.html: %.dita $(DITA_XSL_FILE)
35+
xsltproc -o $@ $(DITA_XSL_FILE) $<
36+
37+
CLEANFILES = $(HTML_FILES)

ui/pages/help/de_DE/Makefile.am

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Project Ginger S390x
3+
#
4+
# Copyright IBM Corp, 2015
5+
#
6+
# This library is free software; you can redistribute it and/or
7+
# modify it under the terms of the GNU Lesser General Public
8+
# License as published by the Free Software Foundation; either
9+
# version 2.1 of the License, or (at your option) any later version.
10+
#
11+
# This library is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14+
# Lesser General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU Lesser General Public
17+
# License along with this library; if not, write to the Free Software
18+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19+
20+
de_DE_helpdir = $(datadir)/wok/plugins/gingers390x/ui/pages/help/de_DE
21+
22+
dist_de_DE_help_DATA = $(wildcard *.html) $(NULL)
23+
24+
EXTRA_DIST = $(wildcard *.dita)
25+
26+
CLEANFILES = $(wildcard *.html)

ui/pages/help/dita-help.xsl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<xsl:stylesheet version="1.0"
3+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
xmlns="http://www.w3.org/1999/xhtml">
5+
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
6+
7+
<xsl:template match="/">
8+
<html>
9+
<head>
10+
<title><xsl:value-of select="/cshelp/title" /></title>
11+
<meta charset="UTF-8" />
12+
<link rel="shortcut icon" href="../../images/logo.ico" />
13+
<link rel="stylesheet" type="text/css" href="../gingers390x.css" />
14+
</head>
15+
<body>
16+
<xsl:apply-templates select="//cshelp" />
17+
</body>
18+
</html>
19+
</xsl:template>
20+
21+
<xsl:template match="cshelp">
22+
<h1><xsl:value-of select="title" /></h1>
23+
<p class="shortdesc"><xsl:value-of select="shortdesc" /></p>
24+
<p class="csbody"><xsl:copy-of select="csbody/node()" /></p>
25+
</xsl:template>
26+
</xsl:stylesheet>

0 commit comments

Comments
 (0)