From 3ebe97301d31e22ddd91042c383a2ad9dfcdd3a2 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 6 Dec 2009 16:53:09 -0600 Subject: initial s390x setup --- www/Makefile | 23 ++ www/httpd.conf | 14 + www/static/Makefile | 24 ++ www/static/errors/Makefile | 18 ++ www/static/errors/unauthorized.html | 36 +++ www/static/images/Makefile | 18 ++ www/static/images/Powered-by-koji_button.png | Bin 0 -> 2809 bytes www/static/images/fedora-s390.png | Bin 0 -> 10212 bytes www/static/koji.css | 443 +++++++++++++++++++++++++++ 9 files changed, 576 insertions(+) create mode 100644 www/Makefile create mode 100644 www/httpd.conf create mode 100644 www/static/Makefile create mode 100644 www/static/errors/Makefile create mode 100644 www/static/errors/unauthorized.html create mode 100644 www/static/images/Makefile create mode 100644 www/static/images/Powered-by-koji_button.png create mode 100644 www/static/images/fedora-s390.png create mode 100644 www/static/koji.css (limited to 'www') diff --git a/www/Makefile b/www/Makefile new file mode 100644 index 0000000..f06e419 --- /dev/null +++ b/www/Makefile @@ -0,0 +1,23 @@ +SUBDIRS = static + +_default: + @echo "nothing to make. try make install" + +clean: + rm -f *.o *.so *.pyc *~ + for d in $(SUBDIRS); do make -s -C $$d clean; done + +install: + @if [ "$(DESTDIR)" = "" ]; then \ + echo " "; \ + echo "ERROR: A destdir is required"; \ + exit 1; \ + fi + + mkdir -p $(DESTDIR)/usr/share/koji-themes/fedora-s390/ + + mkdir -p $(DESTDIR)/etc/httpd/conf.d + install -p -m 644 httpd.conf $(DESTDIR)/etc/httpd/conf.d/00kojifedoras390.conf + + for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR) \ + -C $$d install; [ $$? = 0 ] || exit 1; done diff --git a/www/httpd.conf b/www/httpd.conf new file mode 100644 index 0000000..c1a91ed --- /dev/null +++ b/www/httpd.conf @@ -0,0 +1,14 @@ + +#Override a few static items with our theme +Alias /koji-static/images/koji.png "/usr/share/koji-themes/fedora-s390/images/fedora-s390.png" +Alias /koji-static/images/koji.ico "/usr/share/koji-themes/fedora-s390/images/fedora-koji.ico" +Alias /koji-static/koji.css "/usr/share/koji-themes/fedora-s390/koji.css" +Alias /koji-static/errors/unauthorized.html "/usr/share/koji-themes/fedora-s390/errors/unauthorized.html" + + + Options None + AllowOverride None + Order allow,deny + Allow from all + + diff --git a/www/static/Makefile b/www/static/Makefile new file mode 100644 index 0000000..cc71511 --- /dev/null +++ b/www/static/Makefile @@ -0,0 +1,24 @@ +SUBDIRS = images errors + +SERVERDIR = /usr/share/koji-themes/fedora-s390/ +FILES = $(wildcard *.css) + +_default: + @echo "nothing to make. try make install" + +clean: + rm -f *.o *.so *.pyc *~ + for d in $(SUBDIRS); do make -s -C $$d clean; done + +install: + @if [ "$(DESTDIR)" = "" ]; then \ + echo " "; \ + echo "ERROR: A destdir is required"; \ + exit 1; \ + fi + + mkdir -p $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) + + for d in $(SUBDIRS); do make DESTDIR=$(DESTDIR)/$(SERVERDIR) \ + -C $$d install; [ $$? = 0 ] || exit 1; done diff --git a/www/static/errors/Makefile b/www/static/errors/Makefile new file mode 100644 index 0000000..9da0127 --- /dev/null +++ b/www/static/errors/Makefile @@ -0,0 +1,18 @@ +SERVERDIR = /errors +FILES = $(wildcard *.html) + +_default: + @echo "nothing to make. try make install" + +clean: + rm -f *.o *.so *.pyc *~ + +install: + @if [ "$(DESTDIR)" = "" ]; then \ + echo " "; \ + echo "ERROR: A destdir is required"; \ + exit 1; \ + fi + + mkdir -p $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) diff --git a/www/static/errors/unauthorized.html b/www/static/errors/unauthorized.html new file mode 100644 index 0000000..3ae8307 --- /dev/null +++ b/www/static/errors/unauthorized.html @@ -0,0 +1,36 @@ + + + + Authentication Failed | Koji + + + + + + + + +
+
+ + + + +
+

SSL Authentication Failed

+ The Koji Web UI was unable to verify your SSL Cert. Please make sure that you have valid + SSL Cert, and that you have configured your browser correctly. +
+ + + +
+
+ + + diff --git a/www/static/images/Makefile b/www/static/images/Makefile new file mode 100644 index 0000000..fd7f2ca --- /dev/null +++ b/www/static/images/Makefile @@ -0,0 +1,18 @@ +SERVERDIR = /images +FILES = $(wildcard *.gif *.png *.ico) + +_default: + @echo "nothing to make. try make install" + +clean: + rm -f *.o *.so *.pyc *~ + +install: + @if [ "$(DESTDIR)" = "" ]; then \ + echo " "; \ + echo "ERROR: A destdir is required"; \ + exit 1; \ + fi + + mkdir -p $(DESTDIR)/$(SERVERDIR) + install -p -m 644 $(FILES) $(DESTDIR)/$(SERVERDIR) diff --git a/www/static/images/Powered-by-koji_button.png b/www/static/images/Powered-by-koji_button.png new file mode 100644 index 0000000..32b52e3 Binary files /dev/null and b/www/static/images/Powered-by-koji_button.png differ diff --git a/www/static/images/fedora-s390.png b/www/static/images/fedora-s390.png new file mode 100644 index 0000000..356ab03 Binary files /dev/null and b/www/static/images/fedora-s390.png differ diff --git a/www/static/koji.css b/www/static/koji.css new file mode 100644 index 0000000..d00c26c --- /dev/null +++ b/www/static/koji.css @@ -0,0 +1,443 @@ +/* + Koji styling + Copyright (c) 2007,2008, 2009 Red Hat, Inc. + + Authors: + Mike Bonnet + Mike McLean + Dennis Gilmore +*/ + +html { + min-width: 800px; +} + +body { + margin: 0px; + padding: 0px; + font-size: small; + font-family: "Lucida Grande", "Luxi Sans", "Bitstream Vera Sans", helvetica, verdana, arial, sans-serif; + color: #333; + background: #fff url(images/bkgrnd_greydots.png) repeat; +} + +a { + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +#wrap { + min-width: 750px; + margin: 0 25px 10px 25px; + padding: 0; + text-align: left; + background: #fff; +} + +#innerwrap { + margin: 0 15px; + padding: 8px 0; +} + +#header { + width: 100%; + height: 50px; + clear: left; +} + +#headerSearch { + float: right; + margin-right: 10px; + margin-top: 25px; +} + +#headerSearch input, +#headerSearch select { + font-size: smaller; +} + +#kojiLogo { + /* Used only for the koji logo icon */ + float: left; + height: 50px; +} + +div#content { + margin: 0 20px; + clear: both; +} + +p#footer { + padding-top: 40px; + margin-left: 15px; + line-height: 1.5em; + color: #999; + font-size: xx-small; + clear: both; +} + +p#footer a { + text-decoration: none; +} + +.hide { + display: none; +} + +.disabled { + color: #808080; +} + +#mainNav { + width: 100%; + background-color: #009; + font-weight: bold; + font-family: verdana, helvetica, arial, sans-serif; + height: 2.1em; +} + +#mainNav ul { + padding: 0px; + margin: 0px; + list-style-type: none; +} + +#mainNav ul li { + background-color: #006; + color: #fff; + display: block; + float: left; + padding: 0px; + margin: 0px; + border-style: solid; + border-width: 2px; + border-color: #009; +} + +#mainNav ul li a { + display: block; + color: #fff; + text-decoration: none; + padding: 0.4em 1.5em; + font-size: 0.77em; + height: 1.5em; +} + +#mainNav ul li:hover { + border-color: #ddd; +} + +body#summary #mainNav li#summaryTab a, +body#tasks #mainNav li#tasksTab a, +body#tags #mainNav li#tagsTab a, +body#builds #mainNav li#buildsTab a, +body#packages #mainNav li#packagesTab a, +body#users #mainNav li#usersTab a, +body#hosts #mainNav li#hostsTab a, +body#buildtargets #mainNav li#buildtargetsTab a, +body#reports #mainNav li#reportsTab a, +body#search #mainNav li#searchTab a { + background-color: #eee; + color: #000; +} + +h4 { + color: #fff; + background-color: #006; + padding: 0.3em; + margin: 0px; +} + +h4 a { + color: #fff; +} + +table { + border-spacing: 0px; +} + +th { + font-weight: bold; + vertical-align: text-top; +} + +th, td { + padding: 5px; +} + +td.building { + color: #cc0; +} + +td.complete { + color: #0c0; +} + +td.deleted, +td.failed, +td.canceled { + color: #c00; +} + +td.false { + color: #c00; +} + +td.true { + color: #0c0; +} + +img.sort { + /* used for up/down sort arrows*/ + vertical-align: baseline; + width: 10px; + height: 9px; +} + +td.paginate { + text-align: center; +} + +form.pageJump { + float: right; + margin-left: 20px; +} + +form.pageJump select { + font-size: smaller; +} + +div.dataHeader { + font-weight: bold; +} + +div.pageHeader { + margin-bottom: 10px; + font-weight: bold; + font-size: 1.5em; +} + +table.nested { + float: left; +} + +td.container { + padding: 4px 0px; + width: 100%; +} + +table.nested th, +table.nested td { + padding: 2px 4px; +} + +div.toggle { + padding: 6px; +} + +td.tree { + background-color: #fff; +} + +.tree span.root { + font-weight: bold; + background-color: #fff; +} + +.tree ul { + padding-left: 2em; + list-style: none; + margin-top: 0em; + margin-bottom: 0em; +} + +.tree span.treeBranch { + border-bottom: 1px solid #000; + border-left: 1px solid #000; + font-size: 1.2em; +} + +.tree li.sibling > span.treeBranch { + border-left-width: 0em; +} + +.tree li.sibling { + border-left: 1px solid #000; +} + +.tree a { + text-decoration: none; +} + +.tree span.treeLabel { + position: relative; + top: 0.6em; + margin-left: 1.2em; + padding-left: 0.2em; + background-color: #fff; + font-size: 0.83em; +} + +.tree > ul { + padding-bottom: 0.6em; +} + +.hidden { + display: none; +} + +.tree span.treeToggle { + font-weight: bold; +} + +.tree span.treeLink { + font-size: smaller; +} + +.adminLink { + color: #000; +} + +img.stateimg { + margin-top: -6px; + margin-bottom: -6px; +} + +.charlist { + text-align: center; +} + +img.graphrow { + background-color: #00f; + vertical-align: bottom; +} + +table.data-list { + width: 100%; +} + +table.data-list td { + vertical-align: text-top; +} + +tr.list-header { + background-color: #fff; +} + +tr.list-header th { + background-color: #ddd; +} + +tr.list-header th:first-child { + -moz-border-radius-topleft: 1em; + -webkit-border-top-left-radius: 1em; +} + +tr.list-header th:last-child { + -moz-border-radius-topright: 1em; + -webkit-border-top-right-radius: 1em; +} + +tr.row-odd { + background-color: #fff; +} + +tr.row-odd td { + border-bottom: 1px solid #eee; +} + +tr.row-even { + background-color: #eee; +} + +tr.row-even td { + border-bottom: 1px solid #fff; +} + +tr.row-odd td:first-child, +tr.row-even td:first-child { + border-left: 1px solid #eee; +} + +tr.row-odd td:last-child, +tr.row-even td:last-child { + border-right: 1px solid #eee; +} + +tr.row-even td.tree { + background-color: #eee; +} + +tr.row-even td.tree span.treeLabel { + background-color: #eee; +} + +.taskfree { + color: #30c; +} + +.taskopen { + color: #f60; +} + +.taskclosed { + color: #0c0; +} + +.taskcanceled { + color: #c90; +} + +.taskassigned { + color: #c0f; +} + +.taskfailed { + color: #c00; +} + +a.help { + text-decoration: underline; +} + +abbr { + cursor: help; +} + +.changelog { + font-family: monospace; + font-size: medium; + white-space: pre; +} + +#headerHelp { + float: right; + margin: 15px 10px 0 0; +} + +.filterlist { + font-size: smaller; +} + +span#loginInfo { + float: right; + font-weight: bold; + margin: 5px; +} + +.smaller { + font-size: smaller; +} + +.rpmheader { + font-family: monospace; + font-size: medium; + white-space: pre; +} + +.error { + color: red; +} -- cgit