From 25baf61185e1100725981f2e7737dd0c581020b0 Mon Sep 17 00:00:00 2001 From: nieguanghui Date: Tue, 10 Dec 2013 19:45:38 +0800 Subject: [PATCH] to do --- app/helpers/welcome_helper.rb | 4 ++++ app/views/welcome/index.html.erb | 25 +++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/helpers/welcome_helper.rb b/app/helpers/welcome_helper.rb index 35bc65c51..83e036f6f 100644 --- a/app/helpers/welcome_helper.rb +++ b/app/helpers/welcome_helper.rb @@ -104,6 +104,10 @@ module WelcomeHelper # or searchStudent(project).count end + #To do + def find_new_forum_topics + + end private diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 3e042df0c..ee495d1fa 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -126,19 +126,40 @@ + <%= stylesheet_link_tag 'welcome' %>
    -

    论坛热帖

    +
    +
      +
    • +

      论坛动态

      +
    • + +
    +
    <% find_hot_forum_topics.each do |topic|%>
  •       - <%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;"%> + <%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;"%>
    <%=l(:field_updated_on)%><%=time_tag_welcome(topic_last_time topic)%>前