Merge branch 'rep_quality' into develop
Conflicts: app/views/layouts/_logined_header.html.erb
This commit is contained in:
commit
351ca6d074
4
Gemfile
4
Gemfile
|
@ -50,10 +50,10 @@ gem 'elasticsearch-model'
|
||||||
gem 'elasticsearch-rails'
|
gem 'elasticsearch-rails'
|
||||||
|
|
||||||
#rails 3.2.22.2 bug
|
#rails 3.2.22.2 bug
|
||||||
gem "test-unit", "~>3.0"
|
# gem "test-unit", "~>3.0"
|
||||||
|
|
||||||
### profile
|
### profile
|
||||||
gem 'oneapm_rpm'
|
# gem 'oneapm_rpm'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'grape-swagger'
|
gem 'grape-swagger'
|
||||||
|
|
|
@ -3200,6 +3200,7 @@ class UsersController < ApplicationController
|
||||||
ori = Attachment.find_by_id(send_id)
|
ori = Attachment.find_by_id(send_id)
|
||||||
# 如果该附件已经存课程中,则只更新附件创建时间
|
# 如果该附件已经存课程中,则只更新附件创建时间
|
||||||
mul_container.attachments.each do |att|
|
mul_container.attachments.each do |att|
|
||||||
|
@exist = false
|
||||||
if att.id == ori.id || (!att.copy_from.nil? && !ori.copy_from.nil? && att.copy_from == ori.copy_from) || att.copy_from == ori.id || att.id == ori.copy_from
|
if att.id == ori.id || (!att.copy_from.nil? && !ori.copy_from.nil? && att.copy_from == ori.copy_from) || att.copy_from == ori.id || att.id == ori.copy_from
|
||||||
att.created_on = Time.now
|
att.created_on = Time.now
|
||||||
att.save
|
att.save
|
||||||
|
|
|
@ -38,11 +38,13 @@
|
||||||
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=homework.name%>'>
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=homework.name%>'>
|
||||||
<%=link_to(homework.try(:name), student_work_index_path(:homework => homework.id))%>
|
<%=link_to(homework.try(:name), student_work_index_path(:homework => homework.id))%>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%= homework.course.nil? ? "" : homework.course.name %>'>
|
||||||
<% if homework.course %>
|
<% if homework.course %>
|
||||||
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=homework.course.name%>'>
|
<%= link_to homework.course.name, course_path(homework.course.id) %>
|
||||||
<%= link_to(homework.course.name, course_path(homework.course.id)) %>
|
|
||||||
</td>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</td>
|
||||||
|
|
||||||
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<% if homework.try(:user).try(:realname) == ' '%><%= homework.try(:user)%><% else %><%=homework.try(:user).try(:realname) %><% end %>'>
|
<td align="center" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<% if homework.try(:user).try(:realname) == ' '%><%= homework.try(:user)%><% else %><%=homework.try(:user).try(:realname) %><% end %>'>
|
||||||
<% if homework.try(:user).try(:realname) == ' '%>
|
<% if homework.try(:user).try(:realname) == ' '%>
|
||||||
<%= link_to(homework.try(:user), user_path(homework.user_id)) %>
|
<%= link_to(homework.try(:user), user_path(homework.user_id)) %>
|
||||||
|
|
|
@ -36,5 +36,5 @@
|
||||||
<% html_title(l(:label_calendar)) -%>
|
<% html_title(l(:label_calendar)) -%>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -319,5 +319,5 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
<!--<li class="navHomepageMenu fl mr30">-->
|
<!--<li class="navHomepageMenu fl mr30">-->
|
||||||
<!--<%#= link_to "帮助中心", "https://#{Setting.host_name}/forums/1/memos/1168", :class =>"c_white f16 db p10" %>-->
|
<!--<%#= link_to "帮助中心", "https://#{Setting.host_name}/forums/1/memos/1168", :class =>"c_white f16 db p10" %>-->
|
||||||
<!--</li>-->
|
<!--</li>-->
|
||||||
|
<% end %>
|
||||||
<li class="navHomepageMenu fl mr40">
|
<li class="navHomepageMenu fl mr40">
|
||||||
<a href="http://forge.trustie.net/forums/1/memos/1168" target="_blank" class="c_white f16 db p10" >帮助中心</a>
|
<a href="http://forge.trustie.net/forums/1/memos/1168" target="_blank" class="c_white f16 db p10" >帮助中心</a>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div id="RSide" class="fl">
|
<div class="fl">
|
||||||
<%= render_flash_messages %>
|
<%= render_flash_messages %>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
<%= call_hook :view_layouts_base_content %>
|
<%= call_hook :view_layouts_base_content %>
|
||||||
|
|
|
@ -146,13 +146,13 @@
|
||||||
</div>
|
</div>
|
||||||
<% if @center_flag %>
|
<% if @center_flag %>
|
||||||
<div class="subNav">
|
<div class="subNav">
|
||||||
<a href="<%=url_for(:controller => 'users', :action => 'user_courses',:id=>@user.id)%>" class=" f14 c_blue02">
|
<a href="<%=url_for(:controller => 'users', :action => 'user_courselist',:id=>@user.id)%>" class=" f14 c_blue02">
|
||||||
我的课程
|
我的课程
|
||||||
<span style="font-weight:normal;font-size:12px;color:#FF5722;">(<%=@user.courses.count%>)</span>
|
<span style="font-weight:normal;font-size:12px;color:#FF5722;">(<%=@user.courses.count%>)</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="subNav">
|
<div class="subNav">
|
||||||
<a href="<%=url_for(:controller => 'users', :action => 'user_projects',:id=>@user.id)%>" class=" f14 c_blue02">
|
<a href="<%=url_for(:controller => 'users', :action => 'user_projectlist',:id=>@user.id)%>" class=" f14 c_blue02">
|
||||||
我的项目
|
我的项目
|
||||||
<span style="font-weight:normal;font-size:12px;color:#FF5722;">(<%=@user.projects.count%>)</span>
|
<span style="font-weight:normal;font-size:12px;color:#FF5722;">(<%=@user.projects.count%>)</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<% if @polls.empty? %>
|
<% if @polls.empty? %>
|
||||||
alert('您目前还没有自己新建的问卷');
|
alert('您目前其他课程无问卷可导入');
|
||||||
<% else %>
|
<% else %>
|
||||||
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>');
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'other_poll',:locals => {:polls => @polls,:polls_group_id=>@polls_group_id}) %>');
|
||||||
|
|
||||||
|
|
|
@ -50,5 +50,5 @@ function checkMaxLength() {
|
||||||
<% html_title(l(:label_project_tool_response)) -%>
|
<% html_title(l(:label_project_tool_response)) -%>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
|
@ -1,4 +1,4 @@
|
||||||
<%= render :partial => "pull_requests/pull_request_container" %>
|
<%#= render :partial => "pull_requests/pull_request_container" %>
|
||||||
<ul id="mergeBanner" class="project-merge-banner">
|
<ul id="mergeBanner" class="project-merge-banner">
|
||||||
<li class="active"><%= link_to "待处理<span class='project-number-dot'>#{@requests_opened_count}</span>".html_safe, project_pull_requests_path(:type => "1"), :remote => true %></li>
|
<li class="active"><%= link_to "待处理<span class='project-number-dot'>#{@requests_opened_count}</span>".html_safe, project_pull_requests_path(:type => "1"), :remote => true %></li>
|
||||||
<li><%= link_to "已处理<span class='project-number-dot'>#{@requests_merged_count}</span>".html_safe, project_pull_requests_path(:type => "2"), :remote => true %></li>
|
<li><%= link_to "已处理<span class='project-number-dot'>#{@requests_merged_count}</span>".html_safe, project_pull_requests_path(:type => "2"), :remote => true %></li>
|
||||||
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#mergeBanner").parent().css("width","730px");
|
$("#mergeBanner").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
|
$("#mergeBanner").parent().before("<div class='homepageRightBanner mb10'><span class='f16 fontGrey3'>Pull Request</span></div>");
|
||||||
|
|
||||||
$(".project-merge-banner li").click(function(){
|
$(".project-merge-banner li").click(function(){
|
||||||
$(".project-merge-banner li").removeClass("active");
|
$(".project-merge-banner li").removeClass("active");
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -94,5 +94,5 @@
|
||||||
<% html_title(l(:label_repository)) -%>
|
<% html_title(l(:label_repository)) -%>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -74,5 +74,5 @@
|
||||||
<%= context_menu issues_context_menu_path %>
|
<%= context_menu issues_context_menu_path %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -68,5 +68,5 @@
|
||||||
<% html_title @page.pretty_title %>
|
<% html_title @page.pretty_title %>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -95,6 +95,6 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$("#RSide").css("width","730px");
|
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
|
@ -564,7 +564,7 @@ a:hover.upload_btn_grey{background:#8a8a8a;}
|
||||||
.sy_class_infobox{
|
.sy_class_infobox{
|
||||||
padding:15px;
|
padding:15px;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
margin:12px auto 0;
|
margin:0px auto ;
|
||||||
width:968px;
|
width:968px;
|
||||||
border:1px solid #e5e5e5;
|
border:1px solid #e5e5e5;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
Loading…
Reference in New Issue