From 26ff56d36c614a184f964e6afadd346c8897da74 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 1 Jul 2014 21:06:07 +0600 Subject: [PATCH] [#408] fix mass build link; change mass builds default sorting --- app/helpers/mass_build_helper.rb | 2 +- app/views/projects/build_lists/show.html.haml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/mass_build_helper.rb b/app/helpers/mass_build_helper.rb index a630d8f99..d3821129f 100644 --- a/app/helpers/mass_build_helper.rb +++ b/app/helpers/mass_build_helper.rb @@ -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'), diff --git a/app/views/projects/build_lists/show.html.haml b/app/views/projects/build_lists/show.html.haml index e7e0a4e0c..497fe710b 100644 --- a/app/views/projects/build_lists/show.html.haml +++ b/app/views/projects/build_lists/show.html.haml @@ -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'}