tab/app/views/users/show.html.haml

21 lines
421 B
Text
Raw Normal View History

2015-09-08 19:39:13 +02:00
%h2= @user.name
2015-09-08 20:45:32 +02:00
%table#transactions.display{data: { source: user_path(@user) }}
2015-09-08 19:39:13 +02:00
%thead
%tr
%th Amount
%th Origin
%th Message
2015-09-08 20:45:32 +02:00
%th Peer
2015-09-08 19:39:13 +02:00
%th Time
%tbody
2015-09-08 20:45:32 +02:00
:javascript
$(document).ready(function() {
$('#transactions').DataTable({
'processing': true,
'serverSide': true,
'ajax': $('#transactions').data('source'),
'pagingType': 'full_numbers'
});
});