From 5368d6755e56327392717f27cea82b948e0c0a90 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 26 Oct 2016 19:11:50 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8F=AF=E4=BE=9B=E6=98=BE=E7=A4=BA=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/issues/index.html.erb | 189 +--------------------- app/views/projects/_no_data.html.erb | 4 + app/views/pull_requests/index.html.erb | 6 +- public/images/new_project/icons_smile.png | Bin 0 -> 24421 bytes public/stylesheets/css/project.css | 6 +- 5 files changed, 11 insertions(+), 194 deletions(-) create mode 100644 app/views/projects/_no_data.html.erb create mode 100644 public/images/new_project/icons_smile.png diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index a7d7711eb..4e43514e8 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -310,7 +310,7 @@ <% end %> <% end %> <% if @issues.empty? %> -

<%= l(:label_no_data) %>

+

<%= l(:label_no_data) %>

<% else %>
<%= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %> @@ -331,190 +331,3 @@
- - - - - - - - - - - - - - - - -
-
- - <% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %> - <%= form_tag({:controller => 'issues', :action => 'index', :project_id => @project},:remote=>'xls', :method => :get,:id=>"issue_query_form", :class => 'query_form') do %> - <%= hidden_field_tag 'set_filter', '1' %> - <%= hidden_field_tag 'export_issue_hidden', '0' %> - -
- - 清除 - -
- - - <%= calendar_for('issue_create_date_end_show')%> -
-
- - - <%= calendar_for('issue_create_date_start_show')%> -
- - -
- -
-
    -
  • - 所有 - <%= render :partial => "issues/issue_filter_all" %> -
  • - -
    - - -
