diff --git a/Gemfile b/Gemfile index 1c1edfd35..6ee66a592 100644 --- a/Gemfile +++ b/Gemfile @@ -50,10 +50,10 @@ gem 'elasticsearch-model' gem 'elasticsearch-rails' #rails 3.2.22.2 bug -gem "test-unit", "~>3.0" +# gem "test-unit", "~>3.0" ### profile -gem 'oneapm_rpm' +# gem 'oneapm_rpm' group :development do gem 'grape-swagger' diff --git a/app/views/pull_requests/_new.html.erb b/app/views/pull_requests/_new.html.erb index 16f299ca5..54c7434b0 100644 --- a/app/views/pull_requests/_new.html.erb +++ b/app/views/pull_requests/_new.html.erb @@ -1,19 +1,16 @@ -
+
+
<%= render :partial => "pull_requests/error_message" %> -
+
-
-
新的合并请求
- - - - +
+
新的合并请求
+
+ <%= render :partial => "pull_requests/form" %>
-<%= render :partial => "pull_requests/form" %> - \ No newline at end of file diff --git a/app/views/pull_requests/create.js.erb b/app/views/pull_requests/create.js.erb index 36c9368af..ce5f50ac0 100644 --- a/app/views/pull_requests/create.js.erb +++ b/app/views/pull_requests/create.js.erb @@ -1 +1 @@ -$("#create_pull_request_error").html('<%= escape_javascript(render :partial => "pull_requests/error_message") %>'); \ No newline at end of file +$("#create_pull_request_error").html('<%= escape_javascript(render :partial => "pull_requests/error_message") %>'); diff --git a/app/views/pull_requests/new.html.erb b/app/views/pull_requests/new.html.erb index 47ba66f09..e7494708c 100644 --- a/app/views/pull_requests/new.html.erb +++ b/app/views/pull_requests/new.html.erb @@ -1,2 +1,3 @@ <%= render :partial => "pull_requests/pull_request_container" %> -<%= render :partial => "pull_requests/new" %> \ No newline at end of file +<%= render :partial => "pull_requests/new" %> + diff --git a/app/views/pull_requests/show.html.erb b/app/views/pull_requests/show.html.erb index b7b7b4e54..cf344d32c 100644 --- a/app/views/pull_requests/show.html.erb +++ b/app/views/pull_requests/show.html.erb @@ -1,48 +1,2 @@ <%= render :partial => "pull_requests/pull_request_container" %> -
- 待处理合并请求 由<%= link_to @request.author.try(:username), user_path(get_user_by_login_and(@request.author.try(:username))), :class => "link-blue" %>于<%= time_tag(@request.created_at) %>提交 · 最后编辑时间<%= time_tag(@request.updated_at) %> - -
-
-
<%= @request.title %>

<%= @request.description %>

-
- 请求将 <%= @request.source_branch %> 合并至 <%= @request.target_branch %> -
- <%= link_to "接受请求", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "BlueCirBtn" %> -
-
- dev_huang没有新内容可以合并至develop
-

请将新改动提交至源分支或者切换到其它目标分支

-
-
- -
根据最近提交时间排列
-
- <%= render :partial => "pull_requests/pull_request_commits" %> -
-
- <%= render :partial => "pull_requests/pull_request_changes" %> -
- - \ No newline at end of file +<%= render :partial => "pull_requests/show" %> diff --git a/app/views/pull_requests/show.js.erb b/app/views/pull_requests/show.js.erb new file mode 100644 index 000000000..af5935536 --- /dev/null +++ b/app/views/pull_requests/show.js.erb @@ -0,0 +1 @@ +$("#pull_request_new_form").html('<%= escape_javascript(render :partial => "pull_requests/show") %>'); \ No newline at end of file