changeset 2424:8bf6121e6366

Fixes #38, adds bootstrap checkboxes for transclusions and comments
author sharky93 <rishabhr123@gmail.com>
date Mon, 26 Aug 2013 02:48:05 +0530
parents 8305ce6fba2b
children 4153b0117969
files MoinMoin/themes/__init__.py MoinMoin/themes/basic/templates/show.html
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Aug 25 15:35:09 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Mon Aug 26 02:48:05 2013 +0530
@@ -82,7 +82,7 @@
     def get_action_tabs(self, item_name, current_endpoint):
         navtabs_endpoints = ['frontend.show_item', 'frontend.history',
                             'frontend.show_item_meta', 'frontend.highlight_item', 'frontend.backrefs',
-                            'special.comments', 'special.transclusions',]
+                            ]
         if self.user.may.write(item_name):
             navtabs_endpoints.append('frontend.modify_item')
 
--- a/MoinMoin/themes/basic/templates/show.html	Sun Aug 25 15:35:09 2013 +0530
+++ b/MoinMoin/themes/basic/templates/show.html	Mon Aug 26 02:48:05 2013 +0530
@@ -23,6 +23,18 @@
 
 {% block content %}
 
+    <div class="row">
+        <div class="col-lg-12">
+            <div class="btn-group pull-right" data-toggle="buttons">
+              <label class="btn btn-primary moin-toggle-comments-button">
+                <input type="checkbox"> Comments
+              </label>
+              <label class="btn btn-primary moin-transclusions-button">
+                <input type="checkbox"> Transclusions
+              </label>
+            </div>
+        </div>
+    </div>
     {% block content_data %}
         {% if data_rendered %}
         <div id="moin-content-data">