[#408] fix mass build link; change mass builds default sorting

This commit is contained in:
Alexander Machehin 2014-07-01 21:06:07 +06:00
parent 94605f5ace
commit 26ff56d36c
2 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@ module MassBuildHelper
datatable(
COLUMNS,
{
sort_by: "[0, 'asc']",
sort_by: "[0, 'desc']",
search_label: '',
placeholder: t('layout.mass_builds.placeholder.description'),
processing: t('layout.processing'),

View File

@ -117,7 +117,9 @@
- if @build_list.mass_build_id.present?
.leftlist= t("activerecord.attributes.mass_build_id")
.rightlist= link_to @build_list.mass_build.name, platform_mass_builds_path(@build_list.save_to_platform)
- path = platform_mass_build_path(@build_list.save_to_platform, @build_list.mass_build_id)
.rightlist= link_to @build_list.mass_build.name, path
.both
%div{'ng-show' => 'build_list.advisory'}