-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dataup 187 move globus upload below drag and drop (#1855)
* initial commit, updated text in dropzone, updated button behavior, still needs work * removing globus tests from file upload widget * making select a link * changing class name so its slightly more clear, adding case where globus is not linked * update tests * fix indentation * minor tweaks * oops * Address sonarcloud error * Address codacy * Updates from pr review * Add other button styles * quick updates * fix tests Co-authored-by: leia-sefkin <leia.sefkin@gmail.com>
- Loading branch information
1 parent
0294cb5
commit ceb1c0b
Showing
7 changed files
with
90 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 13 additions & 12 deletions
25
kbase-extension/static/kbase/templates/data_staging/ftp_file_header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
<div class="row" style="margin-bottom: 5px"> | ||
<div class="pull-left"> | ||
{{#if userInfo.globusLinked}} | ||
<div class="globus_div"> | ||
Or upload to this staging area by using | ||
<a href="{{globusUrl}}" | ||
target="_blank" class="globus_link"> | ||
<i class="fa fa-cloud-upload"></i> Globus Online | ||
</a> | ||
</div> | ||
{{/if}} | ||
<div class="web_upload_div"> | ||
Or click <a id="web-upload" style="cursor:pointer">here</a> to use an App to upload from a public URL. | ||
<div class="upload-options"> | ||
Other ways to upload: | ||
{{#if userInfo.globusLinked}} | ||
<button class="globus_linked"> | ||
<a href="{{globusUrl}}" target="_blank" aria-label="opens new window to upload via globus">Upload with Globus</a> | ||
</button> | ||
{{else}} | ||
<button class="globus_not_linked"> | ||
<a href="https://docs.kbase.us/data/globus" rel="noopener noreferrer" target="_blank" aria-label="opens new window to kbase globus upload docs">Upload with Globus</a> | ||
</button> | ||
{{/if}} | ||
<button class="web_upload_div">Upload with URL</button> | ||
</div> | ||
</div> | ||
<div class="pull-right"> | ||
<button id="help" class="btn btn-xs btn-default"> | ||
<span><i class="fa fa-question-circle fa-lg"></i></span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters