You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2011/06/02 16:43:31 UTC

svn commit: r1130584 - in /incubator/airavata/site: ./ trunk/ trunk/content/ trunk/content/airavata/ trunk/content/airavata/css/ trunk/content/airavata/images/ trunk/images/ trunk/lib/ trunk/templates/

Author: smarru
Date: Thu Jun  2 14:43:31 2011
New Revision: 1130584

URL: http://svn.apache.org/viewvc?rev=1130584&view=rev
Log:
adding the site template as requested on the https://issues.apache.org/jira/browse/INFRA-3625

Added:
    incubator/airavata/site/
    incubator/airavata/site/trunk/
    incubator/airavata/site/trunk/content/
    incubator/airavata/site/trunk/content/airavata/
    incubator/airavata/site/trunk/content/airavata/css/
    incubator/airavata/site/trunk/content/airavata/css/airavata.css   (with props)
    incubator/airavata/site/trunk/content/airavata/images/
    incubator/airavata/site/trunk/content/airavata/images/apache-incubator-logo.png   (with props)
    incubator/airavata/site/trunk/content/airavata/index.mdtext   (with props)
    incubator/airavata/site/trunk/content/airavata/license.mdtext
    incubator/airavata/site/trunk/content/airavata/mailing-lists.mdtext
    incubator/airavata/site/trunk/content/airavata/people.mdtext
    incubator/airavata/site/trunk/images/
    incubator/airavata/site/trunk/lib/
    incubator/airavata/site/trunk/lib/path.pm   (with props)
    incubator/airavata/site/trunk/lib/view.pm   (with props)
    incubator/airavata/site/trunk/templates/
    incubator/airavata/site/trunk/templates/sidenav.mdtext   (with props)
    incubator/airavata/site/trunk/templates/single_narrative.html   (with props)
    incubator/airavata/site/trunk/templates/skeleton.html   (with props)

Added: incubator/airavata/site/trunk/content/airavata/css/airavata.css
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/css/airavata.css?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/content/airavata/css/airavata.css (added)
+++ incubator/airavata/site/trunk/content/airavata/css/airavata.css Thu Jun  2 14:43:31 2011
@@ -0,0 +1,155 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+body {
+  color: white;
+  font-family: Arial,Helvetica,sans-serif;
+  font-size: 12pt;
+  margin: 0;
+}
+
+#banner {
+  padding: 0 0 10px 10px;
+}
+
+a {
+  color: #107EC0;
+}
+
+a:visited {
+ color: #107EC0;
+}
+
+a:hover {
+ color: #107EC0;
+ background-color: #e6ebed;
+}
+
+a img { border: none; }
+
+h1,h2,h3,h4,h5,h6 {
+  color: #193240;
+  text-transform:uppercase;
+}
+
+#content {
+  margin: 20px 150px 20px 250px;
+  padding: 0 8px 40px;
+  color: #333;
+}
+
+#content h1,h2,h3,h4,h5,h6 {
+  font-weight: normal;
+  margin: 10px 0 15px;
+  padding: 5px 0;
+}
+
+#content h1 {
+  font-size: 1.4em;
+  padding: 15px;
+}
+
+#content h2 {
+  font-size: 1.2em;
+  margin-top: 2em;
+  border-bottom: 1px solid #a3afb6;
+}
+
+#content h3,h4,h5,h6 {
+  border-bottom: none;
+  font-size: 1em;
+  margin-bottom: 0;
+}
+
+.codehilite {
+  background-color: #F00;
+  padding: 0.01em 1em;
+  border-radius: 10px;
+}
+
+#navigation {
+  border: 1px solid #e6ebed;
+  border-left: none;
+  -moz-border-radius: 0 10px 10px 0;
+  border-radius: 0 10px 10px 0;
+  font-size: 0.9em;
+  color: #003;
+  float: left;
+  padding: 15px 15px 5px 25px;
+  width: 180px;
+  background: none repeat scroll 0 0 #f5f8fa;
+  margin: 20px 0 20px 0;
+}
+
+#navigation img {
+  padding-bottom: 15px;
+  margin-left: auto;
+  margin-right: auto;
+  display: block;
+}
+
+#navigation h1 {
+  color: #000;
+  font-size: 1em;
+  padding: 0;
+  margin-top: 0.8em;
+  margin-bottom: 0;
+  border-bottom: 1px solid #a3afb6;
+}
+
+#navigation ul {
+  margin: 0 0;
+  padding: 0;
+  list-style: none;
+}
+
+#navigation li {
+  border-bottom: 1px solid #e6ebed; 
+  margin: 0.2em 0;
+  padding: 0;
+}
+
+#navigation li a {
+  margin: 0;
+  text-decoration:none;
+}
+
+#navigation li a:hover {
+  color: #193240;
+  background: none;
+}
+
+#footer {
+  margin: 20px 150px 20px 250px;
+  border-top: 1px solid #ccc;
+  color:#666;
+  font-size: 0.8em;
+  padding: 0 8px;
+  text-align: center;
+}
+
+#asf-logo {
+  width: 180px;
+  padding-top: 20px;
+}
+
+/* definition lists */
+dd {}
+dl {}
+dt {
+  display: inline;
+  float: left;
+}
\ No newline at end of file

