|
|
|
@ -121,7 +121,7 @@
|
|
|
|
|
<div class="pbt10">
|
|
|
|
|
<div class="position-relative">
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<span class="mr5 text-blue"><%= q.question_number %>、 </span><%= request.base_url %>
|
|
|
|
|
<span class="mr5 text-blue"><%= q.question_number %>、 </span>
|
|
|
|
|
<span class="text-blue">
|
|
|
|
|
<%= q.question_type_name %>
|
|
|
|
|
</span>
|
|
|
|
@ -168,12 +168,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pbt5">
|
|
|
|
|
<% if q.question_type == 5 %>
|
|
|
|
|
<span class="ques-title" ><%= to_markdown(q.shixun_name) %></span>
|
|
|
|
|
<span class="ques-title" ><%= to_markdown(q.shixun_name,@request_url) %></span>
|
|
|
|
|
<div class="mt8 text-gray">
|
|
|
|
|
<span><%= to_markdown(q.question_title) %></span>
|
|
|
|
|
<span><%= to_markdown(q.question_title,@request_url) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="ques-title"><%= to_markdown(q.question_title) %></span>
|
|
|
|
|
<span class="ques-title"><%= to_markdown(q.question_title,@request_url) %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -183,7 +183,7 @@
|
|
|
|
|
<% check_answer = (user_answer.present? && (s.id == user_answer.first.exercise_choice_id)) ? "choose-answer" : '' %>
|
|
|
|
|
<div class="pbt5 clearfix main-choice">
|
|
|
|
|
<span class="choose-radio <%= check_answer %> pull-left mt8"></span>
|
|
|
|
|
<span class="inline-block pull-left ml10 choice-text"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
<span class="inline-block pull-left ml10 choice-text"><%= to_markdown(s.choice_text,@request_url) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q_type == 1 %>
|
|
|
|
@ -195,7 +195,7 @@
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="choose-checkbox pull-left mt8"></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<span class="inline-block pull-left choice-text ml10"><%= to_markdown(s.choice_text) %></span>
|
|
|
|
|
<span class="inline-block pull-left choice-text ml10"><%= to_markdown(s.choice_text,@request_url) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% elsif q_type == 2 %>
|
|
|
|
@ -335,7 +335,7 @@
|
|
|
|
|
<div class="bdc">
|
|
|
|
|
<div class="pbt10">
|
|
|
|
|
<div class="inline-block pull-left">
|
|
|
|
|
<span><img src="/images/avatars/User/<%= ques_user.id %>" class="avatar-32"/></span>
|
|
|
|
|
<span><img src="<%= @request_url %>/images/avatars/User/<%= ques_user.id %>" class="avatar-32"/></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ml38">
|
|
|
|
|
<p class="mb10"><span class="pr"><%= ques_user.real_name %></span><span class="plr15 text-gray"><%= ques_comment.first.updated_at.strftime('%Y-%m-%d %H:%M') %></span></p>
|
|
|
|
|