- - -
-
- - <%= select(:issue, :tracker, [["缺陷",1],["功能",2],["支持",3],["任务",4],["周报",5]].unshift(["类型",0]), - {:include_blank => false, :selected => @tracker_id ? @tracker_id : 0}, - {:onchange => "remote_function();", :id => "tracker_id", :name => "tracker_id", :class => "fl issues_filter_select_min"}) %> - - <%#= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]), - { :include_blank => false,:selected=>@author_id ? @author_id : 0}, - {:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:class=>"fl "} - ) - %> - - <%= select( :issue, :user_id, principals_options_for_isuue_list(@project), - { :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0 - }, - {:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"fl"} - ) - %> - <%= select(:issue, :fixed_version, options_for_version_isuue_list(@project), - {:include_blank => false, :selected => @fixed_version_id ? @fixed_version_id : 0}, - {:onchange => "remote_function();", :id => "fixed_version_id", :name => "fixed_version_id", :class => "fl"}) %> - - <%= select( :issue,:status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]), - { :include_blank => false,:selected=>@status_id ? @status_id : 0 - }, - {:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"fl issues_filter_select_min"} - ) - %> - <%#= select( :issue,:prior, [["低",1],["正常",2],["高",3],["紧急",4],["立刻",5]].unshift(["优先级",0]), - { :include_blank => false,:selected=>@priority_id ? @priority_id : 0 - }, - {:onchange=>"remote_function();",:id=>"priority_id",:name=>"priority_id",:class=>"fl"} - ) - %> - - <%#= select(:issue, :done_ratio, [["10%",1],["20%",2],["30%",3],["40%",4],["50%",5],["60%",6],["70%",7],["80%",8],["90%",9],["100%",10]].unshift(["完成度",0]), - {:include_blank => false, :selected => @done_ratio ? @done_ratio : 0 }, - {:onchange => "remote_function();", :id => "done_ratio", :name => "done_ratio", :class => "f1"}) %> - <%= select( :issue,:done_ratio, ((0..10).to_a.collect { |r| ["#{r*10} %", r*10] }).unshift(["完成度",-1]), - {:include_blank => false, :selected => @done_ratio ? @done_ratio : -1}, - {:onchange=>"remote_function();",:id=>"done_ratio",:name=>"done_ratio",:class=>"fl"}) %> - - - <%#= select(:issue, :test, [["最新创建",1],["最早创建",2],["最近更新",3],["最早更新", 4]].unshift(["排序",0]), - {:include_blank => false, :selected => @order ? @order : 0 }, - {:onchange => "remote_function();", :id => "test", :name => "test", :class => "fr issues_filter_select_min"}) %> - - <%= select(:issue, :test, [["最新创建",1],["最早创建",2],["最近更新",3],["最早更新", 4]].unshift(["排序",0]), - {:include_blank => false, :selected => @test ? @test : 0 }, - {:onchange => "remote_function();", :id => "test", :name => "test", :class => "fr issues_filter_select_min"}) %> - - <%= select( :issue,:user_id, @project.members.order("lower(users.login)").map{|c| [c.name, c.user_id]}.unshift(["作者",0]), - { :include_blank => false,:selected=>@author_id ? @author_id : 0}, - {:onchange=>"remote_function();",:id=>"author_id",:name=>"author_id",:style=>"display:none;"} - ) - %> - - - - - - - <%#= select(:issue, :tracker_id, [["缺陷",1],["功能",2],["支持",3],["任务",4],["周报",5]].unshift(["类型",0]), - {:include_blank => false, :selected => @tracker_id ? @tracker_id : 0}, - {:onchange => "remote_function();", :id => "tracker_id", :name => "tracker_id", :class => "fl issues_filter_select_min"}) %> - <%#= select( :issue, :user_id, principals_options_for_isuue_list(@project), - { :include_blank => false,:selected=>@assign_to_id ? @assign_to_id : 0}, - {:onchange=>"remote_function();",:id=>"assigned_to_id",:name=>"assigned_to_id",:class=>"fl"}) - %> - - <%#= select(:issue, :fixed_version_id, options_for_version_isuue_list(@project), - {:include_blank => false, :selected => @fixed_version_id ? @fixed_version_id : 0}, - {:onchange => "remote_function();", :id => "fixed_version_id", :name => "fixed_version_id", :class => "f1"}) %> - - <%#= select( :issue, :status, [["新增",1],["正在解决",2],["已解决",3],["反馈",4],["关闭",5],["拒绝",6]].unshift(["状态",0]), - { :include_blank => false,:selected=>@status_id ? @status_id : 0 - }, - {:onchange=>"remote_function();",:id=>"status_id",:name=>"status_id",:class=>"fl issues_filter_select_min"} - ) %> - - <%#= select( :issue,:done_ratio, ((0..10).to_a.collect { |r| ["#{r*10} %", r*10] }), - {:include_blank => false, :selected => @done_ratio ? @done_ratio : 0}, - {:onchange=>"remote_function();",:id=>"done_ratio",:name=>"done_ratio",:class=>"fl"}) %> - - <%#= select(:issue, :done_ratio, [["10%",1],["20%",2],["30%",3],["40%",4],["50%",5],["60%",6],["70%",7],["80%",8],["90%",9],["10%",10]].unshift(["完成度",0]), - {:include_blank => false, :selected => @done_ratio ? @done_ratio : 0 }, - {:onchange => "remote_function();", :id => "done_ratio", :name => "done_ratio", :class => "f1"}) %> - - <%#= select(:issue, :test, [["最早创建",1],["最早更新",2]].unshift(["排序",0]), - {:include_blank => false, :selected => @order ? @order : 0 }, - {:onchange => "remote_function();", :id => "test", :name => "test", :class => "fr issues_filter_select_min"}) %> -
-
-
- <% end %> - <% end %> - <% if @issues.empty? %> -

<%= l(:label_no_data) %>

- <% else %> -
- <%= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %> -
- <% end %> - <%#= render :partial => 'issues/all_list', :locals => {:issues => @issues, :query => @query,:issue_pages=>@issue_pages,:issue_count=>@issue_count,:project=>@project,:subject=>@subject} %> -
- -
-
diff --git a/app/views/projects/_no_data.html.erb b/app/views/projects/_no_data.html.erb new file mode 100644 index 000000000..249a67af0 --- /dev/null +++ b/app/views/projects/_no_data.html.erb @@ -0,0 +1,4 @@ +
+
+

没有数据可供显示!

