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 %>