dev_forum
SylorHuang 6 years ago
parent 4a257c2960
commit 8f3be9a7f6

@ -68,17 +68,13 @@
<span class="text-gray mlr5">(<%= q&.question_score %>分)</span>
</div>
<div class="pbt5">
<img src="http://47.96.87.25:48080/api/attachments/368984" alt="电脑的电路图" title="电脑的电路图">
<img class="myavatar avatar-48" alt="udasker_picture" src="http://images.udask.cn/uploaders/user/picture/2/2_udasker.jpg?v=1556452947">
<% q_markdown = to_markdown(q.question_title) %>
<% if q.question_type == 5 %>
<% q_markdown_name = to_markdown(q.shixun_name) %>
<span class="ques-title" ><%= q_markdown_name %></span>
<span class="ques-title" ><%= to_markdown(q.shixun_name) %></span>
<div class="mt8 text-gray">
<span><%= q_markdown %></span>
<span><%= to_markdown(q.question_title) %></span>
</div>
<% else %>
<span class="ques-title"><%= q_markdown %></span>
<span class="ques-title"><%= to_markdown(q.question_title) %></span>
<% end %>
</div>
<div class="pbt5">
@ -86,14 +82,14 @@
<% q.exercise_choices.each do |s| %>
<div class="pbt5 clearfix">
<span class="choose-radio pull-left"></span>
<span class="inline-block pull-left"><%= to_markdown(s.choice_text) %></span>
<span class="inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
</div>
<% end %>
<% elsif q.question_type == 1 %>
<% q.exercise_choices.each do |s| %>
<div class="pbt5 clearfix">
<span class="choose-checkbox pull-left"></span>
<span class="inline-block pull-left"><%= to_markdown(s.choice_text) %></span>
<span class="inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
</div>
<% end %>
<% elsif q.question_type == 2 %>
@ -101,7 +97,7 @@
<% q.exercise_choices.each do |s| %>
<span class="mr15 clearfix">
<span class="choose-radio pull-left"></span>
<span class="mlr5 inline-block pull-left"><%= to_markdown(s.choice_text) %></span>
<span class="mlr5 inline-block pull-left line-20"><%= to_markdown(s.choice_text) %></span>
</span>
<% end %>
</div>

@ -309,6 +309,12 @@ textarea{
clear:both;
zoom:1;
}
.line-20{
line-height: 20px;
}
.line-20 P{
margin-bottom:0;
}

Loading…
Cancel
Save