[sagenb] 141/157: Re-enable new compute cells in live documentation

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:52:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit 0163193bd3cf5d45f7aaac13f36e57c700c63501
Author: kcrisman <kcrisman at gmail.com>
Date:   Thu Nov 6 14:13:01 2014 -0500

    Re-enable new compute cells in live documentation
    
    This brings back previous behavior (and removes the text cell icon since we don't want that) in the live doc.
    Note that the only way to get the new cell will be clicking the actual icon, but that is okay in the docbrowser context and can be documented.
---
 sagenb/data/sage/html/notebook/cell.html | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/sagenb/data/sage/html/notebook/cell.html b/sagenb/data/sage/html/notebook/cell.html
index 6105e64..65a1ee7 100644
--- a/sagenb/data/sage/html/notebook/cell.html
+++ b/sagenb/data/sage/html/notebook/cell.html
@@ -33,16 +33,18 @@ INPUT:
               <div class="ui-icon ui-icon-circle-plus wksht-icon_button" 
                 id="insert_new_compute_cell_before{{ cell.id() }}" 
                 title="{{ gettext('Click to insert new compute cell.') }}"></div>
-              <div class="ui-icon ui-icon-comment wksht-icon_button" 
-                id="insert_new_text_cell_before{{ cell.id() }}"
-                 title="{{ gettext('Click to insert new rich-text cell.') }}"></div>
+                {% if not cell.worksheet().docbrowser() %}
+                  <div class="ui-icon ui-icon-comment wksht-icon_button" 
+                  id="insert_new_text_cell_before{{ cell.id() }}"
+                  title="{{ gettext('Click to insert new rich-text cell.') }}"></div>
+                {% endif %}
               <div class="legacy_insert_new_cell" id="legacy_new_cell_before{{ cell.id() }}"></div>
             </div>
             <script type="text/javascript">
-                {% if not cell.worksheet().docbrowser() %}
                 $("#insert_new_compute_cell_before{{ cell.id() }}").bind("click",function (e) {
                     insert_new_cell_before({{ '%r'|format(cell.id()) }});
                 });
+                {% if not cell.worksheet().docbrowser() %}
                 $("#insert_new_text_cell_before{{ cell.id() }}").bind("click",function (e) {
                    insert_new_text_cell_before({{ '%r'|format(cell.id()) }});
                 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list