<% @nav_dispaly_contest_label = 1 @nav_dispaly_store_all_label = 1 %> <%= stylesheet_link_tag 'welcome' %>
<%#= render partial: 'wei_xin' %>
<% if get_avatar?(@contest_page) %> <%= image_tag(url_to_avatar(@contest_page), width:@contest_page.image_width,height: @contest_page.image_height) %> <% else %> <%= image_tag '/images/transparent.png', width:@contest_page.image_width,height: @contest_page.image_height %> <% end %>
<% unless @contest_page.nil? %> <%= @contest_page.title %> , <%= @contest_page.description %> <% end %>
<%= form_tag({controller: :welcome, action: :search }, method: :get) do %> <%= text_field_tag 'name', params[:name], :placeholder => l(:label_search_information), name: "name", :class => 'blueinputbar', :style => 'width:240px; padding-right:50px;'%>   <%= hidden_field_tag 'project_type', params[:project_type] %> <%= submit_tag l(:label_search), :class => "enterprise", :name => "contests_search" %> <% end %>

<%=l(:label_current_hot_contest)%>

<% if User.current.logged? %> <% unless User.current.user_extensions.identity == 1 %> <%= link_to(l(:label_newtype_contest), new_contest_contests_path, :class => 'icon icon-add') %> <% end %> <% end %>
<% find_all_hot_contest.map do |contest| break if(contest == find_all_hot_contest[5]) %>
  • <%= image_tag('/images/contest1.png')%>
    <%= link_to(contest.name.truncate(50, omission: '...'), contest_contestnotifications_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}", :target => "_blank") %> <% if contest.id == 2 or contest.id == 3 or contest.id == 6 %> ( <%= link_to("#{contest.projects.where('is_public=1').count}"+l(:label_work_quantity), show_attendingcontest_contest_path(contest), :target => "_blank") %> ) <% else %> ( <%= link_to("#{contest.contesting_softapplications.count}"+l(:label_work_quantity), show_attendingcontest_contest_path(contest), :target => "_blank") %> ) <% end %>
    <%=contest.description.truncate(100, omission: '...')%>

    <%=l(:label_release_time)%>: <%=format_time contest.created_on %>
  • <% end; reset_cycle %>

    <%=l(:label_notification)%>

    <%=l(:label_issue_feedback_activities)%> <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%> <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>

    <%= link_to l(:label_more_information), forums_path %>
      <% find_new_forum_topics(9 - @contest_notifications.count).each do |topic|%>
    •       <%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %><%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
      <%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %> <%=l(:label_question_sponsor)%>: <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %> <% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %> <%=l(:label_final_reply)%>:  <%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%> <% end %> <%=l(:label_reply)%> (<%= link_to topic.try(:replies_count), topic.event_url %>)
    • <% end %>

    <%=l(:label_current_attendingcontest_work)%>

    <% if Softapplication.count > 0%>
    <% find_all_hot_softapplication.map do |softapplication| break if(softapplication == find_all_hot_softapplication[5]) %>
  • <%= image_tag('/images/app1.png')%>
    <%= link_to(softapplication.name, softapplication_path(softapplication.id), :class => "d-g-blue d-p-project-name", :title => "#{softapplication.name}", :target => "_blank") %>
    > <%=softapplication.description.to_s.truncate(50, omission: '...')%>

    <%=l(:label_release_time)%>:  <%=format_time softapplication.created_at %>
  • <% end; reset_cycle %>
    <% else %>

    <%= l(:label_no_ftapplication) %>

    <% end %>
    <%= render partial: 'link_to_another' %>