Anonymous avatar Anonymous committed 0b96e45

forgot to add these files.

Comments (0)

Files changed (3)

Add a comment to this file

couchit/_design/site/changes/map.js

Empty file added.

     Rule('/<cname>/<pagename>/diff', endpoint='diff_page'),
     Rule('/<cname>', defaults={'pagename': 'home' }, endpoint='show_page'),
     Rule('/<cname>/<pagename>', endpoint='show_page'),
-    
 ])

templates/site/changes.html

+{% extends "base.html" %}
+{% block title %}Recent changes{% endblock %}
+{% block head %}
+    <link rel="alternate" type="application/atom+xml" href="{{ url_for('site_changes', cname=site.cname, feedtype='atom') }}" title="Atom Recent Changes Feed" />
+{% endblock %}
+{% block page %}
+<section id="phistory">
+    <h2>Recent changes</h2>
+    <table class="historyTable">
+        {% for page  in changes %}
+            <tr>
+                <td><a href="{{ url_for('show_page', cname=site.cname, pagename=page.title|replace(" ", "_")) }}">{{ page.title }}</a></td>
+                <td><time title="GMT" datetime="{{ page.updated|rfc3339 }}">{{ page.updated|formatdatetime }}</time></td>
+                <td class="changes">
+                    {% if page.changes %}
+                    <ol>
+                        {% for change in page.changes %}
+                            {% if change['type'] != 'unmod' %}
+                        <li>{{ change['type']|pretty_type }} "<span class="lineChange">{{ change['changed']['lines']|join('\n')|trim|striptags|truncate(40) }}"</li> 
+                            {% endif %}  
+                        {% endfor %}
+                    </ol>
+                    {% else %}
+                        {% if page.previous %}
+                    Edited.
+                        {% else %}
+                    <span class="created">Created page.</span>
+                        {% endif %}
+                    {% endif %}
+
+
+                </td>
+            </tr>
+        {% endfor %}
+        </table>
+</section>
+{% endblock %}
+
+{% block footer %}
+<script type="text/javascript" charset="utf-8">
+    Site.name = "{{ site.cname }}";
+    Site.url = "/" + "{{ site.cname }}"
+    new Create();
+</script>
+{% endblock %}
+
+
+{% block sidebar %}
+{% include "sidebar.html" %}
+{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.