2015-02-06 15:49:06 +00:00
|
|
|
.row.offset10.boffset10
|
2014-06-27 12:43:31 +01:00
|
|
|
.col-xs-8
|
|
|
|
= text_field_tag 'q', params[:q], placeholder: t('layout.advisories.search'),
|
|
|
|
class: 'form-control text-muted', 'ng-model' => 'q', 'ng-change' => 'goToPage(1)'
|
|
|
|
|
|
|
|
%table.table.table-hover{ 'ng-cloak' => true }
|
2012-05-05 18:18:29 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2014-06-27 12:43:31 +01:00
|
|
|
%th= t 'activerecord.attributes.advisory.advisory_id'
|
|
|
|
%th= t 'layout.advisories.affected_versions'
|
|
|
|
%th= t 'activerecord.attributes.advisory.description'
|
2014-11-18 17:19:08 +00:00
|
|
|
%th= t 'layout.advisories.project_names'
|
2012-05-05 18:18:29 +01:00
|
|
|
%tbody
|
2014-06-27 12:43:31 +01:00
|
|
|
%tr{ 'ng-repeat' => 'item in advisories' }
|
|
|
|
%td
|
|
|
|
%a{ 'ng-href' => '{{item.link}}' } {{item.id}}
|
|
|
|
%td
|
|
|
|
%p{ 'ng-repeat' => 'pl in item.platforms' }
|
|
|
|
%a{ 'ng-href' => '{{pl.link}}' } {{pl.name}}
|
|
|
|
%td {{item.description}}
|
2014-11-18 17:19:08 +00:00
|
|
|
%td
|
|
|
|
%ul.list-unstyled
|
|
|
|
%li{ 'ng-repeat' => 'project in item.projects' }
|
|
|
|
%a{ 'ng-href' => '{{project.link}}' } {{ project.name }}
|
2012-06-20 18:51:08 +01:00
|
|
|
|
2014-06-27 12:43:31 +01:00
|
|
|
%tr{ 'ng-show' => 'advisories.length === 0' }
|
|
|
|
%td{ colspan: 3 } {{'no_results_for_search' | i18n:q}}
|