commit/galaxy-central: 3 new changesets
3 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7052d8f57837/ Changeset: 7052d8f57837 User: erasche2 Date: 2014-06-13 18:58:23 Summary: Added share button Affected #: 1 file diff -r 8a608db6cf83b653a433f43b501f4047f63d248b -r 7052d8f578378847ff6b5ebf64b694811dd432e8 templates/webapps/galaxy/tool_form.mako --- a/templates/webapps/galaxy/tool_form.mako +++ b/templates/webapps/galaxy/tool_form.mako @@ -334,6 +334,12 @@ </div></span> %endif + <span class="pull-right"> + <div class="icon-btn-group"> + <a href="${h.url_for( controller='root', action='index', tool_id=tool.id )}" + target="_blank" class="icon-btn" title="Share this tool" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-share"></span></a> + </div> + </span></div><div class="toolFormBody"><input type="hidden" name="refresh" value="refresh"> https://bitbucket.org/galaxy/galaxy-central/commits/cdc32b8ba500/ Changeset: cdc32b8ba500 User: jmchilton Date: 2014-07-31 03:34:02 Summary: Merge. Affected #: 1 file diff -r 19859e3e4b1c58217c31d2f3c472359c667c2a7f -r cdc32b8ba500d3c50b5270039f142a224f477cdd templates/webapps/galaxy/tool_form.mako --- a/templates/webapps/galaxy/tool_form.mako +++ b/templates/webapps/galaxy/tool_form.mako @@ -337,6 +337,12 @@ </div></span> %endif + <span class="pull-right"> + <div class="icon-btn-group"> + <a href="${h.url_for( controller='root', action='index', tool_id=tool.id )}" + target="_blank" class="icon-btn" title="Share this tool" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-share"></span></a> + </div> + </span></div><div class="toolFormBody"><input type="hidden" name="refresh" value="refresh"> https://bitbucket.org/galaxy/galaxy-central/commits/15cfed4fb818/ Changeset: 15cfed4fb818 User: jmchilton Date: 2014-07-31 04:01:02 Summary: Modify @erasche2's tool share button to pop-up instructions for copy&pasting URL... ... per @martenson's suggestion and with @erasche2 permission. Wonder if we want to double down on these buttons and convert tool shed link and citations handling to use this mechanism or perhaps add a drop down "gear" menu with these options ala the history panel. Affected #: 2 files diff -r cdc32b8ba500d3c50b5270039f142a224f477cdd -r 15cfed4fb8186252436e64ee671b80e1c31a918b static/scripts/galaxy.tools.js --- a/static/scripts/galaxy.tools.js +++ b/static/scripts/galaxy.tools.js @@ -5,6 +5,14 @@ $("input[name='" + name + "'][type='checkbox']").attr('checked', !!check); } + $(".tool-share-link").each( function() { + var href = $(this).attr("href"); + var href = $(this).attr("data-link"); + $(this).click(function() { + window.prompt("Copy to clipboard: Ctrl+C, Enter", href); + }); + }); + // Inserts the Select All / Unselect All buttons for checkboxes $("div.checkUncheckAllPlaceholder").each( function() { var check_name = $(this).attr("checkbox_name"); diff -r cdc32b8ba500d3c50b5270039f142a224f477cdd -r 15cfed4fb8186252436e64ee671b80e1c31a918b templates/webapps/galaxy/tool_form.mako --- a/templates/webapps/galaxy/tool_form.mako +++ b/templates/webapps/galaxy/tool_form.mako @@ -325,9 +325,9 @@ <div class="toolFormTitle">${tool.name} ${tool_version_select_field.get_html()} %endif + <span class="pull-right"> %if trans.app.config.biostar_url: - ## BioStar links - <span class="pull-right"> + ## BioStar links Help from Biostar <div class="icon-btn-group"><a href="${h.url_for( controller='biostar', action='biostar_tool_tag_redirect', tool_id=tool.id )}" @@ -335,14 +335,12 @@ <a href="${h.url_for( controller='biostar', action='biostar_tool_question_redirect', tool_id=tool.id )}" target="_blank" class="icon-btn" title="Ask a question about this tool" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-question-circle"></a></div> - </span> %endif - <span class="pull-right"> - <div class="icon-btn-group"> - <a href="${h.url_for( controller='root', action='index', tool_id=tool.id )}" - target="_blank" class="icon-btn" title="Share this tool" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-share"></span></a> - </div> - </span> + <div class="icon-btn-group"> + <a href="#" data-link="${h.url_for( controller='root', action='index', tool_id=tool.id )}" + class="icon-btn tool-share-link" title="Share this tool" data-toggle="tooltip" data-placement="bottom"><span class="fa fa-share"></span></a> + </div> + </span></div><div class="toolFormBody"><input type="hidden" name="refresh" value="refresh"> Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org