30 lines
2.1 KiB
Plaintext
30 lines
2.1 KiB
Plaintext
<% projects.each do |project|%>
|
|
<%# pro = Project.find project.project_id %>
|
|
<li class="homepageLeftMenuCoursesLine" style="position:relative;">
|
|
<%= link_to project.name, project_path(project.id,:host=>Setting.host_name), :class => "coursesLineGrey hidden", :title => project.name%>
|
|
<!--<div class="homepagePostSetting mt5 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>-->
|
|
<!--<li>-->
|
|
<!--<%# if ShieldActivity.where("container_type='Organization' and container_id=#{org_id} and shield_type='Project' and shield_id=#{project.id}").count == 0 %>-->
|
|
<!--<#%= link_to "屏蔽动态", shield_activities_path(:org_id => org_id, :project_id => project.id), :method => 'post',:class => 'postOptionLink',:remote => true %>-->
|
|
<!--<%# else %>-->
|
|
<!--<%#= link_to "显示动态", show_acts_shield_activities_path(:org_id => org_id, :project_id => project.id),:method => 'delete',:class => 'postOptionLink',:remote => true %>-->
|
|
<!--<%# end %>-->
|
|
<!--</li>-->
|
|
<!--</ul>-->
|
|
<!--</li>-->
|
|
<!--</ul>-->
|
|
<!--</div>-->
|
|
</li>
|
|
<% end %>
|
|
<% if projects.size == 5%>
|
|
<li class="homepageLeftMenuMore" id="show_more_org_project">
|
|
<input type="hidden" value="<%= page%>" id="org_project_page_num">
|
|
<a href="javascript:void(0);" class="homepageLeftMenuMoreIcon" onclick="show_more_org_project('<%= more_org_projects_organization_path(org_id)%>');"></a>
|
|
</li>
|
|
<% end%> |