-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Recent Downloads" in the projects dashboard (#1119)
* Changed the layout to make room for the right side panel for downloads * Starting to prototype the layout * Rubocop nitpicking * Applying styles from figma * Moved item details to their own partial. Fixed style in the sidebar. Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com> * Update to show actual expiration dates also removed size since we have no way of calculating it now. * Made download link clickable. Minor styling changes. Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com> * Remove the Activity tab now that the sidebar displays the downloads * Remove tests for Activity since we removed it * Added test for the Latest Downloads sidebar * Clean up --------- Co-authored-by: Carolyn Cole <cac9@princeton.edu> Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com>
- Loading branch information
1 parent
9bec5c9
commit c43e16b
Showing
13 changed files
with
267 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="download-item" > | ||
<div class="title"> | ||
<%= link_to(download.request_details["project_title"], project_file_list_download_path(job_id: download.job_id, target: "_blank")) %> | ||
</div> | ||
<div class="details"> | ||
<div class="expiration">Expires in <%= time_ago_in_words(download.completion_time + 7.days)%></div> | ||
<div class="size"> | ||
<!-- | ||
TODO: Need size later, see https://github.com/pulibrary/tigerdata-app/issues/1124 | ||
--> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.