changeset 2321:aeda8cc88447

adds structure for local panel
author sharky93 <rishabhr123@gmail.com>
date Sat, 13 Jul 2013 02:31:53 +0530
parents 35c88bb5613a
children 9093480c2020
files MoinMoin/themes/basic/templates/layout.html MoinMoin/themes/basic/templates/show.html
diffstat 2 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/layout.html	Sat Jul 13 02:06:59 2013 +0530
+++ b/MoinMoin/themes/basic/templates/layout.html	Sat Jul 13 02:31:53 2013 +0530
@@ -139,6 +139,17 @@
                         {% endblock %}
                     </div>
                 </div><!--/span-->
+
+                <div class="span2">
+                    <div class="well sidebar-nav">
+                    {% if self.local_panel %}
+                        <ul class="nav nav-list">
+                            {{ self.local_panel() }}
+                        </ul>
+                    {% endif %}
+                    </div><!--/.well -->
+                </div><!--/span-->
+
             </div><!--/row-->
 
             </div><!--/span-->
--- a/MoinMoin/themes/basic/templates/show.html	Sat Jul 13 02:06:59 2013 +0530
+++ b/MoinMoin/themes/basic/templates/show.html	Sat Jul 13 02:31:53 2013 +0530
@@ -93,4 +93,28 @@
         {% endif %}
     {% endblock %}
 
+{% endblock %}
+
+{% block local_panel %}
+        
+        <!-- user, site, item actions -->
+
+        {% if rev %}
+        <li class="nav-header">Metadata</li>
+                <li>{{ _("Revision:") }} {{rev.revid | shorten_id}}</li>
+                <li>({{ rev.meta['mtime']|datetimeformat }})</li>
+                <li>{{ _("By:") }} {{ utils.editor_info(rev.meta) }}</li>
+                <li>{{ _("Size:") }} {{ rev.meta['size'] }}</li>
+                <li>{{ _("Type:") }} {{ rev.meta['contenttype'] }}</li>
+                {% if rev.meta.tags %}
+                <li>
+                {{ _("Tags:") }}
+                {% for tag in rev.meta.tags -%}
+                <a href="{{ url_for('frontend.tagged_items', tag=tag) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
+                {%- endfor -%}
+                </li>
+                {% endif %}
+        </li>
+        {% endif %}
+
 {% endblock %}
\ No newline at end of file