Skip to content

Commit

Permalink
[webui] HAMLify requests partial
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Mar 10, 2017
1 parent 0865609 commit 9b5c3c8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/api/app/views/shared/_requests.html.erb

This file was deleted.

24 changes: 24 additions & 0 deletions src/api/app/views/shared/_requests.html.haml
@@ -0,0 +1,24 @@
- if requests.blank?
%p No requests.
- else
%table#request_table.compact{:width => '100%'}
%thead
%tr
%th Created
%th Source
%th Requester
%th Type
%th State
%th Priority
%th
%tbody
- requests.each do |req|
= render partial: 'shared/single_request', locals: { req: req }
:javascript
$('#request_table').dataTable({
'order': [[0,'desc']],
'columns': [ null, null, null, null, null, null, null ],
'info': false,
'paging': 25,
pagingType: 'full_numbers',
});

0 comments on commit 9b5c3c8

Please sign in to comment.