You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/03/11 19:58:25 UTC

svn commit: r1576470 - in /ofbiz/cmssite: ./ branches/ trunk/ trunk/content/ trunk/lib/ trunk/templates/

Author: jacopoc
Date: Tue Mar 11 18:58:25 2014
New Revision: 1576470

URL: http://svn.apache.org/r1576470
Log:
Initial setup for the cms site; template exported from https://svn.apache.org/repos/infra/websites/cms/template

Added:
    ofbiz/cmssite/
    ofbiz/cmssite/branches/
    ofbiz/cmssite/trunk/
    ofbiz/cmssite/trunk/content/
    ofbiz/cmssite/trunk/content/index.mdtext
    ofbiz/cmssite/trunk/content/sitemap.html   (with props)
    ofbiz/cmssite/trunk/lib/
    ofbiz/cmssite/trunk/lib/path.pm
    ofbiz/cmssite/trunk/lib/view.pm
    ofbiz/cmssite/trunk/templates/
    ofbiz/cmssite/trunk/templates/single_narrative.html   (with props)
    ofbiz/cmssite/trunk/templates/skeleton.html   (with props)

Added: ofbiz/cmssite/trunk/content/index.mdtext
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/content/index.mdtext?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/content/index.mdtext (added)
+++ ofbiz/cmssite/trunk/content/index.mdtext Tue Mar 11 18:58:25 2014
@@ -0,0 +1,24 @@
+Title:     Home Page
+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.
+
+# Welcome
+
+Welcome to the Apache CMS.  Please see the following resources for further help:
+
+ - <http://www.apache.org/dev/cmsref.html>
+ - <http://wiki.apache.org/general/ApacheCms2010>

Added: ofbiz/cmssite/trunk/content/sitemap.html
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/content/sitemap.html?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/content/sitemap.html (added)
+++ ofbiz/cmssite/trunk/content/sitemap.html Tue Mar 11 18:58:25 2014
@@ -0,0 +1,2 @@
+{% include "single_narrative.html" %}
+

Propchange: ofbiz/cmssite/trunk/content/sitemap.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/cmssite/trunk/content/sitemap.html
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/cmssite/trunk/content/sitemap.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: ofbiz/cmssite/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/lib/path.pm?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/lib/path.pm (added)
+++ ofbiz/cmssite/trunk/lib/path.pm Tue Mar 11 18:58:25 2014
@@ -0,0 +1,39 @@
+package path;
+
+# taken from django's url.py
+
+our @patterns = (
+	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
+
+	[qr!/sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
+
+) ;
+
+# for specifying interdependencies between files
+
+our %dependencies = (
+    "/sitemap.html" => [ grep s!^content!!, glob "content/*.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.
+
+

Added: ofbiz/cmssite/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/lib/view.pm?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/lib/view.pm (added)
+++ ofbiz/cmssite/trunk/lib/view.pm Tue Mar 11 18:58:25 2014
@@ -0,0 +1,23 @@
+package view;
+use base 'ASF::View'; # see https://svn.apache.org/repos/infra/websites/cms/build/lib/ASF/View.pm
+
+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.

Added: ofbiz/cmssite/trunk/templates/single_narrative.html
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/templates/single_narrative.html?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/templates/single_narrative.html (added)
+++ ofbiz/cmssite/trunk/templates/single_narrative.html Tue Mar 11 18:58:25 2014
@@ -0,0 +1 @@
+{% extends "skeleton.html" %}

Propchange: ofbiz/cmssite/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/cmssite/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/cmssite/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: ofbiz/cmssite/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/ofbiz/cmssite/trunk/templates/skeleton.html?rev=1576470&view=auto
==============================================================================
--- ofbiz/cmssite/trunk/templates/skeleton.html (added)
+++ ofbiz/cmssite/trunk/templates/skeleton.html Tue Mar 11 18:58:25 2014
@@ -0,0 +1,54 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <title>{% block title %}{{ headers.title }}{% endblock %}</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
+
+    <link rel="stylesheet" type="text/css" media="screen" href="http://www.apache.org/css/style.css">
+    <link rel="stylesheet" type="text/css" media="screen" href="http://www.apache.org/css/code.css">
+
+    {% if headers.atom %}
+      <link rel="alternate" href="{{ headers.atom.url }}"
+            type="application/atom+xml" title="{{ headers.atom.title }}" />
+    {% endif %}
+
+    {% if headers.base %}<base href="{{ headers.base }}" />{% endif %}
+    {% if headers.notice %}<!-- {{ headers.notice }} -->{% endif %}
+  </head>
+
+  <body>
+    <div id="page" class="container_16">
+      <div id="header" class="grid_8">
+        <img src="http://www.apache.org/images/feather-small.gif" alt="The Apache Software Foundation">
+        <h1>The Apache Software Foundation</h1>
+        <h2>{% block tagline %}{{ headers.title }}{% endblock %}</h2>
+      </div>
+      <div id="nav" class="grid_8">
+        <ul>
+          <!-- <li><a href="/" title="Welcome!">Home</a></li> -->
+          <li><a href="http://www.apache.org/foundation/" title="The Foundation">Foundation</a></li>
+          <li><a href="http://projects.apache.org" title="The Projects">Projects</a></li>
+          <li><a href="http://people.apache.org" title="The People">People</a></li>
+          <li><a href="http://www.apache.org/foundation/getinvolved.html" title="Get Involved">Get Involved</a></li>
+          <li><a href="http://www.apache.org/dyn/closer.cgi" title="Download">Download</a></li>
+          <li><a href="http://www.apache.org/foundation/sponsorship.html" title="Support Apache">Support Apache</a></li>
+        </ul>
+        <p>{{ breadcrumbs|safe }}</p>
+        <form name="search" id="search" action="http://www.google.com/search" method="get">
+          <input value="*.apache.org" name="sitesearch" type="hidden"/>
+          <input type="text" name="q" id="query">
+          <input type="submit" id="submit" value="Search">
+        </form>
+      </div>
+      <div class="clear"></div>
+      {% block content %}<div id="content" class="grid_16"><div class="section-content">{{ content|markdown }}</div></div>{% endblock %}
+      <div class="clear"></div>
+    </div>
+
+    <div id="copyright" class="container_16">
+      <p>Copyright &#169; 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 logo are trademarks of The Apache Software Foundation.</p>
+    </div>
+  </body>
+</html>

Propchange: ofbiz/cmssite/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/cmssite/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/cmssite/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:mime-type = text/html