36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
<% if ma.class == ContestMessage %>
|
|
<% if ma.contest_message_type == "ContestRequestDealResult" %>
|
|
<ul class="homepageNewsList fl">
|
|
<div class="longMessageWidth">
|
|
<li class="homepageNewsPortrait fl">
|
|
<div class="navHomepageLogo fl"><%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %></div>
|
|
</li>
|
|
<li class="homepageNewsPubType fl">
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
<span class="homepageNewsType fl">
|
|
竞赛申请进度反馈:</span>
|
|
</li>
|
|
<li class="messageInformationContents">
|
|
<% if ma.content
|
|
role_str = ""
|
|
if ma.content.include?('13') && ma.content.include?('14')
|
|
role_str = "管理员、评委"
|
|
elsif ma.content.include?('13')
|
|
role_str = "管理员"
|
|
elsif ma.content.include?('14')
|
|
role_str = "评委"
|
|
elsif ma.content.include?('15')
|
|
role_str = "参赛者"
|
|
end
|
|
end %>
|
|
<%= link_to ma.status == 1 ?
|
|
'您申请成为竞赛"'+Contest.find(ma.contest_id).name+'"的'+ role_str +'申请已通过'
|
|
:
|
|
'您申请成为竞赛"'+Contest.find(ma.contest_id).name+'"的'+ role_str +'的申请被拒绝', contest_path(Contest.find(ma.contest_id)),
|
|
:class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}", :target => '_blank' %>
|
|
</li>
|
|
</div>
|
|
<li class="homepageNewsTime fr"><%= time_tag(ma.created_at).html_safe %> </li>
|
|
</ul>
|
|
<% end %>
|
|
<% end %> |