#369: Fixed: displaying of dependent projects

This commit is contained in:
Vokhmin Alexey V 2014-11-06 22:55:12 +03:00
parent afb418513a
commit 4d892054a5
1 changed files with 8 additions and 6 deletions

View File

@ -246,6 +246,7 @@ div[class = 'row'
table.table.table-hover table.table.table-hover
thead thead
tr tr
th
th= t('activerecord.attributes.build_list/package.fullname') th= t('activerecord.attributes.build_list/package.fullname')
th= t('activerecord.attributes.build_list/package.name') th= t('activerecord.attributes.build_list/package.name')
th= t('activerecord.attributes.build_list/package.epoch') th= t('activerecord.attributes.build_list/package.epoch')
@ -253,19 +254,19 @@ div[class = 'row'
th= t('activerecord.attributes.build_list/package.release') th= t('activerecord.attributes.build_list/package.release')
tbody tbody
tr ng-repeat-start='package in build_list.packages' tr ng-repeat-start='package in build_list.packages'
td.package td
a.expand ng-show='package.dependent_projects' a.expand ng-show='package.dependent_projects'
span.icon-chevron-up[ span.fa.fa-chevron-up[
ng-show = 'package.show_dependent_projects' ng-show = 'package.show_dependent_projects'
ng-click = 'package.show_dependent_projects = false' ] ng-click = 'package.show_dependent_projects = false' ]
span.icon-chevron-down[ span.fa.fa-chevron-down[
ng-hide = 'package.show_dependent_projects' ng-hide = 'package.show_dependent_projects'
ng-click = 'package.show_dependent_projects = true' ] ng-click = 'package.show_dependent_projects = true' ]
td
div ng-if='!package.url' div ng-if='!package.url'
| {{package.fullname}} | {{package.fullname}}
a ng-if='package.url' ng-href="{{package.url}}" a ng-if='package.url' ng-href="{{package.url}}"
| {{package.fullname}} | {{package.fullname}}
td td
| {{package.name}} | {{package.name}}
td td
@ -279,6 +280,7 @@ div[class = 'row'
ng-repeat-end = '' ng-repeat-end = ''
ng-show = 'package.show_dependent_projects' ng-show = 'package.show_dependent_projects'
ng-repeat = 'project in package.dependent_projects' ] ng-repeat = 'project in package.dependent_projects' ]
td
td td
a ng-href="{{project.url}}" a ng-href="{{project.url}}"
| {{project.name}} | {{project.name}}
@ -290,6 +292,6 @@ div[class = 'row'
= t('layout.build_lists.create_build_list') = t('layout.build_lists.create_build_list')
- if @build_list.new_core? - if @build_list.new_core?
hr
.row .row
hr
= render 'shared/build_results', subject: @build_list = render 'shared/build_results', subject: @build_list