diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js
index 8fc5462..a1e3c6c 100644
--- a/IPython/html/static/tree/js/notebooklist.js
+++ b/IPython/html/static/tree/js/notebooklist.js
@@ -167,7 +167,6 @@ var IPython = (function (IPython) {
if (param !== undefined && param.msg) {
message = param.msg;
}
- console.log(data);
var len = data.length;
this.clear_list();
if (len === 0) {
@@ -177,17 +176,29 @@ var IPython = (function (IPython) {
.text(message)
);
}
+ var path = this.notebookPath();
+ var offset = 0;
+ if (path !== '') {
+ var item = this.new_notebook_item(0);
+ this.add_dir(path, '..', item);
+ offset = 1;
+ }
for (var i=0; i").addClass("span12").append(
+ $('').addClass('item_icon')
+ ).append(
$("").addClass("item_link").append(
$("").addClass("item_name")
)
@@ -214,10 +227,28 @@ var IPython = (function (IPython) {
};
+ NotebookList.prototype.add_dir = function (path, name, item) {
+ item.data('name', name);
+ item.data('path', path);
+ item.find(".item_name").text(name);
+ item.find(".item_icon").addClass('icon-folder-open');
+ item.find("a.item_link")
+ .attr('href',
+ utils.url_join_encode(
+ this.baseProjectUrl(),
+ "tree",
+ path,
+ name
+ )
+ );
+ };
+
+
NotebookList.prototype.add_link = function (path, nbname, item) {
item.data('nbname', nbname);
item.data('path', path);
- item.find(".item_name").text(nbname);
+ item.find(".item_name").text(nbname + '.ipynb');
+ item.find(".item_icon").addClass('icon-book');
item.find("a.item_link")
.attr('href',
utils.url_join_encode(
@@ -232,6 +263,7 @@ var IPython = (function (IPython) {
NotebookList.prototype.add_name_input = function (nbname, item) {
item.data('nbname', nbname);
+ item.find(".item_icon").addClass('icon-book');
item.find(".item_name").empty().append(
$('')
.addClass("nbname_input")