Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add sort by last modified date and name to file tree#943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Carreau merged 18 commits intojupyter:masterfromcaptainsafia:add-timestamp-to-file
Jan 16, 2016
Merged
Changes from1 commit
Commits
Show all changes
18 commits
Select commitHold shift + click to select a range
97cfe14
Added format_datetime utility function
captainsafiaJan 10, 2016
e235643
Added last_modified date to file tree
captainsafiaJan 10, 2016
23aeb32
Added datetime_sort_helper function
captainsafiaJan 10, 2016
0bf3767
Updated format string for last modified datetime
captainsafiaJan 10, 2016
11eebd2
Added last modified sort button
captainsafiaJan 10, 2016
6211e33
Added datetime sorting on front end
captainsafiaJan 10, 2016
a290251
Wiped smudge from screen
captainsafiaJan 12, 2016
b18d269
Added arrow indicator for sorting
captainsafiaJan 12, 2016
a02148f
Updated format_datetime to return human-friendly dates
captainsafiaJan 12, 2016
c08c7d5
Updated front-end sorting and display
captainsafiaJan 13, 2016
c3d6bfb
Updated styling on last modified element
captainsafiaJan 13, 2016
04a4565
Added button for sort by name
captainsafiaJan 14, 2016
c914d92
Added functionality for sort on name
captainsafiaJan 14, 2016
9494ca1
Update buttons in template
captainsafiaJan 15, 2016
e6db03c
Refactor out button click logic
captainsafiaJan 15, 2016
0fbe6ab
Clean up style update on button click code
captainsafiaJan 15, 2016
b1d96ca
Updated class switch command
captainsafiaJan 15, 2016
309b15b
Added button arrow reset on refresh
captainsafiaJan 15, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Added datetime_sort_helper function
  • Loading branch information
@captainsafia
captainsafia committedJan 10, 2016
commit23aeb32cc52bbca05ed33e1176d2b690132f5c0d
11 changes: 10 additions & 1 deletionnotebook/static/base/js/utils.js
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -829,8 +829,16 @@ define([
return moment(date).format("YYYY-MM-D HH:mm");
}

var datetime_sort_helper = function(a, b, order) {
if (moment(a).isBefore(moment(b))) {
return (order == 1) ? -1 : 1;
} else if (moment(a).isSame(moment(b))) {
return 0;
} else {
return (order == 1) ? 1 : -1;
}
}


var utils = {
load_extension: load_extension,
load_extensions: load_extensions,
Expand DownExpand Up@@ -871,6 +879,7 @@ define([
typeset: typeset,
time: time,
format_datetime: format_datetime,
datetime_sort_helper: datetime_sort_helper,
_ansispan:_ansispan
};

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp