diff --git a/static/images/fugue/globe-bw.png b/static/images/fugue/globe-bw.png new file mode 100644 index 00000000000..9a72e1dcbde Binary files /dev/null and b/static/images/fugue/globe-bw.png differ diff --git a/static/images/fugue/globe.png b/static/images/fugue/globe.png new file mode 100755 index 00000000000..2cef329e0dc Binary files /dev/null and b/static/images/fugue/globe.png differ diff --git a/static/june_2007_style/blue/trackster.css b/static/june_2007_style/blue/trackster.css index 4970eae744a..4d756a8404b 100644 --- a/static/june_2007_style/blue/trackster.css +++ b/static/june_2007_style/blue/trackster.css @@ -76,6 +76,8 @@ input{font:10px verdana;} .toolbox:hover{background:transparent url(../images/fugue/toolbox.png) no-repeat;} .filters-icon{background:transparent url(../images/fugue/ui-slider-050-bw.png) no-repeat;} .filters-icon:hover{background:transparent url(../images/fugue/ui-slider-050.png) no-repeat;} +.globe{background:transparent url(../images/fugue/globe-bw.png) no-repeat;} +.globe:hover{background:transparent url(../images/fugue/globe.png) no-repeat;} .remove-icon,.overview-close{background:transparent url(../images/fugue/cross-small-bw.png) no-repeat;} .icon-button.remove-icon:hover,.overview-close:hover{background:transparent url(../images/fugue/cross-circle.png) no-repeat;} .icon-button.toggle{background:transparent url(../images/fugue/toggle-bw.png) no-repeat;margin-right:0px;} diff --git a/static/june_2007_style/trackster.css.tmpl b/static/june_2007_style/trackster.css.tmpl index 4822a7339bc..eb517032703 100644 --- a/static/june_2007_style/trackster.css.tmpl +++ b/static/june_2007_style/trackster.css.tmpl @@ -386,6 +386,12 @@ input { .filters-icon:hover { background: transparent url(../images/fugue/ui-slider-050.png) no-repeat; } +.globe { + background: transparent url(../images/fugue/globe-bw.png) no-repeat; +} +.globe:hover { + background: transparent url(../images/fugue/globe.png) no-repeat; +} .remove-icon, .overview-close { background: transparent url(../images/fugue/cross-small-bw.png) no-repeat; } diff --git a/templates/tracks/browser.mako b/templates/tracks/browser.mako index 0f06a1251f0..0d5e01eef6e 100644 --- a/templates/tracks/browser.mako +++ b/templates/tracks/browser.mako @@ -113,6 +113,14 @@ ${h.js( "galaxy.base", "galaxy.panels", "json2", "jquery", "jstorage", "jquery.e // HACK -- use style to determine if panel is hidden and hide/show accordingly. parent.force_right_panel(($("div#right").css("right") == "0px" ? "hide" : "show")); } }, + { + icon_class: 'globe', + title: 'Circster', + on_click: function() { + // Add viz id dynamically so that newly saved visualizations work as well. + window.location = "${h.url_for( controller='tracks', action='circster' )}?id=" + view.vis_id; + } + }, { icon_class: 'disk--arrow', title: 'Save', on_click: function() { // Show saving dialog box show_modal("Saving...", "progress");