Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: lifang/word_practice
base: 68af1d4b76
...
head fork: lifang/word_practice
compare: 1097d8613f
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 1 deletion.
  1. +2 −1  app/views/words/congratulation.html.erb
3  app/views/words/congratulation.html.erb
View
@@ -14,7 +14,8 @@
<p>祝贺你,你已经背诵完了所有单词。</p>
<% else %>
<p>您今天的背诵任务已经全部完成。</p>
- <p>下一步请于<font color="red"><%= @next_date %></font>回来复习,那天您有<font color="red"><%= @word_sum %></font>个单词需要巩固记忆。</p>
+ <% @day_show = {1=>"明天",2=>"后天",3=>"大后天"} ; n = @next_date.to_date.day-Time.now.to_date.day %>
+ <p>请于<font color="red"><%= @next_date %>(<%= @day_show[n].nil? ? "#{n}天后" : "#{@day_show[n]}" %>)</font>回来复习,那天您有<font color="red"><%= @word_sum %></font>个单词需要巩固记忆。</p>
<% end %>
<div class="t_btn border_radius" onclick="javascript:window.location.href='/words';"><h2>知道了</h2></div>
</article>

No commit comments for this range

Something went wrong with that request. Please try again.