Propchange: incubator/airavata/site/trunk/content/airavata/css/airavata.css
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/content/airavata/images/apache-incubator-logo.png
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/images/apache-incubator-logo.png?rev=1130584&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/airavata/site/trunk/content/airavata/images/apache-incubator-logo.png
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/airavata/site/trunk/content/airavata/images/apache-incubator-logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/airavata/site/trunk/content/airavata/index.mdtext
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/index.mdtext?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/content/airavata/index.mdtext (added)
+++ incubator/airavata/site/trunk/content/airavata/index.mdtext Thu Jun  2 14:43:31 2011
@@ -0,0 +1,12 @@
+Title: Apache Airavata (Incubating)
+
+Airavata is a software toolkit currently used to build science gateways but that has a much wider potential use. It provides features to compose, manage, execute, and monitor large scale applications and workflows on computational resources ranging from local clusters to national grids and computing clouds. Users can use Airavata back end services and build gadgets to deploy in open social containers such as Apache Rave and modify them to suit their needs. Airavata builds on general concepts of service oriented computing, distributed messaging, and workflow composition and orchestration.
+
+
+
+### Airavata Components 
+
+XBaya Workflow Suite - includes a GUI for workflow composition and monitoring. The composed workflow can be exported to various workflow languages like BPEL, SCUFL, Condor DAG, Jython and Java. The defacto workflow enacting engine used is Apache ODE.
+GFac - an application wrapper service that can be used to wrap command line-driven science applications and make them into robust, network- accessible services. This component is build on Axis2 web service stack.
+XRegistry - a registry service for storing deployment information about wrapped application services and constructed workflows.
+WS-Messenger - a publish-subscribe based message broker implemented on top of Apache Axis2 web services stack. It implements the WS-Eventing and WS-Notifications specifications and incorporates a message box component that facilities communications with clients behind firewalls and overcomes network glitches.
\ No newline at end of file

Propchange: incubator/airavata/site/trunk/content/airavata/index.mdtext
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/content/airavata/license.mdtext
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/license.mdtext?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/content/airavata/license.mdtext (added)
+++ incubator/airavata/site/trunk/content/airavata/license.mdtext Thu Jun  2 14:43:31 2011
@@ -0,0 +1,213 @@
+Title:
+Notice:    Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+           .
+             http://www.apache.org/licenses/LICENSE-2.0
+           .
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+Apache License<br></br>Version 2.0, January 2004<br></br>
+[http://www.apache.org/licenses/](http://www.apache.org/licenses/) 
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+**<a name="definitions">1. Definitions</a>**.
+
+"License" shall mean the terms and conditions for use, reproduction, and
+distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the
+copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other
+entities that control, are controlled by, or are under common control with
+that entity. For the purposes of this definition, "control" means (i) the
+power, direct or indirect, to cause the direction or management of such
+entity, whether by contract or otherwise, or (ii) ownership of fifty
+percent (50%) or more of the outstanding shares, or (iii) beneficial
+ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising
+permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation
+or translation of a Source form, including but not limited to compiled
+object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form,
+made available under the License, as indicated by a copyright notice that
+is included in or attached to the work (an example is provided in the
+Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form,
+that is based on (or derived from) the Work and for which the editorial
+revisions, annotations, elaborations, or other modifications represent, as
+a whole, an original work of authorship. For the purposes of this License,
+Derivative Works shall not include works that remain separable from, or
+merely link (or bind by name) to the interfaces of, the Work and Derivative
+Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original
+version of the Work and any modifications or additions to that Work or
+Derivative Works thereof, that is intentionally submitted to Licensor for
+inclusion in the Work by the copyright owner or by an individual or Legal
+Entity authorized to submit on behalf of the copyright owner. For the
+purposes of this definition, "submitted" means any form of electronic,
+verbal, or written communication sent to the Licensor or its
+representatives, including but not limited to communication on electronic
+mailing lists, source code control systems, and issue tracking systems that
+are managed by, or on behalf of, the Licensor for the purpose of discussing
+and improving the Work, but excluding communication that is conspicuously
+marked or otherwise designated in writing by the copyright owner as "Not a
+Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on
+behalf of whom a Contribution has been received by Licensor and
+subsequently incorporated within the Work.
+
+**<a name="copyright">2. Grant of Copyright License</a>**. Subject to the
+terms and conditions of this License, each Contributor hereby grants to You
+a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+copyright license to reproduce, prepare Derivative Works of, publicly
+display, publicly perform, sublicense, and distribute the Work and such
+Derivative Works in Source or Object form.
+
+**<a name="patent">3. Grant of Patent License</a>**. Subject to the terms
+and conditions of this License, each Contributor hereby grants to You a
+perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+(except as stated in this section) patent license to make, have made, use,
+offer to sell, sell, import, and otherwise transfer the Work, where such
+license applies only to those patent claims licensable by such Contributor
+that are necessarily infringed by their Contribution(s) alone or by
+combination of their Contribution(s) with the Work to which such
+Contribution(s) was submitted. If You institute patent litigation against
+any entity (including a cross-claim or counterclaim in a lawsuit) alleging
+that the Work or a Contribution incorporated within the Work constitutes
+direct or contributory patent infringement, then any patent licenses
+granted to You under this License for that Work shall terminate as of the
+date such litigation is filed.
+
+**<a name="redistribution">4. Redistribution</a>**. You may reproduce and
+distribute copies of the Work or Derivative Works thereof in any medium,
+with or without modifications, and in Source or Object form, provided that
+You meet the following conditions:
+
+1. You must give any other recipients of the Work or Derivative Works a
+copy of this License; and
+
+1. You must cause any modified files to carry prominent notices stating
+that You changed the files; and
+
+1. You must retain, in the Source form of any Derivative Works that You
+distribute, all copyright, patent, trademark, and attribution notices from
+the Source form of the Work, excluding those notices that do not pertain to
+any part of the Derivative Works; and
+
+1. If the Work includes a "NOTICE" text file as part of its distribution,
+then any Derivative Works that You distribute must include a readable copy
+of the attribution notices contained within such NOTICE file, excluding
+those notices that do not pertain to any part of the Derivative Works, in
+at least one of the following places: within a NOTICE text file distributed
+as part of the Derivative Works; within the Source form or documentation,
+if provided along with the Derivative Works; or, within a display generated
+by the Derivative Works, if and wherever such third-party notices normally
+appear. The contents of the NOTICE file are for informational purposes only
+and do not modify the License. You may add Your own attribution notices
+within Derivative Works that You distribute, alongside or as an addendum to
+the NOTICE text from the Work, provided that such additional attribution
+notices cannot be construed as modifying the License.
+You may add Your own copyright statement to Your modifications and may
+provide additional or different license terms and conditions for use,
+reproduction, or distribution of Your modifications, or for any such
+Derivative Works as a whole, provided Your use, reproduction, and
+distribution of the Work otherwise complies with the conditions stated in
+this License.
+
+**<a name="contributions">5. Submission of Contributions</a>**. Unless You
+explicitly state otherwise, any Contribution intentionally submitted for
+inclusion in the Work by You to the Licensor shall be under the terms and
+conditions of this License, without any additional terms or conditions.
+Notwithstanding the above, nothing herein shall supersede or modify the
+terms of any separate license agreement you may have executed with Licensor
+regarding such Contributions.
+
+**<a name="trademarks">6. Trademarks</a>**. This License does not grant
+permission to use the trade names, trademarks, service marks, or product
+names of the Licensor, except as required for reasonable and customary use
+in describing the origin of the Work and reproducing the content of the
+NOTICE file.
+
+**<a name="no-warranty">7. Disclaimer of Warranty</a>**. Unless required by
+applicable law or agreed to in writing, Licensor provides the Work (and
+each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT
+WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including,
+without limitation, any warranties or conditions of TITLE,
+NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You
+are solely responsible for determining the appropriateness of using or
+redistributing the Work and assume any risks associated with Your exercise
+of permissions under this License.
+
+**<a name="no-liability">8. Limitation of Liability</a>**. In no event and
+under no legal theory, whether in tort (including negligence), contract, or
+otherwise, unless required by applicable law (such as deliberate and
+grossly negligent acts) or agreed to in writing, shall any Contributor be
+liable to You for damages, including any direct, indirect, special,
+incidental, or consequential damages of any character arising as a result
+of this License or out of the use or inability to use the Work (including
+but not limited to damages for loss of goodwill, work stoppage, computer
+failure or malfunction, or any and all other commercial damages or losses),
+even if such Contributor has been advised of the possibility of such
+damages.
+
+**<a name="additional">9. Accepting Warranty or Additional Liability</a>**.
+While redistributing the Work or Derivative Works thereof, You may choose
+to offer, and charge a fee for, acceptance of support, warranty, indemnity,
+or other liability obligations and/or rights consistent with this License.
+However, in accepting such obligations, You may act only on Your own behalf
+and on Your sole responsibility, not on behalf of any other Contributor,
+and only if You agree to indemnify, defend, and hold each Contributor
+harmless for any liability incurred by, or claims asserted against, such
+Contributor by reason of your accepting any such warranty or additional
+liability.
+
+END OF TERMS AND CONDITIONS
+
+# APPENDIX: How to apply the Apache License to your work # {#apply}
+
+To apply the Apache License to your work, attach the following boilerplate
+notice, with the fields enclosed by brackets "[]" replaced with your own
+identifying information. (Don't include the brackets!) The text should be
+enclosed in the appropriate comment syntax for the file format. We also
+recommend that a file or class name and description of purpose be included
+on the same "printed page" as the copyright notice for easier
+identification within third-party archives.
+
+       :::text
+       Copyright [yyyy] [name of copyright owner]
+
+       Licensed under the Apache License, Version 2.0 (the "License");
+       you may not use this file except in compliance with the License.
+       You may obtain a copy of the License at
+
+           http://www.apache.org/licenses/LICENSE-2.0
+
+       Unless required by applicable law or agreed to in writing, software
+       distributed under the License is distributed on an "AS IS" BASIS,
+       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+       See the License for the specific language governing permissions and
+       limitations under the License.
+

Added: incubator/airavata/site/trunk/content/airavata/mailing-lists.mdtext
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/mailing-lists.mdtext?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/content/airavata/mailing-lists.mdtext (added)
+++ incubator/airavata/site/trunk/content/airavata/mailing-lists.mdtext Thu Jun  2 14:43:31 2011
@@ -0,0 +1,52 @@
+Title: Mailing Lists
+Notice:    Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+           .
+             http://www.apache.org/licenses/LICENSE-2.0
+           .
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+We welcome you to join our mailing lists and let us know about your thoughts or ideas about airavata.
+
+### Airavata Developer Mailing List
+
+This is where the community hangs out. This list is used to coordinate 
+activities and ensure we are all pulling in the same direction.
+
+  - Subscribe: [airavata-dev-subscribe@incubator.apache.org][1]
+  - Post (after subscription): [airavata-dev@incubator.apache.org][2]
+  - Unsubscribe: [airavata-dev-unsubscribe@incubator.apache.org][3]
+  - Archives
+    - [Markmail][4]
+    - [Apache][5]
+
+### Commits Mailing List
+
+This is where the community receives automated notifications of 
+any changes to the airavata code and documentation.
+
+  - Subscribe: [airavata-commits-subscribe@incubator.apache.org][6]
+  - Unsubscribe: [airavata-commmits-unsubscribe@incubator.apache.org][7]
+  - Archives
+    - [Markmail][8]
+    - [Apache][9]
+
+  [1]: mailto://airavata-dev-subscribe@incubator.apache.org
+  [2]: mailto://airavata-dev@incubator.apache.org
+  [3]: mailto:airavata-dev-unsubscribe@incubator.apache.org
+  [4]: http://markmail.org/search/+list:org.apache.incubator.airavata-dev
+  [5]: http://mail-archives.apache.org/mod_mbox/incubator-airavata-dev/
+  [6]: mailto:airavata-commits-subscribe@incubator.apache.org
+  [7]: mailto:airavata-commmits-unsubscribe@incubator.apache.org
+  [8]: http://markmail.org/search/+list:org.apache.incubator.airavata-commits
+  [9]: http://mail-archives.apache.org/mod_mbox/incubator-airavata-commits/

Added: incubator/airavata/site/trunk/content/airavata/people.mdtext
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/content/airavata/people.mdtext?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/content/airavata/people.mdtext (added)
+++ incubator/airavata/site/trunk/content/airavata/people.mdtext Thu Jun  2 14:43:31 2011
@@ -0,0 +1,25 @@
+Title:     Airavata Contributors 
+Notice:    Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+           .
+             http://www.apache.org/licenses/LICENSE-2.0
+           .
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+Apache Airavata (Incubating) is a community developed project. The list below 
+is a partial list of contributors to the project, for a complete list you'd have
+to look at all contributors to our issue tracker, mailing list and version control.
+  
+  - [Suresh Marru][1]
+
+  [1]: http://people.apache.org/~smarru
\ No newline at end of file

Added: incubator/airavata/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/lib/path.pm?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/lib/path.pm (added)
+++ incubator/airavata/site/trunk/lib/path.pm Thu Jun  2 14:43:31 2011
@@ -0,0 +1,40 @@
+package path;
+use ASF::Value;
+
+# taken from django's url.py
+
+our @patterns = (
+	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
+
+#	[qr!^/stanbol/sitemap\.html$!, sitemap => { headers => { title => "Stanbol Sitemap" }} ],
+
+) ;
+
+# for specifying interdependencies between files
+
+#our %dependencies = (
+#    "/stanbol/sitemap.html" => [ grep s!^content!!, glob "content/stanbol/*.mdtext" ],
+#);
+
+1;
+
+=head1 LICENSE
+
+           Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+
+             http://www.apache.org/licenses/LICENSE-2.0
+
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.
+
+

Propchange: incubator/airavata/site/trunk/lib/path.pm
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/lib/view.pm?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/lib/view.pm (added)
+++ incubator/airavata/site/trunk/lib/view.pm Thu Jun  2 14:43:31 2011
@@ -0,0 +1,201 @@
+package view;
+
+#
+# BUILD CONSTRAINT:  all views must return $content, $extension.
+# additional return values (as seen below) are optional.  However,
+# careful use of symlinks and dependency management in path.pm can
+# resolve most issues with this constraint.
+#
+
+use strict;
+use warnings;
+use Dotiac::DTL qw/Template/;
+use Dotiac::DTL::Addon::markup;
+use ASF::Util qw/read_text_file shuffle/;
+use File::Temp qw/tempfile/;
+use LWP::Simple;
+
+push @Dotiac::DTL::TEMPLATE_DIRS, "templates";
+
+# This is most widely used view.  It takes a
+# 'template' argument and a 'path' argument.
+# Assuming the path ends in foo.mdtext, any files
+# like foo.page/bar.mdtext will be parsed and
+# passed to the template in the "bar" (hash)
+# variable.
+
+sub single_narrative {
+    my %args = @_;
+    my $file = "content$args{path}";
+    my $template = $args{template};
+    $args{path} =~ s/\.mdtext$/\.html/;
+    $args{breadcrumbs} = breadcrumbs($args{path});
+
+    read_text_file $file, \%args;
+
+    my $page_path = $file;
+    $page_path =~ s/\.[^.]+$/.page/;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+    }
+
+#	$args{sidenav} = {};
+#	read_text_file "templates/sidenav.mdtext", $args{sidenav} ;
+
+#	select STDOUT ;
+#	$| = 1 ;
+#	for my $ke (keys %args) {
+#		print STDOUT "$ke \n";
+#	}
+
+    return Template($template)->render(\%args), html => \%args;
+}
+
+# Has the same behavior as the above for foo.page/bar.txt
+# files, parsing them into a bar variable for the template.
+# Otherwise presumes the template is the path.
+
+sub news_page {
+    my %args = @_;
+    my $template = "content$args{path}";
+    $args{breadcrumbs} = breadcrumbs($args{path});
+
+    my $page_path = $template;
+    $page_path =~ s/\.[^.]+$/.page/;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+    }
+
+    for ((fetch_doap_url_list())[0..2]) {
+        push @{$args{projects}}, parse_doap($_);
+    }
+
+    return Template($template)->render(\%args), html => \%args;
+}
+
+sub sitemap {
+    my %args = @_;
+    my $template = "content$args{path}";
+    $args{breadcrumbs} .= breadcrumbs($args{path});
+    my $dir = $template;
+    $dir =~ s!/[^/]+$!!;
+    opendir my $dh, $dir or die "Can't opendir $dir: $!\n";
+    my %data;
+    for (map "$dir/$_", grep $_ ne "." && $_ ne ".." && $_ ne ".svn", readdir $dh) {
+        if (-f and /\.mdtext$/) {
+            my $file = $_;
+            $file =~ s/^content//;
+            no warnings 'once';
+            for my $p (@path::patterns) {
+                my ($re, $method, $args) = @$p;
+                next unless $file =~ $re;
+                my $s = view->can($method) or die "Can't locate method: $method\n";
+                my ($content, $ext, $vars) = $s->(path => $file, %$args);
+                $file =~ s/\.mdtext$/.$ext/;
+                $data{$file} = $vars;
+                last;
+            }
+        }
+    }
+
+    my $content = "";
+
+    for (sort keys %data) {
+        $content .= "- [$data{$_}->{headers}->{title}]($_)\n";
+        for my $hdr (grep /^#/, split "\n", $data{$_}->{content}) {
+            $hdr =~ /^(#+)\s+([^#]+)?\s+\1\s+\{#([^}]+)\}$/ or next;
+            my $level = length $1;
+            $level *= 4;
+            $content .= " " x $level;
+            $content .= "- [$2]($_#$3)\n";
+        }
+    }
+    $args{content} = $content;
+    return Template($template)->render(\%args), html => \%args;
+}
+
+sub exports {
+    my %args = @_;
+    my $template = "content$args{path}";
+    $args{breadcrumbs} = breadcrumbs($args{path});
+
+    my $page_path = $template;
+    $page_path =~ s/\.[^.]+$/.page/;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+        $args{table} = `xsltproc $page_path/eccnmatrix.xsl $page_path/eccnmatrix.xml`;
+
+    }
+
+    return Template($template)->render(\%args), html => \%args;
+}
+
+sub parse_doap {
+    my $url = shift;
+    my $doap = get $url or die "Can't get $url: $!\n";
+    my ($fh, $filename) = tempfile("XXXXXX");
+    print $fh $doap;
+    close $fh;
+    my $result = eval `xsltproc lib/doap2perl.xsl $filename`;
+    unlink $filename;
+    return $result;
+}
+
+sub fetch_doap_url_list {
+    my $xml = get "http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/files.xml"
+        or die "Can't get doap file list: $!\n";
+    my ($fh, $filename) = tempfile("XXXXXX");
+    print $fh $xml;
+    close $fh;
+    chomp(my @urls = grep /^http/, `xsltproc lib/list2urls.xsl $filename`);
+    unlink $filename;
+    shuffle \@urls;
+    return @urls;
+}
+
+1;
+
+sub breadcrumbs {
+    my @path = split m!/!, shift;
+    pop @path;
+    my @rv;
+    my $relpath = "";
+    for (@path) {
+        $relpath .= "$_/";
+        $_ ||= "Home";
+        push @rv, qq(<a href="$relpath">\u$_</a>);
+    }
+    return join "&nbsp;&raquo&nbsp;", @rv;
+}
+
+
+=head1 LICENSE
+
+           Licensed to the Apache Software Foundation (ASF) under one
+           or more contributor license agreements.  See the NOTICE file
+           distributed with this work for additional information
+           regarding copyright ownership.  The ASF licenses this file
+           to you under the Apache License, Version 2.0 (the
+           "License"); you may not use this file except in compliance
+           with the License.  You may obtain a copy of the License at
+
+             http://www.apache.org/licenses/LICENSE-2.0
+
+           Unless required by applicable law or agreed to in writing,
+           software distributed under the License is distributed on an
+           "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+           KIND, either express or implied.  See the License for the
+           specific language governing permissions and limitations
+           under the License.

Propchange: incubator/airavata/site/trunk/lib/view.pm
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/templates/sidenav.mdtext
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/templates/sidenav.mdtext?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/templates/sidenav.mdtext (added)
+++ incubator/airavata/site/trunk/templates/sidenav.mdtext Thu Jun  2 14:43:31 2011
@@ -0,0 +1,25 @@
+# General
+
+  - [About](index.html)
+  - [Incubator page](http://incubator.apache.org/projects/rave.html)
+  - [License](license.html)
+
+# Community
+
+  - [Get Involved](get-involved.html)
+  - [Mailing Lists](mailing-lists.html)
+  - [People](people.html)
+
+# Development
+  - [Source Code](source.html)
+  - [Issue Tracker](https://issues.apache.org/jira/browse/rave)
+  - [Continuous Integration](https://builds.apache.org/hudson/view/M-R/view/Rave/)
+  - [Sonar Dashboard](https://analysis.apache.org/dashboard/index/58996)
+
+# ASF
+
+  - [Apache Software Foundation](http://www.apache.org)
+  - [Thanks](http://www.apache.org/foundation/thanks.html)
+  - [Become a Sponsor](http://www.apache.org/foundation/sponsorship.html)
+  - [Security](http://www.apache.org/security/)
+

Propchange: incubator/airavata/site/trunk/templates/sidenav.mdtext
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/templates/single_narrative.html
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/templates/single_narrative.html?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/templates/single_narrative.html (added)
+++ incubator/airavata/site/trunk/templates/single_narrative.html Thu Jun  2 14:43:31 2011
@@ -0,0 +1 @@
+{% extends "skeleton.html" %}

Propchange: incubator/airavata/site/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/airavata/site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/incubator/airavata/site/trunk/templates/skeleton.html?rev=1130584&view=auto
==============================================================================
--- incubator/airavata/site/trunk/templates/skeleton.html (added)
+++ incubator/airavata/site/trunk/templates/skeleton.html Thu Jun  2 14:43:31 2011
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link href="/airavata/css/airavata.css" rel="stylesheet" type="text/css">
+  <title>{% block title %}{{ headers.title }}{% endblock %}</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache airavata (Incubating)" src="/airavata/images/airavata-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  {% filter markdown %}{% include "sidenav.mdtext" %}{% endfilter %}
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/airavata/images/apache-incubator-logo.png"/>
+    </a>
+  </div>
+
+  <div id="content">
+    <h1 class="title">{% block title %}{{ headers.title }}{% endblock %}</h1>
+    {% block content %}{{ content|markdown }}{% endblock %}
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Propchange: incubator/airavata/site/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:executable = *