fix bug in arrange to net

This commit is contained in:
xianbo 2013-10-21 11:21:07 +08:00
parent b04fe3d1bb
commit 5a1bb0f2d4
5 changed files with 855 additions and 877 deletions

View File

@ -1,6 +1,7 @@
# encoding: utf-8
class SharesController < ApplicationController
before_filter :require_login, :except => [:index]
before_filter :require_admin, :only => [:index]
# GET /shares
# GET /shares.json
def index

View File

@ -1,6 +1,7 @@
<!-- fq -->
<%= render_flash_messages %>
<% if @bid.reward_type == 3 %>
<% if @bid.reward_type == 3 %>
<% unless User.current.nil?%>
<% if User.current.user_extensions.identity == 1 %>
<div class="font_lighter">
<p><%= l(:label_homework_prompt) %></p>

View File

@ -1642,3 +1642,6 @@ zh:
label_assign_homework: 中布置了作业
label_noawards: 未评奖
label_module_share: dts测试工具
label_homework_prompt: 贴心小提示:
label_homework_prompt_content: 亲,在这里我们的作业将以项目的形式提交,如果小伙伴们还没有创建项目,请先创建一个项目。项目创建成功后,就可以
label_create_homework: 布置了作业:

View File

@ -0,0 +1,5 @@
class AddDescriptionToShare < ActiveRecord::Migration
def change
add_column :shares, :description, :string
end
end

File diff suppressed because it is too large Load Diff