<% if @request_for_comment.question and not @request_for_comment.question == '' %>
<%= t('activerecord.attributes.request_for_comments.question')%>: "<%= @request_for_comment.question %>"
<% else %>
<%= t('activerecord.attributes.request_for_comments.question')%>: <%= t('request_for_comments.no_question') %>
<% end %>
<% if (policy(@request_for_comment).mark_as_solved? and not @request_for_comment.solved?) %>
<% elsif (@request_for_comment.solved?) %>
<% else %>
<% end %>
<% if @current_user.admin? && user.is_a?(ExternalUser) %>
Admin Menu
<%= link_to "User's current status of this exercise", statistics_external_user_exercise_path(id: @request_for_comment.exercise_id, external_user_id: @request_for_comment.user_id) %>
<%= link_to "All exercises of this user", statistics_external_user_path(id: @request_for_comment.user_id) %>
<%= link_to "Implement the exercise yourself", implement_exercise_path(id: @request_for_comment.exercise_id) %>
<%= link_to "Show the exercise", exercise_path(id: @request_for_comment.exercise_id) %>
<% end %>
<% submission.files.each do |file| %>
<%= (file.path or "") + "/" + file.name + file.file_type.file_extension %>