33 lines
2.2 KiB
Plaintext
33 lines
2.2 KiB
Plaintext
<script src="/javascripts/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
|
|
<input type="hidden" value="<%= @type%>" name="type" id="user_activities_type">
|
|
<div class="homepageRightBanner">
|
|
<div class="NewsBannerName">最新动态</div>
|
|
<ul class="resourcesSelect">
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
<ul class="homepagePostType" style="margin-left:95px; width:80px" >
|
|
<li>
|
|
<ul class="homepagePostTypeHomework fl">
|
|
<% if hidden_unproject_infos %>
|
|
<li><%= link_to "全部动态", {:controller => "users", :action => "contest_community", :type => "all"}, :class => "homepagePostTypeAll postTypeGrey" %></li>
|
|
<li><%= link_to @user == User.current ? "我的动态" : "他的动态", {:controller => "users", :action => "contest_community", :type => "current_user"}, :class => "homepagePostTypeMine postTypeGrey" %></li>
|
|
<li><%= link_to "作品动态", {:controller => "users", :action => "contest_community", :type => "contest_work"}, :class => "homepagePostTypeAssignment postTypeGrey" %></li>
|
|
<li><%= link_to "通知动态", {:controller => "users", :action => "contest_community", :type => "contest_news"}, :class => "homepagePostTypeNotice postTypeGrey" %></li>
|
|
<li><%= link_to "论坛动态", {:controller => "users", :action => "contest_community", :type => "contest_message"}, :class => "homepagePostTypeForum postTypeGrey" %></li>
|
|
<li><%= link_to "竞赛留言", {:controller => "users", :action => "contest_community", :type => "contest_journals"}, :class => "homepagePostTypeMessage postTypeGrey" %></li>
|
|
<% end %>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<% if @user_activities_count > 0 %>
|
|
<%= render :partial => 'users/user_activities', :locals => {:user_activities => @user_activities, :page => 0, :type => @type,
|
|
:user_id => (@user.type == "AnonymousUser" ? User.current.id : @user.id), :action => "contest_community" } %>
|
|
<% else %>
|
|
<div class="mb10">
|
|
<%= render :partial => 'users/no_data' %>
|
|
</div>
|
|
<% end %>
|