From 2e45e1824c92303a8a13f42057f8554d5fd32f5a Mon Sep 17 00:00:00 2001 From: Bohung Date: Thu, 14 Oct 2021 15:13:11 +0800 Subject: [PATCH] Fix bug. --- app/views/surveys/show_data.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/surveys/show_data.html.erb b/app/views/surveys/show_data.html.erb index c84485c..72c57f0 100644 --- a/app/views/surveys/show_data.html.erb +++ b/app/views/surveys/show_data.html.erb @@ -38,9 +38,11 @@ <% if !answer_present %> <%= link_to t("survey.taken_survey"), OrbitHelper.url_to_show(@survey.to_param), :class => 'btn btn-primary' %> <% else %> - <%= link_to t("survey.view_answers"), link_to_answer_set, :class => "btn btn-primary" %> <% if answer_repeat %> + <%= link_to t("survey.taken_survey"), OrbitHelper.url_to_show(@survey.to_param), :class => 'btn btn-primary' %> <%= link_to t("survey.my_record"), link_to_my_record, :class => "btn btn-primary" %> + <% else %> + <%= link_to t("survey.view_answers"), link_to_answer_set, :class => "btn btn-primary" %> <% end %> <% end %>