Merge pull request #412 from abf/rosa-build:408-small_changes

#408 fix mass build link; change default sort
This commit is contained in:
avokhmin 2014-07-01 19:16:47 +04:00
commit ff61a8b82f
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'}