+
\ No newline at end of file diff --git a/app/views/pull_requests/index.html.erb b/app/views/pull_requests/index.html.erb index 6f0061577..2e10d6598 100644 --- a/app/views/pull_requests/index.html.erb +++ b/app/views/pull_requests/index.html.erb @@ -41,10 +41,6 @@ }); <% else %> -
-
- 版本库中还没有提交代码,请先提交代码 -
-
+ <%= render :partial => "projects/no_data" %> <% end %> diff --git a/public/images/new_project/icons_smile.png b/public/images/new_project/icons_smile.png new file mode 100644 index 0000000000000000000000000000000000000000..b760d82fc06de2b728f8e935bcb8e18c0a4e6905 GIT binary patch literal 24421 zcmeI42T+quxA+5y(wibkkqBY|Lwco#5C~GGH%kZskrGPih+w5CMNy7dQlpH#cx~<3oA0BEIVQPbUE!C5C>!APS#Kgz;kN1a@h8G(A z8u^0-g|@`JOg{j?8XZ%@bx1`SkSc15gIR@1eXD>1FYC%3*ed~mDKvcf*k>AIw1c&*9FUr$CatilERQAF z@-|G1HMp1^;2miZ&9Al(5FD?*qaFanumT7h*FI(g>awLmT1xw}_qrV`BC!C<>dron z(`kXPD>~aG=JRH%Z(!3vx$|{(vdDG;d(J`Wq_{+xwWMJ--3A^2Ky1GG!DozW^zh5U z{+IT{&XaE|(?2^+(WF&2P4|Ajf0A_-KtR87vTN_qP#c?DHA}u%sZ+K!pvw%fzjuB& zyqh!CimSJ+UuG{Po4xhFND>9VUtMK*0Rw z0Dv>4^HFN@EP%&xnJ)l<`>#Z8F2{=KR&f9T8mS?2`S>+F57y(F29q*e$EsWTY+|W`3H<^$A3!m@!+k+Yl;CD4pZ&>Bvdzg8#C>5FVq2=$Q-&;%W>H9rqy^erSiCHSJjt<{H6nQJ zILDr&0_Dz!qocJfbS(&%WyfW13f<)}=R9&0TE12K%w>a{vi?Hz6~4B(>(LgPIa^+D z+PEo2cF$J6wR_KyHuKe-9@OXBBpVIW=GJy1b(27u#+fQD0**<#TgIYYYMu{r+z8GA z#>Esy^G6$;{#f&Huy7r&GIT(fGkvpBW~|UoBvo~2)x`@i_4w2)yB=q!Jmt6&io0N? z?UL$k2sS>Ey%yn>Ap1CRJ)tfWl+oIh;OO8uw;w!0zsvdT$VOsZQ(TMFt2HCTBS+r) z@bDhzJyK1w-L}DLL%@bC(ZUVjc->3vPvYVqnLyfM;_(jW`Oni#E#%(G1q#R13Z2EB zH9H%0cKC{ksi&!GtKSuFldGouSNE75yrgMbVE7`N^XdAlt=W>M_p(u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dN!< literal 0 HcmV?d00001 diff --git a/public/stylesheets/css/project.css b/public/stylesheets/css/project.css index 342ac0730..2db68998d 100644 --- a/public/stylesheets/css/project.css +++ b/public/stylesheets/css/project.css @@ -1008,4 +1008,8 @@ textarea.muban_textarea{ width: 98.5%;border:1px solid #ddd; background:#fff; co .alert-blue{ background-color: #d9edf7;border-color: #bce8f1; color: #3a87ad;} .alert-orange{ background-color: #fff9e9;border-color: #f6d0b1; color:#ee4a20;} .close{padding: 0;cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; font-size: 21px; font-weight: bold;line-height: 1; color: #000000; text-shadow: 0 1px 0 #ffffff; opacity: 0.3;} -.close:hover{opacity: 0.5;} \ No newline at end of file +.close:hover{opacity: 0.5;} + +/* 课程大纲 */ +.icons_tishi{ width: 110px; height: 110px;margin: 135px auto 20px;} +.sy_tab_con_p{ font-size: 16px;text-align: center; margin-bottom:100px; color:#888;} \ No newline at end of file From 0e15ac00be5c1d14c02dd30c4eb50044f6f7058e Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 27 Oct 2016 09:27:48 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=8A=A8=E6=80=81=E4=B8=AD=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E4=B8=BA=E7=A9=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/_project_issue_detail.html.erb | 4 +++- app/views/users/_project_issue_detail.html.erb | 4 +++- public/stylesheets/css/project.css | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/projects/_project_issue_detail.html.erb b/app/views/projects/_project_issue_detail.html.erb index 947178cb5..7c7d3f237 100644 --- a/app/views/projects/_project_issue_detail.html.erb +++ b/app/views/projects/_project_issue_detail.html.erb @@ -58,7 +58,9 @@

  •  指派  : 

    - <%= link_to activity.try(:assigned_to).show_name, user_path(activity.assigned_to_id), :class => "linkBlue hidden", :style => "max-width:100px; display:inline-block;" %> + <% unless activity.assigned_to.nil? %> + <%= link_to activity.try(:assigned_to).show_name, user_path(activity.assigned_to_id), :class => "linkBlue hidden", :style => "max-width:100px; display:inline-block;" %> + <% end %>
    <%= select( :issue, :user_id, principals_options_for_isuue_list(activity.project), { :include_blank => false,:selected => @assign_to_id ? @assign_to_id : 0}, diff --git a/app/views/users/_project_issue_detail.html.erb b/app/views/users/_project_issue_detail.html.erb index 81df1500b..cb160c3b5 100644 --- a/app/views/users/_project_issue_detail.html.erb +++ b/app/views/users/_project_issue_detail.html.erb @@ -62,7 +62,9 @@
  •  指派  : 

    - <%= link_to activity.try(:assigned_to).show_name, user_path(activity.assigned_to_id), :class => "linkBlue hidden", :style => "max-width:100px; display:inline-block;" %> + <% unless activity.assigned_to.nil? %> + <%= link_to activity.try(:assigned_to).show_name, user_path(activity.assigned_to_id), :class => "linkBlue hidden", :style => "max-width:100px; display:inline-block;" %> + <% end %> <%= select( :issue, :user_id, principals_options_for_isuue_list(activity.project), { :include_blank => false,:selected => @assign_to_id ? @assign_to_id : 0}, diff --git a/public/stylesheets/css/project.css b/public/stylesheets/css/project.css index 2db68998d..615379597 100644 --- a/public/stylesheets/css/project.css +++ b/public/stylesheets/css/project.css @@ -877,6 +877,8 @@ a:hover.btn_newpro_grey,a:active.btn_newpro_grey{ background: #eaeaea;} .sy_new_table thead tr td{ border-bottom:1px solid #e5e5e5; font-weight: bold; background-image: linear-gradient(#fcfcfc, #eee);} .sy_new_table tbody tr:hover{ background:#f5f5f5;} .sy_new_table tbody tr td{ height:40px; line-height:40px; border-bottom:1px solid #e5e5e5; color:#888;} +.table-td-w180{display:inline-block;with:180px; overflow:hidden; text-overflow:ellipsis; -o-text-overflow:ellipsis; white-space:nowrap;} +.table-td-w380{display:inline-block;with:380px; overflow:hidden; text-overflow:ellipsis; -o-text-overflow:ellipsis; white-space:nowrap;} /*项目简介*/ .pro_new_info{ border:1px solid #ddd; background-color:#fff; width: 998px;} .pro_new_info h2{ background: #eee; font-size: 14px; color: #333; height: 40px; line-height: 40px; padding-left: 15px;} From 2823ea4182d8f24526b88894c0f4a7398f2437d0 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 27 Oct 2016 09:44:20 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=88=90=E5=91=98?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=92=8C=E5=85=B3=E6=B3=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A2=9E=E5=AE=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/_project_member_list.html.erb | 2 +- app/views/projects/member.html.erb | 29 +++++------ app/views/projects/watcherlist.html.erb | 52 +++++++++---------- 3 files changed, 39 insertions(+), 44 deletions(-) diff --git a/app/views/projects/_project_member_list.html.erb b/app/views/projects/_project_member_list.html.erb index 7bdac2ba4..eb2573d03 100644 --- a/app/views/projects/_project_member_list.html.erb +++ b/app/views/projects/_project_member_list.html.erb @@ -1,4 +1,4 @@ -
    +
    加入时间
    diff --git a/app/views/projects/member.html.erb b/app/views/projects/member.html.erb index 12944e1f5..e24dab160 100644 --- a/app/views/projects/member.html.erb +++ b/app/views/projects/member.html.erb @@ -1,17 +1,14 @@ -
    -

    <%= @subPage_title %>

    - <% if is_project_manager?(User.current, @project) %> - - <%=link_to "成员管理", :controller => 'projects', :action => 'settings', :id => @project.id, :tab => 'members' %> - - <% end %> +
    +
    +

    <%= @subPage_title %>

    + <% if is_project_manager?(User.current, @project) %> + + <%=link_to "成员管理", :controller => 'projects', :action => 'settings', :id => @project.id, :tab => 'members' %> + + <% end %> +
    +
    + <%= error_messages_for 'member' %> + <%= render :partial => @render_file, :locals => {:members => @members} %> +
    -
    - <%= error_messages_for 'member' %> - <%= render :partial => @render_file, :locals => {:members => @members} %> -
    - - - diff --git a/app/views/projects/watcherlist.html.erb b/app/views/projects/watcherlist.html.erb index a8a948a11..effef316b 100644 --- a/app/views/projects/watcherlist.html.erb +++ b/app/views/projects/watcherlist.html.erb @@ -1,30 +1,28 @@ -
    -

    <%= l(:label_user_watcher)%>

    -
    -
    -
    - 加入时间 -
    +
    +
    +

    <%= l(:label_user_watcher)%>

    +
    +
    +
    + 加入时间 +
    + + <% for user in @project.watcher_users %> +
    + + <%= user.nil? ? '' : (image_tag(url_to_avatar(user), :width => 32, :height => 32)) %> + + <%= l(:label_username)%> + <%= link_to(user.name, user_path(user),:class => "ml10 c_blue02") %> + <%= format_date(user.created_on) %> +
    +
    + <% end%> + - <% for user in @project.watcher_users %> -
    - - <%= user.nil? ? '' : (image_tag(url_to_avatar(user), :width => 32, :height => 32)) %> - - <%= l(:label_username)%> - <%= link_to(user.name, user_path(user),:class => "ml10 c_blue02") %> - <%= format_date(user.created_on) %> -
    - <% end%> +
    +
    - -
    -
    -
    - -<% html_title(l(:label_followers)) -%> - - \ No newline at end of file + <% html_title(l(:label_followers)) -%> +
    \ No newline at end of file From e3fc304d35c0cd3df9b1594a4bca2c5f8148890c Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 27 Oct 2016 10:06:58 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=9B=9E=E5=A4=8D=E6=A0=8F=E5=B1=95=E5=BC=80=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=9B=9E=E5=A4=8D=E6=A1=86=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projects/_project_reply_banner.html.erb | 12 +++---- app/views/users/all_journals.js.erb | 4 +++ public/javascripts/application.js | 35 +++++++++++++++++++ 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/app/views/projects/_project_reply_banner.html.erb b/app/views/projects/_project_reply_banner.html.erb index 6efbf9fda..682c37a29 100644 --- a/app/views/projects/_project_reply_banner.html.erb +++ b/app/views/projects/_project_reply_banner.html.erb @@ -10,20 +10,16 @@
    <%#= format_date(activity.updated_on) %>
    <%if count>3 %>
    - <% if activity.class.to_s == 'HomeworkCommon' %> - + <% if activity.class.to_s == 'Issue' %> + 展开更多 <% elsif activity.class.to_s == 'Message' %> - - 展开更多 - - <% elsif activity.class.to_s == 'BlogComment' %> - + 展开更多 <% else %> - + 展开更多 <% end %> diff --git a/app/views/users/all_journals.js.erb b/app/views/users/all_journals.js.erb index 7060a7b1c..03079c96a 100644 --- a/app/views/users/all_journals.js.erb +++ b/app/views/users/all_journals.js.erb @@ -10,4 +10,8 @@ $('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :p $('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/message_replies', :locals => {:comments => @journals, :user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i}) %>'); <% elsif params[:type] == 'News' || params[:type] == 'Issue' || params[:type] == 'Syllabus' %> $('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'users/news_replies', :locals => {:comments => @journals, :user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i}) %>'); +<% elsif params[:type] == 'is_project_issue' %> +$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'projects/project_issue_reply', :locals => {:comments => @journals, :user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i}) %>'); +<% elsif params[:type] == 'is_project_message' %> +$('#reply_div_<%= params[:div_id].to_i %>').html('<%=escape_javascript(render :partial => 'projects/project_message_replies', :locals => {:comments => @journals,:user_activity_id => @user_activity_id, :type => @type, :activity_id => params[:id].to_i,:is_course => @is_course, :is_board => @is_board}) %>'); <% end %> diff --git a/public/javascripts/application.js b/public/javascripts/application.js index cd28689d6..440a090f9 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -1495,6 +1495,41 @@ function expand_reply_homework(container, btnid, id, type, div_id, hw_status, us } } +// 项目中展开 +function expand_reply_project_acts(container, btnid, id, type, div_id, hw_status, user_activity_id) { + var target = $(container); + var btn = $(btnid); + if (btn.data('init') == '0') { + btn.data('init', 1); + $.get( + '/users/all_journals', + { + type: type, + id: id, + div_id: div_id, + hw_status: hw_status, + user_activity_id: user_activity_id + }, + function(data) { + } + ); + btn.html('收起回复'); + //target.show(); + } else if(btn.data('init') == '1') { + btn.data('init', 3); + btn.html('展开更多'); + target.hide(); + target.eq(0).show(); + target.eq(1).show(); + target.eq(2).show(); + } + else { + btn.data('init', 1); + btn.html('收起回复'); + target.show(); + } +} + //by yk 列表描述将文字和起来去掉空格多于100就显示省略号 function description_showwords_ellipsis(id,num){ var str = ""; From 03bfbf777a678e80692ccc08f26f5e9d4afa4cff Mon Sep 17 00:00:00 2001 From: huang Date: Thu, 27 Oct 2016 10:10:06 +0800 Subject: [PATCH 5/6] =?UTF-8?q?pull=20request=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pull_requests/_show.html.erb | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/app/views/pull_requests/_show.html.erb b/app/views/pull_requests/_show.html.erb index 710ebbfdf..a7dbc91f1 100644 --- a/app/views/pull_requests/_show.html.erb +++ b/app/views/pull_requests/_show.html.erb @@ -25,9 +25,24 @@
    -
    - 在管理员接受后,将由系统自动合并。<%= link_to "接受", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "linkBlue2", :remote => true %> -
    + +<% if @request.state == "merged" %> +
    + 改动已合并至 <%= @request.target_branch %> 分支 +
    +<% else %> + <% if is_project_manager?(User.current.id, @project.id) %> + <% if @request.state == "closed" %> + 该请求已被关闭 + <% else %> +
    + 在管理员接受后,将由系统自动合并。<%= link_to "接受", accept_pull_request_project_pull_request_path(@request.id, :project_id => @project.id), :class => "linkBlue2", :remote => true %> +
    + <% end %> + <% end %> +<% end %> + +
      From e035316cc7bf79576f8d4898db49e3b5302946c3 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 27 Oct 2016 10:53:01 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E9=87=8C=E7=A8=8B=E7=A2=91=EF=BC=8C?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93table=E5=AE=BD=E5=BA=A6=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/_new_repositories.html.erb | 12 +++++----- .../projects/settings/_new_versions.html.erb | 22 +++++++++---------- public/stylesheets/css/common.css | 3 +-- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/app/views/projects/settings/_new_repositories.html.erb b/app/views/projects/settings/_new_repositories.html.erb index 87c19976b..26daa46a2 100644 --- a/app/views/projects/settings/_new_repositories.html.erb +++ b/app/views/projects/settings/_new_repositories.html.erb @@ -34,16 +34,16 @@ - - - + + + - - - + + +
      diff --git a/app/views/projects/settings/_new_versions.html.erb b/app/views/projects/settings/_new_versions.html.erb index a67b2f91e..1bd59dcbb 100644 --- a/app/views/projects/settings/_new_versions.html.erb +++ b/app/views/projects/settings/_new_versions.html.erb @@ -11,23 +11,23 @@ - - - - - + + + + + <% @project.shared_versions.each do |version| %> - - - - - + + +
      名称结束日期描述状态操作名称结束日期描述状态操作
      - <%= 'shared' if version.project != @project %> <%= link_to_version version %> + <%= format_date(version.effective_date) %><%=h version.description %><%= l("version_status_#{version.status}") %> + <%= format_date(version.effective_date) %><%= l("version_status_#{version.status}") %> <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %> <%= link_to l(:button_edit), edit_version_path(version, :is_setting => true), :class => 'sy_btn_blue mr5', :remote => true %> <%= delete_link_version version_path(version, :is_setting => true), :class=>"sy_btn_grey mr5", :remote => true %> diff --git a/public/stylesheets/css/common.css b/public/stylesheets/css/common.css index b32ba32ae..7ba32756d 100644 --- a/public/stylesheets/css/common.css +++ b/public/stylesheets/css/common.css @@ -253,7 +253,7 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/ .w305{ width:305px;} .w350 {width:350px;} .w362 {width:362px;} -.h400{height: 400px !important;} +.h400{height:400px !important;} .w430{ width:430px;} .W440{ width:440px;} .w450 {width:450px;} @@ -271,7 +271,6 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/ .w607 {width:607px;} .w664{ width:664px;} .w683{ width:683px;} -.w350{ width:350px;} .w610{ width:610px;} .w600{ width:600px !important;} .w603{ width:603px !important;}