fix bug in arrange to net
This commit is contained in:
parent
b04fe3d1bb
commit
5a1bb0f2d4
|
@ -1,6 +1,7 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
class SharesController < ApplicationController
|
class SharesController < ApplicationController
|
||||||
before_filter :require_login, :except => [:index]
|
before_filter :require_login, :except => [:index]
|
||||||
|
before_filter :require_admin, :only => [:index]
|
||||||
# GET /shares
|
# GET /shares
|
||||||
# GET /shares.json
|
# GET /shares.json
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<!-- fq -->
|
<!-- fq -->
|
||||||
<%= render_flash_messages %>
|
<%= render_flash_messages %>
|
||||||
<% if @bid.reward_type == 3 %>
|
<% if @bid.reward_type == 3 %>
|
||||||
|
<% unless User.current.nil?%>
|
||||||
<% if User.current.user_extensions.identity == 1 %>
|
<% if User.current.user_extensions.identity == 1 %>
|
||||||
<div class="font_lighter">
|
<div class="font_lighter">
|
||||||
<p><%= l(:label_homework_prompt) %></p>
|
<p><%= l(:label_homework_prompt) %></p>
|
||||||
|
|
|
@ -1642,3 +1642,6 @@ zh:
|
||||||
label_assign_homework: 中布置了作业
|
label_assign_homework: 中布置了作业
|
||||||
label_noawards: 未评奖
|
label_noawards: 未评奖
|
||||||
label_module_share: dts测试工具
|
label_module_share: dts测试工具
|
||||||
|
label_homework_prompt: 贴心小提示:
|
||||||
|
label_homework_prompt_content: 亲,在这里我们的作业将以项目的形式提交,如果小伙伴们还没有创建项目,请先创建一个项目。项目创建成功后,就可以
|
||||||
|
label_create_homework: 布置了作业:
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddDescriptionToShare < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :shares, :description, :string
|
||||||
|
end
|
||||||
|
end
|
1720
db/schema.rb
1720
db/schema.rb
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue