Ticket #3739: sage-3739.patch

File sage-3739.patch, 856 bytes (added by TimothyClemans, 11 years ago)
  • sage/server/notebook/notebook.py

    # HG changeset patch
    # User Timothy Clemans <timothy.clemans@gmail.com>
    # Date 1217351949 25200
    # Node ID 3a64b72090195f3950e55e284b1e436a14b1dace
    # Parent  717c10d9cd4a6f693add3b39365e1238b768b961
    #3739
    
    diff -r 717c10d9cd4a -r 3a64b7209019 sage/server/notebook/notebook.py
    a b class Notebook(SageObject): 
    13331333            v.append(k)
    13341334
    13351335        s += ''.join(v)
     1336        if not v:
     1337            s += """<tr><td colspan="5" style="padding:20px;text-align:center">Welcome to Sage! You can
     1338<a href="/new_worksheet/">create a new worksheet</a>, view some <a href="/pub/">published worksheets</a>, or read
     1339some <a href="/help">documentation</a>.</td></tr>"""
    13361340        s += '</table>'
    13371341
    13381342        return s