2015-08-24 14:53:35 +08:00
|
|
|
<% projects.each do |project|%>
|
2016-01-06 16:22:13 +08:00
|
|
|
<li class="homepageLeftMenuCoursesLine pr">
|
2015-08-24 17:04:40 +08:00
|
|
|
<%= link_to project.name, project_path(project.id,:host=>Setting.host_name), :class => "coursesLineGrey hidden", :title => project.name%>
|
2016-01-06 16:22:13 +08:00
|
|
|
<div class="homepagePostSetting mt8 mr10">
|
|
|
|
<ul>
|
|
|
|
<li class="menuSetting">
|
|
|
|
<ul class="homepagePostSettiongText boxShadow">
|
|
|
|
<li><%=link_to "发布问题", new_project_issue_path(project), :class => 'postOptionLink', :target => '_blank' %></li>
|
|
|
|
<li><%=link_to "发布新帖",project_boards_path(project, :flag => true), :class => 'postOptionLink',:target => '_blank' %></li>
|
|
|
|
<li><%= link_to "上传资源",upload_files_menu_path(:project_id => project.id), :remote => true, :class => 'postOptionLink' %></li>
|
2016-01-08 14:12:55 +08:00
|
|
|
<li>
|
|
|
|
<% if ShieldActivity.where("container_type='User' and container_id=#{user.id} and shield_type='Project' and shield_id=#{project.id}").count == 0 %>
|
|
|
|
<%= link_to "屏蔽动态", shield_activities_path(:user_id => user.id, :project_id => project.id), :method => 'post',:class => 'postOptionLink',:remote => true %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to "显示动态", {:controller => 'shield_activities', :action => 'destroy', :user_id => user.id, :project_id => project.id},:method => 'delete',:class => 'postOptionLink',:remote => true %>
|
|
|
|
<% end %>
|
|
|
|
</li>
|
2016-01-06 16:22:13 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-08-24 14:53:35 +08:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% if projects.size == 5%>
|
|
|
|
<li class="homepageLeftMenuMore" id="user_show_more_project">
|
|
|
|
<input type="hidden" value="<%= page%>" id="project_page_num">
|
|
|
|
<a href="javascript:void(0);" class="homepageLeftMenuMoreIcon" onclick="show_more_project('<%= user_projects4show_user_path(user.id)%>');"></a>
|
|
|
|
</li>
|
|
|
|
<% end%>
|