This commit is contained in:
BoHung Chiu 2021-10-14 15:13:11 +08:00
parent b600b9e1fc
commit 2e45e1824c
1 changed files with 3 additions and 1 deletions

View File

@ -38,9 +38,11 @@
<% if !answer_present %> <% if !answer_present %>
<%= link_to t("survey.taken_survey"), OrbitHelper.url_to_show(@survey.to_param), :class => 'btn btn-primary' %> <%= link_to t("survey.taken_survey"), OrbitHelper.url_to_show(@survey.to_param), :class => 'btn btn-primary' %>
<% else %> <% else %>
<%= link_to t("survey.view_answers"), link_to_answer_set, :class => "btn btn-primary" %>
<% if answer_repeat %> <% 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" %> <%= 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 %>
<% end %> <% end %>