##// END OF EJS Templates
Merge PR #7616 at f6260bd: notebook running indicator in dashboard...
Thomas Kluyver -
r20259:a41eba58 merge
parent child Browse files
Show More
@@ -8668,6 +8668,7 ul.breadcrumb span {
8668 8668 }
8669 8669 .list_header {
8670 8670 font-weight: bold;
8671 background-color: #eeeeee;
8671 8672 }
8672 8673 .list_container {
8673 8674 margin-top: 4px;
@@ -8690,6 +8691,9 ul.breadcrumb span {
8690 8691 .list_item a {
8691 8692 text-decoration: none;
8692 8693 }
8694 .list_item:hover {
8695 background-color: #fafafa;
8696 }
8693 8697 .action_col {
8694 8698 text-align: right;
8695 8699 }
@@ -8797,6 +8801,23 input.engine_num_input {
8797 8801 .notebook_icon:before.pull-right {
8798 8802 margin-left: .3em;
8799 8803 }
8804 .running_notebook_icon:before {
8805 display: inline-block;
8806 font: normal normal normal 14px/1 FontAwesome;
8807 font-size: inherit;
8808 text-rendering: auto;
8809 -webkit-font-smoothing: antialiased;
8810 -moz-osx-font-smoothing: grayscale;
8811 transform: translate(0, 0);
8812 content: "\f02d";
8813 color: #5cb85c;
8814 }
8815 .running_notebook_icon:before.pull-left {
8816 margin-right: .3em;
8817 }
8818 .running_notebook_icon:before.pull-right {
8819 margin-left: .3em;
8820 }
8800 8821 .file_icon:before {
8801 8822 display: inline-block;
8802 8823 font: normal normal normal 14px/1 FontAwesome;
@@ -422,11 +422,16 define([
422 422 NotebookList.prototype.add_link = function (model, item) {
423 423 var path = model.path,
424 424 name = model.name;
425 var running = (model.type == 'notebook' && this.sessions[path] !== undefined);
426
425 427 item.data('name', name);
426 428 item.data('path', path);
427 429 item.data('type', model.type);
428 430 item.find(".item_name").text(name);
429 431 var icon = NotebookList.icons[model.type];
432 if (running) {
433 icon = 'running_' + icon;
434 }
430 435 var uri_prefix = NotebookList.uri_prefixes[model.type];
431 436 item.find(".item_icon").addClass(icon).addClass('icon-fixed-width');
432 437 var link = item.find("a.item_link")
@@ -438,7 +443,6 define([
438 443 )
439 444 );
440 445
441 var running = (model.type == 'notebook' && this.sessions[path] !== undefined);
442 446 item.find(".item_buttons .running-indicator").css('visibility', running ? '' : 'hidden');
443 447
444 448 // directory nav doesn't open new tabs
@@ -12,6 +12,7
12 12 @btn_small_height: 24px;
13 13 @btn_mini_height: 22px;
14 14 @dark_dashboard_color: @breadcrumb-color;
15 @list_stripe_color: lighten(@page-backdrop-color,3%);
15 16
16 17 ul#tabs {
17 18 margin-bottom: @dashboard_tb_pad;
@@ -55,6 +56,7 ul.breadcrumb {
55 56
56 57 .list_header {
57 58 font-weight: bold;
59 background-color: @page-backdrop-color
58 60 }
59 61
60 62 .list_container {
@@ -80,6 +82,9 ul.breadcrumb {
80 82 background-color: @table-border-color;
81 83 };
82 84 a {text-decoration: none;}
85 &:hover {
86 background-color: darken(white,2%);
87 }
83 88 }
84 89
85 90 .action_col {
@@ -168,6 +173,12 input.engine_num_input {
168 173 .icon(@fa-var-book)
169 174 }
170 175
176 .running_notebook_icon:before {
177 .icon(@fa-var-book);
178 color: @brand-success
179 }
180
181
171 182 .file_icon:before {
172 183 .icon(@fa-var-file-o)
173 184 }
General Comments 0
You need to be logged in to leave comments. Login now