##// END OF EJS Templates
Add filename to header area
Thomas Kluyver -
Show More
@@ -9,6 +9,12 b''
9 9 #texteditor-container {
10 10 border-bottom: 1px solid #ccc;
11 11 }
12
13 #filename {
14 font-size: 16pt;
15 display: table;
16 padding: 0px 5px;
17 }
12 18 </style>
13 19
14 20 {{super()}}
@@ -21,6 +27,12 b' data-file-path="{{file_path}}"'
21 27
22 28 {% endblock %}
23 29
30 {% block header %}
31
32 <span id="filename">{{ basename }}</span>
33
34 {% endblock %}
35
24 36 {% block site %}
25 37
26 38 <div id="menubar-container" class="container">
@@ -16,9 +16,11 b' class EditorHandler(IPythonHandler):'
16 16 if not self.contents_manager.file_exists(path):
17 17 raise web.HTTPError(404, u'File does not exist: %s' % path)
18 18
19 basename = path.rsplit('/', 1)[-1]
19 20 self.write(self.render_template('texteditor.html',
20 21 file_path=url_escape(path),
21 page_title=path.rsplit('/', 1)[-1] + " (editing)",
22 basename=basename,
23 page_title=basename + " (editing)",
22 24 )
23 25 )
24 26
General Comments 0
You need to be logged in to leave comments. Login now