Skip to content

Commit

Permalink
add humandateformatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian authored Oct 11, 2016
1 parent 6375fde commit 3e8b5d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/backend/post/partials/datatable.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
return "<a href='{{ url('admin/post') }}/" + row.id + "/edit'><button type='button' class='btn btn-icon command-edit waves-effect waves-circle'><span class='zmdi zmdi-edit'></span></button></a> " +
" <a href='{{ url('blog') }}/" + row.slug + "' target='_blank'><button type='button' class='btn btn-icon command-delete waves-effect waves-circle'><span class='zmdi zmdi-search'></span></button></a>";
},
"humandate": function(row, column) {
return moment(row.created).format("MMMM, Do YYYY");
}
}
});
});
</script>
</script>

0 comments on commit 3e8b5d6

Please sign in to comment.