From 08b4fbf7ca10a057253a39562247f1c1ce69af89 Mon Sep 17 00:00:00 2001 From: yunfangjuan Date: Fri, 6 Oct 2017 14:29:06 -0700 Subject: [PATCH 1/9] put pipeline runs back --- app/controllers/samples_controller.rb | 5 ++- app/views/samples/_samples.html.erb | 2 +- app/views/samples/pipeline_runs.html.erb | 55 ++++++++++++++++++++++++ config/routes.rb | 1 + 4 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 app/views/samples/pipeline_runs.html.erb diff --git a/app/controllers/samples_controller.rb b/app/controllers/samples_controller.rb index 50b9396145..a22036d1d9 100644 --- a/app/controllers/samples_controller.rb +++ b/app/controllers/samples_controller.rb @@ -1,6 +1,6 @@ class SamplesController < ApplicationController before_action :login_required, only: [:new, :update, :destroy] - before_action :set_sample, only: [:show, :edit, :update, :destroy, :reupload_source, :kickoff_pipeline] + before_action :set_sample, only: [:show, :edit, :update, :destroy, :reupload_source, :kickoff_pipeline, :pipeline_runs] acts_as_token_authentication_handler_for User, only: [:create], fallback: :devise protect_from_forgery unless: -> { request.format.json? } @@ -92,6 +92,9 @@ def kickoff_pipeline end end + def pipeline_runs + end + private # Use callbacks to share common setup or constraints between actions. diff --git a/app/views/samples/_samples.html.erb b/app/views/samples/_samples.html.erb index a00d759a8e..057b8c094e 100644 --- a/app/views/samples/_samples.html.erb +++ b/app/views/samples/_samples.html.erb @@ -40,7 +40,7 @@ <% end %> <%= sample.created_at %> - <%= link_to 'Show', sample %> + <%= link_to 'Runs', pipeline_runs_sample_path(sample) %> <%= link_to 'Edit', edit_sample_path(sample) %>