2016-10-12 11:09:41 +08:00
|
|
|
<!--新版项目头部结束-->
|
2016-11-11 17:35:11 +08:00
|
|
|
<div class="pro_new_info mb10 break_word" style="padding-bottom: 5px" >
|
2016-10-28 10:46:00 +08:00
|
|
|
<div id="project_invite_code"><%= render :partial => 'projects/invite_code' %></div>
|
2016-11-11 17:35:11 +08:00
|
|
|
<div id="project_description_code" >
|
2016-10-12 11:09:41 +08:00
|
|
|
<% if @project.description.blank? %>
|
2016-11-11 17:35:11 +08:00
|
|
|
<p class="break_word" style="padding-top:5px"><%= @project.name %></p>
|
2016-10-12 11:09:41 +08:00
|
|
|
<% else %>
|
2016-11-11 17:35:11 +08:00
|
|
|
<p class="break_word" style="padding-top:5px"><%=h @project.description.html_safe %></p>
|
2016-10-12 11:09:41 +08:00
|
|
|
<% end %>
|
2016-11-11 17:35:11 +08:00
|
|
|
</div>
|
2016-10-12 11:09:41 +08:00
|
|
|
</div>
|
|
|
|
|
2015-12-04 10:59:09 +08:00
|
|
|
<input type="hidden" value="<%= @type %>" name="type" id="user_activities_type">
|
2016-10-18 11:30:42 +08:00
|
|
|
<div class="homepageRight mt0">
|
|
|
|
<div class="banner-big">
|
2015-12-04 10:59:09 +08:00
|
|
|
<div class="NewsBannerName">项目动态</div>
|
|
|
|
<ul class="resourcesSelect" class="resourcesSelect">
|
|
|
|
<li class="resourcesSelected"><a href="javascript:void(0);" class="resourcesIcon"></a>
|
2016-07-06 15:43:48 +08:00
|
|
|
<ul class="homepagePostType2">
|
2015-12-04 10:59:09 +08:00
|
|
|
<li>
|
|
|
|
<ul class="homepagePostTypeHomework fl">
|
|
|
|
<li><%= link_to "全部动态", {:controller => "projects", :action => "show", :type => nil}, :class => "homepagePostTypeAll postTypeGrey" %></li>
|
|
|
|
<li><%= link_to "问题动态", {:controller => "projects", :action => "show", :type => "issue"}, :class => "homepagePostTypeMessage postTypeGrey" %></li>
|
|
|
|
<!--<li><%#= link_to "作业动态", {:controller => "courses", :action => "show", :type => "homework"}, :class => "homepagePostTypeAssignment postTypeGrey" %></li>-->
|
2016-03-17 16:02:36 +08:00
|
|
|
<li><%= link_to "资源库动态", {:controller => "projects", :action => "show", :type => "attachment"}, :class => "homepagePostTypeResource resourcesGrey" %></li>
|
2015-12-04 10:59:09 +08:00
|
|
|
<li><%= link_to "讨论区动态", {:controller => "projects", :action => "show", :type => "message"}, :class => "homepagePostTypeForum postTypeGrey" %></li>
|
|
|
|
<!--<li><%#= link_to "问卷动态", {:controller => "courses", :action => "show", :type => "poll"}, :class => "homepagePostTypeQuiz postTypeGrey" %></li>-->
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2016-10-18 11:30:42 +08:00
|
|
|
<div class="cl"></div>
|
2015-12-04 10:59:09 +08:00
|
|
|
<!--CONTENT LIST-->
|
2015-04-07 12:48:47 +08:00
|
|
|
|
2015-12-04 10:59:09 +08:00
|
|
|
</div>
|
2016-04-13 20:39:20 +08:00
|
|
|
|
2015-12-04 10:59:09 +08:00
|
|
|
<%= render :partial => "project_activities", :locals => {:forge_acts => @events_pages, :page => 0, :type => @type} %>
|
2016-11-11 17:35:11 +08:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
autoUrl('project_description_code');
|
|
|
|
</script>
|