与show_application相关的所有内容改为show_softapplication,以防和系统中的application冲突
This commit is contained in:
parent
8fb185681a
commit
c86af5f483
|
@ -3,8 +3,8 @@
|
||||||
class ContestsController < ApplicationController
|
class ContestsController < ApplicationController
|
||||||
menu_item :respond
|
menu_item :respond
|
||||||
menu_item :project, :only => :show_project
|
menu_item :project, :only => :show_project
|
||||||
menu_item :application, :only => :show_application
|
menu_item :application, :only => :show_softapplication
|
||||||
before_filter :find_contest, :only => [:show_contest, :show_project, :show_application, :create,:destroy,:more,:back,:add,:new,:show_results, :set_reward,
|
before_filter :find_contest, :only => [:show_contest, :show_project, :show_softapplication, :create,:destroy,:more,:back,:add,:new,:show_results, :set_reward,
|
||||||
:show_contest_project, :show_contest_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator, :settings]
|
:show_contest_project, :show_contest_user, :join_in_contest, :unjoin_in_contest, :new_join,:show_participator, :settings]
|
||||||
|
|
||||||
# added by fq
|
# added by fq
|
||||||
|
@ -218,7 +218,7 @@ class ContestsController < ApplicationController
|
||||||
end
|
end
|
||||||
############
|
############
|
||||||
##显示参赛的应用
|
##显示参赛的应用
|
||||||
def show_application
|
def show_softapplication
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
render :layout => 'base_newcontest'
|
render :layout => 'base_newcontest'
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
<!-- fq -->
|
|
||||||
<%= render_flash_messages %>
|
|
||||||
|
|
||||||
<table width="100%" border="0" style="padding-left: 15px">
|
|
||||||
<td width="15%" class="font_lighter" style="font-size: 15px;"><%= l(:label_bidding_project) %></td> <!--标注参与项目及数量-->
|
|
||||||
<% if User.current.logged? %>
|
|
||||||
<td width="85%">
|
|
||||||
<div class='icon icon-add'> <!--标注我要参加及添加图标-->
|
|
||||||
<%= toggle_link l(:button_contesting_as_application), 'put-bid-form' %>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<% end %>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<%#= render :partial=> "list_projects" %>
|
|
|
@ -1,67 +0,0 @@
|
||||||
|
|
||||||
<style>
|
|
||||||
input[type="submit"].contest_btn {
|
|
||||||
vertical-align: middle;
|
|
||||||
width: 60px;
|
|
||||||
height: 30px;
|
|
||||||
line-height: 18px;
|
|
||||||
font-size: 14px;
|
|
||||||
color: rgb(0, 0, 0);
|
|
||||||
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
|
||||||
padding: 0px 0px 4px 0px;
|
|
||||||
border-radius: 2px;
|
|
||||||
border: 1px solid rgb(148, 148, 148);
|
|
||||||
box-shadow: none;
|
|
||||||
text-shadow: none;
|
|
||||||
margin-top: -10px;
|
|
||||||
/*margin-right: -4px;*/
|
|
||||||
}
|
|
||||||
input[type="button"].contest_btn {
|
|
||||||
width: 60px;
|
|
||||||
height: 30px;
|
|
||||||
line-height: 18px;
|
|
||||||
font-size: 14px;
|
|
||||||
color: rgb(0, 0, 0);
|
|
||||||
background: url("/images/button/bg103.jpg") no-repeat scroll left top transparent;
|
|
||||||
padding: 0px 0px 4px 0px;
|
|
||||||
border-radius: 2px;
|
|
||||||
border: 1px solid rgb(148, 148, 148);
|
|
||||||
box-shadow: none;
|
|
||||||
text-shadow: none;
|
|
||||||
margin-top: -10px;
|
|
||||||
margin-right: -2px;
|
|
||||||
}
|
|
||||||
textarea:focus {
|
|
||||||
border: #d5dee9 1px solid;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script type="text/javascript" language="javascript">
|
|
||||||
function clearInfo(id,content) {
|
|
||||||
var text = $('#' + id);
|
|
||||||
if (text.val() == content) {
|
|
||||||
$('#' + id).val('');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showInfo(id,content) {
|
|
||||||
var text = $('#' + id);
|
|
||||||
if (text.val() == '') {
|
|
||||||
$('#' + id).val(content);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function cancel() {
|
|
||||||
$("#put-bid-form").hide();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<% if User.current.logged? %>
|
|
||||||
<!--我要竞标弹出框-->
|
|
||||||
<div id = 'flash' style="float:left; width: 100%; display: none" ></div>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
<div id='bidding_project_list'>
|
|
||||||
<%= render :partial => 'application_list' %>
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
<%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %>
|
<%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_project' %>
|
||||||
</td>
|
</td>
|
||||||
<td class="font_index">
|
<td class="font_index">
|
||||||
<%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_application' %>
|
<%=link_to "#{@contest.projects.where('is_public=1').count}", :controller => 'contests', :action => 'show_softapplication' %>
|
||||||
</td>
|
</td>
|
||||||
<tr class="font_aram">
|
<tr class="font_aram">
|
||||||
<td align="center" width="70px"> <%= l(:label_participate) %></td>
|
<td align="center" width="70px"> <%= l(:label_participate) %></td>
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
RedmineApp::Application.routes.draw do
|
RedmineApp::Application.routes.draw do
|
||||||
|
resources :softapplications
|
||||||
|
|
||||||
|
|
||||||
## new added by linchun #新竞赛相关
|
## new added by linchun #新竞赛相关
|
||||||
resources :contests, only: [:index] do
|
resources :contests, only: [:index] do
|
||||||
collection do
|
collection do
|
||||||
|
@ -30,7 +33,7 @@ RedmineApp::Application.routes.draw do
|
||||||
match 'update_contest' , via: [:put]
|
match 'update_contest' , via: [:put]
|
||||||
match 'show_contest' , via: :get
|
match 'show_contest' , via: :get
|
||||||
match 'show_project' , via: :get
|
match 'show_project' , via: :get
|
||||||
match 'show_application' , via: :get
|
match 'show_softapplication' , via: :get
|
||||||
match 'show_participator' , via: :get
|
match 'show_participator' , via: :get
|
||||||
match 'add' , via: [:get, :post]
|
match 'add' , via: [:get, :post]
|
||||||
match 'create' , via: :post
|
match 'create' , via: :post
|
||||||
|
|
147
db/schema.rb
147
db/schema.rb
|
@ -11,15 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20140320022724) do
|
ActiveRecord::Schema.define(:version => 20140404030103) do
|
||||||
|
|
||||||
create_table "a_user_watchers", :force => true do |t|
|
|
||||||
t.string "name"
|
|
||||||
t.text "description"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
t.integer "member_id"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "activities", :force => true do |t|
|
create_table "activities", :force => true do |t|
|
||||||
t.integer "act_id", :null => false
|
t.integer "act_id", :null => false
|
||||||
|
@ -31,6 +23,11 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
|
add_index "activities", ["user_id", "act_type"], :name => "index_activities_on_user_id_and_act_type"
|
||||||
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
|
add_index "activities", ["user_id"], :name => "index_activities_on_user_id"
|
||||||
|
|
||||||
|
create_table "andoidcontests", :force => true do |t|
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "attachments", :force => true do |t|
|
create_table "attachments", :force => true do |t|
|
||||||
t.integer "container_id"
|
t.integer "container_id"
|
||||||
t.string "container_type", :limit => 30
|
t.string "container_type", :limit => 30
|
||||||
|
@ -165,6 +162,28 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "comments", ["author_id"], :name => "index_comments_on_author_id"
|
add_index "comments", ["author_id"], :name => "index_comments_on_author_id"
|
||||||
add_index "comments", ["commented_id", "commented_type"], :name => "index_comments_on_commented_id_and_commented_type"
|
add_index "comments", ["commented_id", "commented_type"], :name => "index_comments_on_commented_id_and_commented_type"
|
||||||
|
|
||||||
|
create_table "contesting_projects", :force => true do |t|
|
||||||
|
t.integer "project_id"
|
||||||
|
t.string "contest_id"
|
||||||
|
t.integer "user_id"
|
||||||
|
t.string "description"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
t.string "reward"
|
||||||
|
end
|
||||||
|
|
||||||
|
create_table "contests", :force => true do |t|
|
||||||
|
t.string "name"
|
||||||
|
t.integer "budget"
|
||||||
|
t.integer "author_id"
|
||||||
|
t.date "deadline"
|
||||||
|
t.string "description"
|
||||||
|
t.integer "commit"
|
||||||
|
t.string "password"
|
||||||
|
t.datetime "created_on", :null => false
|
||||||
|
t.datetime "updated_on", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "courses", :force => true do |t|
|
create_table "courses", :force => true do |t|
|
||||||
t.integer "tea_id"
|
t.integer "tea_id"
|
||||||
t.string "name"
|
t.string "name"
|
||||||
|
@ -305,7 +324,7 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
create_table "issue_relations", :force => true do |t|
|
create_table "issue_relations", :force => true do |t|
|
||||||
t.integer "issue_from_id", :null => false
|
t.integer "issue_from_id", :null => false
|
||||||
t.integer "issue_to_id", :null => false
|
t.integer "issue_to_id", :null => false
|
||||||
t.string "relation_type", :null => false
|
t.string "relation_type", :default => "", :null => false
|
||||||
t.integer "delay"
|
t.integer "delay"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -362,6 +381,13 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "issues", ["status_id"], :name => "index_issues_on_status_id"
|
add_index "issues", ["status_id"], :name => "index_issues_on_status_id"
|
||||||
add_index "issues", ["tracker_id"], :name => "index_issues_on_tracker_id"
|
add_index "issues", ["tracker_id"], :name => "index_issues_on_tracker_id"
|
||||||
|
|
||||||
|
create_table "join_in_competitions", :force => true do |t|
|
||||||
|
t.integer "user_id"
|
||||||
|
t.integer "competition_id"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "join_in_contests", :force => true do |t|
|
create_table "join_in_contests", :force => true do |t|
|
||||||
t.integer "user_id"
|
t.integer "user_id"
|
||||||
t.integer "bid_id"
|
t.integer "bid_id"
|
||||||
|
@ -473,22 +499,6 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "messages", ["last_reply_id"], :name => "index_messages_on_last_reply_id"
|
add_index "messages", ["last_reply_id"], :name => "index_messages_on_last_reply_id"
|
||||||
add_index "messages", ["parent_id"], :name => "messages_parent_id"
|
add_index "messages", ["parent_id"], :name => "messages_parent_id"
|
||||||
|
|
||||||
create_table "messages_for_bids", :force => true do |t|
|
|
||||||
t.string "message"
|
|
||||||
t.integer "user_id"
|
|
||||||
t.integer "bid_id"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "messages_for_users", :force => true do |t|
|
|
||||||
t.integer "messager_id"
|
|
||||||
t.integer "user_id"
|
|
||||||
t.string "message"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "news", :force => true do |t|
|
create_table "news", :force => true do |t|
|
||||||
t.integer "project_id"
|
t.integer "project_id"
|
||||||
t.string "title", :limit => 60, :default => "", :null => false
|
t.string "title", :limit => 60, :default => "", :null => false
|
||||||
|
@ -518,6 +528,19 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.string "salt", :null => false
|
t.string "salt", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
create_table "open_source_projects", :force => true do |t|
|
||||||
|
t.string "name"
|
||||||
|
t.string "description", :default => ""
|
||||||
|
t.integer "commit_count", :default => 0
|
||||||
|
t.integer "code_line", :default => 0
|
||||||
|
t.integer "users_count", :default => 0
|
||||||
|
t.date "last_commit_time"
|
||||||
|
t.string "url"
|
||||||
|
t.date "date_collected"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "praise_tread_caches", :force => true do |t|
|
create_table "praise_tread_caches", :force => true do |t|
|
||||||
t.integer "object_id", :null => false
|
t.integer "object_id", :null => false
|
||||||
t.string "object_type"
|
t.string "object_type"
|
||||||
|
@ -548,23 +571,11 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.integer "watchers_count"
|
t.integer "watchers_count"
|
||||||
t.integer "project_id"
|
t.integer "project_id"
|
||||||
t.integer "project_type"
|
t.integer "project_type"
|
||||||
t.integer "gitlab_group_id", :limit => 8
|
|
||||||
t.float "grade", :default => 0.0
|
t.float "grade", :default => 0.0
|
||||||
t.integer "course_ac_para", :default => 0
|
t.integer "course_ac_para", :default => 0
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "project_statuses", ["changesets_count"], :name => "index_project_statuses_on_changesets_count"
|
|
||||||
add_index "project_statuses", ["grade"], :name => "index_project_statuses_on_grade"
|
add_index "project_statuses", ["grade"], :name => "index_project_statuses_on_grade"
|
||||||
add_index "project_statuses", ["watchers_count"], :name => "index_project_statuses_on_watchers_count"
|
|
||||||
|
|
||||||
create_table "project_tags", :force => true do |t|
|
|
||||||
t.integer "project_id"
|
|
||||||
t.integer "tag_id"
|
|
||||||
t.string "description"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
t.integer "user_id"
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "projects", :force => true do |t|
|
create_table "projects", :force => true do |t|
|
||||||
t.string "name", :default => "", :null => false
|
t.string "name", :default => "", :null => false
|
||||||
|
@ -609,6 +620,21 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "queries", ["project_id"], :name => "index_queries_on_project_id"
|
add_index "queries", ["project_id"], :name => "index_queries_on_project_id"
|
||||||
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
add_index "queries", ["user_id"], :name => "index_queries_on_user_id"
|
||||||
|
|
||||||
|
create_table "relative_memos", :force => true do |t|
|
||||||
|
t.integer "osp_id", :null => false
|
||||||
|
t.integer "parent_id"
|
||||||
|
t.string "subject", :null => false
|
||||||
|
t.text "content", :null => false
|
||||||
|
t.integer "author_id"
|
||||||
|
t.integer "replies_count", :default => 0
|
||||||
|
t.integer "last_reply_id"
|
||||||
|
t.boolean "lock", :default => false
|
||||||
|
t.boolean "sticky", :default => false
|
||||||
|
t.boolean "is_quote", :default => false
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "repositories", :force => true do |t|
|
create_table "repositories", :force => true do |t|
|
||||||
t.integer "project_id", :default => 0, :null => false
|
t.integer "project_id", :default => 0, :null => false
|
||||||
t.string "url", :default => "", :null => false
|
t.string "url", :default => "", :null => false
|
||||||
|
@ -621,7 +647,6 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.text "extra_info"
|
t.text "extra_info"
|
||||||
t.string "identifier"
|
t.string "identifier"
|
||||||
t.boolean "is_default", :default => false
|
t.boolean "is_default", :default => false
|
||||||
t.string "git_project_id"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "repositories", ["project_id"], :name => "index_repositories_on_project_id"
|
add_index "repositories", ["project_id"], :name => "index_repositories_on_project_id"
|
||||||
|
@ -642,6 +667,26 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
create_table "seems_rateable_cached_ratings", :force => true do |t|
|
||||||
|
t.integer "cacheable_id", :limit => 8
|
||||||
|
t.string "cacheable_type"
|
||||||
|
t.float "avg", :null => false
|
||||||
|
t.integer "cnt", :null => false
|
||||||
|
t.string "dimension"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
|
create_table "seems_rateable_rates", :force => true do |t|
|
||||||
|
t.integer "rater_id", :limit => 8
|
||||||
|
t.integer "rateable_id"
|
||||||
|
t.string "rateable_type"
|
||||||
|
t.float "stars", :null => false
|
||||||
|
t.string "dimension"
|
||||||
|
t.datetime "created_at", :null => false
|
||||||
|
t.datetime "updated_at", :null => false
|
||||||
|
end
|
||||||
|
|
||||||
create_table "settings", :force => true do |t|
|
create_table "settings", :force => true do |t|
|
||||||
t.string "name", :default => "", :null => false
|
t.string "name", :default => "", :null => false
|
||||||
t.text "value"
|
t.text "value"
|
||||||
|
@ -652,9 +697,9 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
|
|
||||||
create_table "shares", :force => true do |t|
|
create_table "shares", :force => true do |t|
|
||||||
t.date "created_on"
|
t.date "created_on"
|
||||||
t.string "title"
|
|
||||||
t.string "share_type"
|
|
||||||
t.string "url"
|
t.string "url"
|
||||||
|
t.string "title"
|
||||||
|
t.integer "share_type"
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
t.integer "project_id"
|
t.integer "project_id"
|
||||||
|
@ -662,8 +707,13 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.string "description"
|
t.string "description"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "students", :force => true do |t|
|
create_table "softapplications", :force => true do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
|
t.string "description"
|
||||||
|
t.integer "app_type_id"
|
||||||
|
t.string "app_type_name"
|
||||||
|
t.string "android_min_version_available"
|
||||||
|
t.integer "user_id"
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
end
|
end
|
||||||
|
@ -726,7 +776,7 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
create_table "tokens", :force => true do |t|
|
create_table "tokens", :force => true do |t|
|
||||||
t.integer "user_id", :default => 0, :null => false
|
t.integer "user_id", :default => 0, :null => false
|
||||||
t.string "action", :limit => 30, :default => "", :null => false
|
t.string "action", :limit => 30, :default => "", :null => false
|
||||||
t.string "value", :limit => 40
|
t.string "value", :limit => 40, :default => "", :null => false
|
||||||
t.datetime "created_on", :null => false
|
t.datetime "created_on", :null => false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -752,13 +802,12 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
t.integer "zip_code"
|
t.integer "zip_code"
|
||||||
t.datetime "created_at", :null => false
|
t.datetime "created_at", :null => false
|
||||||
t.datetime "updated_at", :null => false
|
t.datetime "updated_at", :null => false
|
||||||
t.integer "identity"
|
|
||||||
t.string "technical_title"
|
t.string "technical_title"
|
||||||
|
t.integer "identity"
|
||||||
t.string "student_id"
|
t.string "student_id"
|
||||||
t.string "teacher_realname"
|
t.string "teacher_realname"
|
||||||
t.string "student_realname"
|
t.string "student_realname"
|
||||||
t.string "location_city"
|
t.string "location_city"
|
||||||
t.string "git_token"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "user_grades", :force => true do |t|
|
create_table "user_grades", :force => true do |t|
|
||||||
|
@ -795,14 +844,6 @@ ActiveRecord::Schema.define(:version => 20140320022724) do
|
||||||
add_index "user_statuses", ["grade"], :name => "index_user_statuses_on_grade"
|
add_index "user_statuses", ["grade"], :name => "index_user_statuses_on_grade"
|
||||||
add_index "user_statuses", ["watchers_count"], :name => "index_user_statuses_on_watchers_count"
|
add_index "user_statuses", ["watchers_count"], :name => "index_user_statuses_on_watchers_count"
|
||||||
|
|
||||||
create_table "user_tags", :force => true do |t|
|
|
||||||
t.integer "user_id"
|
|
||||||
t.integer "tag_id"
|
|
||||||
t.string "description"
|
|
||||||
t.datetime "created_at", :null => false
|
|
||||||
t.datetime "updated_at", :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "users", :force => true do |t|
|
create_table "users", :force => true do |t|
|
||||||
t.string "login", :default => "", :null => false
|
t.string "login", :default => "", :null => false
|
||||||
t.string "hashed_password", :limit => 40, :default => "", :null => false
|
t.string "hashed_password", :limit => 40, :default => "", :null => false
|
||||||
|
|
|
@ -280,7 +280,7 @@ end
|
||||||
Redmine::MenuManager.map :contest_menu do |menu|
|
Redmine::MenuManager.map :contest_menu do |menu|
|
||||||
menu.push :respond, :show_contest_contest_path, :caption => :label_user_response
|
menu.push :respond, :show_contest_contest_path, :caption => :label_user_response
|
||||||
menu.push :project, :show_project_contest_path, :caption => :label_contest_project
|
menu.push :project, :show_project_contest_path, :caption => :label_contest_project
|
||||||
menu.push :application, :show_application_contest_path, :caption => :label_contest_application
|
menu.push :application, :show_softapplication_contest_path, :caption => :label_contest_application
|
||||||
# menu.push :result, { :controller => 'bids', :action => 'show_results' },
|
# menu.push :result, { :controller => 'bids', :action => 'show_results' },
|
||||||
# :caption => :label_bidding_results,:if => Proc.new{ |p| User.current.id == p }
|
# :caption => :label_bidding_results,:if => Proc.new{ |p| User.current.id == p }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue