Skip to content

Commit

Permalink
Merge pull request #694 from uw-it-aca/feature/google-shared-drives
Browse files Browse the repository at this point in the history
quota display
  • Loading branch information
mikeseibel authored Aug 22, 2024
2 parents 9d780fb + 439ca21 commit 331133b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions endorsement/static/endorsement/js/handlebars-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ $(window.document).ready(function() {
'not': function(a) { return (!a); },
'numberFormat': function(n) { return n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); },
'driveCapacity': function(n) {
return (n < 1) ? Math.round(n * 1000) + 'MB' :
(n < 10) ? n.toString().substring(0,3) + 'GB' :
(n < 1000) ? Math.round(n) + 'GB' :
(n < 10000) ? (n/1000).toString().substring(0,3) + 'TB' :
Math.round(n/1000) + 'TB';
return (n < 1) ? Math.round(n * 1000) + ' MB' :
(n < 10) ? n.toString().substring(0,3) + ' GB' :
(n < 1000) ? Math.round(n) + ' GB' :
(n < 10000) ? (n/1000).toString().substring(0,3) + ' TB' :
Math.round(n/1000) + ' TB';
}
});
});

0 comments on commit 331133b

Please sign in to comment.