cas.spec | 2 +-
web/footer.html | 5 +++++
web/header.html | 18 ++++++++++++++++++
web/index.html | 6 ++++++
web/jobs.html | 22 ++++++++++++++++++++++
web/media/css/cas-web.css | 33 +++++++++++++++++++++++++++++++++
web/media/img/cas_logo.png |binary
7 files changed, 85 insertions(+), 1 deletion(-)
New commits:
commit 1478518f945f6dd926390f4eff393cfe89d88c7e
Author: adam stokes <ajs(a)redhat.com>
Date: Wed Apr 29 14:42:03 2009 -0400
- working on simple web interface
diff --git a/cas.spec b/cas.spec
index a373ca9..55aecd6 100644
--- a/cas.spec
+++ b/cas.spec
@@ -3,7 +3,7 @@
Name: cas
Summary: Tool to analyze and configure core file environment
Version: 0.14
-Release: 6%{?dist}
+Release: 7%{?dist}
Source0:
https://fedorahosted.org/releases/c/a/cas/%{name}-%{version}.tar.gz
License: GPLv3+
Group: Development/Libraries
diff --git a/web/footer.html b/web/footer.html
index 4b866ea..da211cc 100644
--- a/web/footer.html
+++ b/web/footer.html
@@ -1,3 +1,5 @@
-<p>
-footer
-</p>
+<div id="footer">
+cas_web_ui © 2007-2009 Adam Stokes
+</div>
+</body>
+</html>
diff --git a/web/header.html b/web/header.html
index aeaa2e6..6c65c4f 100644
--- a/web/header.html
+++ b/web/header.html
@@ -1,3 +1,18 @@
-<p>
-(( cas ))
-</p>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="Content-type" content="text/html;
charset=utf-8">
+ <link rel="stylesheet" href="/media/css/cas-web.css"
type="text/css" media="screen" />
+
+ <title><% $title %></title>
+</head>
+<body>
+<div id="header">
+ <p><img src="/media/img/cas_logo.png"></p>
+ :// <a href="/">go home</a>, <a
href="/jobs.html">jobs</a>
+</div>
+
+<%init>
+my $title="cas-web-ui";
+</%init>
+
diff --git a/web/index.html b/web/index.html
index f38d280..0922ad1 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1,15 +1,6 @@
-<html>
-<head>
-<title><% $page_title %></title>
-<body>
-<& header &>
-<% $body %>
-<& footer &>
-</body>
-</html>
+<& header.html &>
+<div id="content">
+<h3>Core submission<h3>
-<% # Begin Mason code %>
-<% init %>
-my $page_title = 'home';
-my $body = 'sup there holmez';
-</%init %>
+</div>
+<& footer.html &>
diff --git a/web/jobs.html b/web/jobs.html
new file mode 100644
index 0000000..7309e96
--- /dev/null
+++ b/web/jobs.html
@@ -0,0 +1,22 @@
+<& header.html &>
+<div id="content">
+<h3>Jobs</h3>
+<ul>
+% foreach my $item (@{$data}) {
+% my ($id, $identify, $timestamp, $email) = @{$item};
+<li><% $identify %> :: <% $timestamp %></li>
+% }
+</ul>
+</div>
+<& footer.html &>
+
+<%init>
+use DBI;
+use Data::Dumper;
+my $dbh =
DBI->connect("dbi:SQLite:dbname=/var/db/cas/cas.db","","");
+
+# query all jobs
+my $sth = $dbh->prepare("SELECT * FROM jobs");
+$sth->execute();
+my $data = $sth->fetchall_arrayref;
+</%init>
diff --git a/web/media/css/cas-web.css b/web/media/css/cas-web.css
new file mode 100644
index 0000000..7522692
--- /dev/null
+++ b/web/media/css/cas-web.css
@@ -0,0 +1,33 @@
+body {
+ font-family: sans-serif;
+ margin: 0;
+ padding: 5px;
+}
+
+h1 {
+ padding: 0;
+ margin: 0;
+}
+
+#header {
+ font-size: small;
+ padding: 5px;
+ width: 600px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+#content {
+ font-size: small;
+ width: 600px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+#footer {
+ font-size: small;
+ padding: 5px;
+ width: 600px;
+ margin-left: auto;
+ margin-right: auto;
+}
diff --git a/web/media/img/cas_logo.png b/web/media/img/cas_logo.png
new file mode 100644
index 0000000..39e2302
Binary files /dev/null and b/web/media/img/cas_logo.png differ
commit 1fd19096d27e1f52151bac69e61bd1656e6227a5
Author: adam stokes <ajs(a)redhat.com>
Date: Wed Apr 29 13:29:54 2009 -0400
adding web dir for a basic web ui
diff --git a/web/footer.html b/web/footer.html
new file mode 100644
index 0000000..4b866ea
--- /dev/null
+++ b/web/footer.html
@@ -0,0 +1,3 @@
+<p>
+footer
+</p>
diff --git a/web/header.html b/web/header.html
new file mode 100644
index 0000000..aeaa2e6
--- /dev/null
+++ b/web/header.html
@@ -0,0 +1,3 @@
+<p>
+(( cas ))
+</p>
diff --git a/web/index.html b/web/index.html
new file mode 100644
index 0000000..f38d280
--- /dev/null
+++ b/web/index.html
@@ -0,0 +1,15 @@
+<html>
+<head>
+<title><% $page_title %></title>
+<body>
+<& header &>
+<% $body %>
+<& footer &>
+</body>
+</html>
+
+<% # Begin Mason code %>
+<% init %>
+my $page_title = 'home';
+my $body = 'sup there holmez';
+</%init %>