diff --git a/app/views/user_feedbacks/_secondary_links.html.erb b/app/views/user_feedbacks/_secondary_links.html.erb index 2ade74dbb..af8cd2af8 100644 --- a/app/views/user_feedbacks/_secondary_links.html.erb +++ b/app/views/user_feedbacks/_secondary_links.html.erb @@ -1,6 +1,10 @@ <% content_for(:secondary_links) do %> -
  • <%= link_to "New", new_user_feedback_path %>
  • + <% if @user_feedback %> +
  • <%= link_to "New", new_user_feedback_path(:user_feedback => {:user_id => @user_feedback.user_id}) %>
  • + <% else %> +
  • <%= link_to "New", new_user_feedback_path %>
  • + <% end %>
  • <%= link_to "Listing", user_feedbacks_path %>
  • <% end %> diff --git a/app/views/user_feedbacks/new.html.erb b/app/views/user_feedbacks/new.html.erb index d828f0776..459bd5547 100644 --- a/app/views/user_feedbacks/new.html.erb +++ b/app/views/user_feedbacks/new.html.erb @@ -12,6 +12,8 @@ <%= f.button :submit, "Submit" %> <%= dtext_preview_button "user_feedback", "body" %> <% end %> + + <%= render "secondary_links" %>