去掉项目模式及数据迁移
This commit is contained in:
parent
a8acb4a6cb
commit
61f99137fc
|
@ -48,7 +48,6 @@
|
|||
|
||||
<div id="content">
|
||||
<%= render :partial => 'layouts/base_project_top' %>
|
||||
<!--<div class=" fl mr10" style="width:240px; height:800px;background:#ddd;"></div>-->
|
||||
|
||||
<div id="LSide" class="fl">
|
||||
<div class="project_info">
|
||||
|
@ -70,9 +69,7 @@
|
|||
</div>
|
||||
<!--关注、申请加入/退出项目-->
|
||||
<div id="join_exit_project_div">
|
||||
<% text = @project.project_new_type == 1 ? l(:label_development_team) : (@project.project_new_type == 2 ? l(:label_research_group) : l(:label_friend_organization))%>
|
||||
<% typeclass = @project.project_new_type == 1 ? "pr_kafa" : (@project.project_new_type == 2 ? "pr_keyan" : "pr_friend")%>
|
||||
<%= render 'layouts/join_exit_project',{:text => text, :typeclass => typeclass} %>
|
||||
<%= render 'layouts/join_exit_project' %>
|
||||
</div>
|
||||
<!-- 项目得分 -->
|
||||
<div class="cl"></div>
|
||||
|
@ -119,13 +116,7 @@
|
|||
<!--邀请加入-->
|
||||
<div class="subNavBox">
|
||||
<div id="project_memu_list">
|
||||
<% if @project.project_new_type == 1 || @project.project_new_type.nil? %>
|
||||
<%= render :partial => 'projects/development_group', :locals => {:project => @project} %>
|
||||
<% elsif @project.project_new_type == 2 %>
|
||||
<%= render :partial => 'projects/research_team', :locals => {:project => @project} %>
|
||||
<% else %>
|
||||
<%= render :partial => 'projects/friend_group', :locals => {:project => @project} %>
|
||||
<% end %>
|
||||
<%= render :partial => 'projects/development_group', :locals => {:project => @project} %>
|
||||
</div>
|
||||
|
||||
<!-- end -->
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
class ChangePorojectType < ActiveRecord::Migration
|
||||
def up
|
||||
projects = Project.where("project_new_type !=?", 1)
|
||||
projects.update_all(:project_new_type => 1)
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue