diff --git a/app/controllers/me/crates.js b/app/controllers/me/crates.js index 50d33ee0845..7c3c8e2ac3c 100644 --- a/app/controllers/me/crates.js +++ b/app/controllers/me/crates.js @@ -15,6 +15,12 @@ export default Controller.extend(PaginationMixin, { totalItems: readOnly('model.meta.total'), currentSortBy: computed('sort', function() { - return (this.get('sort') === 'downloads') ? 'Downloads' : 'Alphabetical'; + if (this.get('sort') === 'downloads') { + return 'All-Time Downloads'; + } else if (this.get('sort') === 'recent-downloads') { + return 'Recent Downloads'; + } else { + return 'Alphabetical'; + } }), }); diff --git a/app/templates/me/crates.hbs b/app/templates/me/crates.hbs index 141c12afa69..494e56eef54 100644 --- a/app/templates/me/crates.hbs +++ b/app/templates/me/crates.hbs @@ -33,7 +33,12 @@
  • {{#link-to (query-params sort="downloads")}} - Downloads + All-Time Downloads + {{/link-to}} +
  • +
  • + {{#link-to (query-params sort="recent-downloads")}} + Recent Downloads {{/link-to}}
  • {{/rl-dropdown}}