2012-03-30 13:30:39 +01:00
|
|
|
%h3= title t('layout.search.advanced')
|
2012-03-06 15:53:04 +00:00
|
|
|
= render 'form_advanced'
|
2012-11-21 12:09:01 +00:00
|
|
|
- if @type == 'all'
|
2012-03-06 15:53:04 +00:00
|
|
|
#all
|
2014-01-21 04:51:49 +00:00
|
|
|
= render 'table', type: 'projects'
|
2012-03-06 15:53:04 +00:00
|
|
|
.both
|
|
|
|
.left.width400.rmargin55
|
2014-01-21 04:51:49 +00:00
|
|
|
= render 'table', type: 'users'
|
|
|
|
= render 'table', type: 'groups'
|
2012-03-06 15:53:04 +00:00
|
|
|
.left.width400
|
2014-01-21 04:51:49 +00:00
|
|
|
= render 'table', type: 'platforms'
|
2012-03-06 15:53:04 +00:00
|
|
|
- else
|
2012-11-21 12:09:01 +00:00
|
|
|
- collection = instance_variable_get("@#{@type}")
|
2014-01-21 04:51:49 +00:00
|
|
|
.tmargin10{id: @type}= render collection: collection, partial: @type.to_s.underscore.singularize
|
2012-03-06 15:53:04 +00:00
|
|
|
%br
|
|
|
|
= will_paginate collection
|
|
|
|
.both
|