Skip to content

Commit

Permalink
add moment
Browse files Browse the repository at this point in the history
  • Loading branch information
gblock0 committed Feb 1, 2017
1 parent 42bf2e7 commit 4a0316a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"express": "^4.13.4",
"less": "~2.1.2",
"lodash": "~2.4.1",
"moment": "^2.17.1",
"q": "~1.1.2",
"redis": "^2.5.3"
},
Expand Down
2 changes: 1 addition & 1 deletion public/templates/jobList.dust
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Matador
<td data-bind="text: type"></td>
<td data-bind="text: status"></td>
<td data-bind="visible: keys.length > 0 && keys[0].progress != undefined, text: keys[0].progress != undefined ? progress : ''"></td>
<td data-bind="visible: keys.length > 0 && keys[0].delayUntil != undefined, text: keys[0].delayUntil != undefined ? delayUntil : ''"></td>
<td data-bind="visible: keys.length > 0 && keys[0].delayUntil != undefined, text: keys[0].delayUntil != undefined ? moment(new Date(delayUntil)).diff(moment(), 'seconds') + ' seconds' : ''"></td>
<td>
<button class="btn btn-default" data-bind="click: redisHandler.fn.deleteById" title="Delete">
<i class="fa fa-trash-o"></i>
Expand Down
1 change: 1 addition & 0 deletions public/templates/layouts/master.dust
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="{basepath}/js/knockout.min.js"></script>
<script src="{basepath}/js/moment.min.js"></script>
<script src="{basepath}/js/jquery.blockUI.js"></script>
<script src="{basepath}/js/jquery.noty.packaged.min.js"></script>
<script src="{basepath}/js/bootstrap.min.js"></script>
Expand Down

0 comments on commit 4a0316a

Please sign in to comment.