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