From 733a91d160e995289f7491484e57fea8f33cceb7 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 21 Oct 2016 10:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=89=88pull=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/pull_requests/_form.html.erb | 86 ++++++++++++++------------ app/views/pull_requests/new.html.erb | 29 ++++++++- public/stylesheets/css/common.css | 1 + public/stylesheets/css/project.css | 41 +++++++++++- public/stylesheets/public.css | 1 + 5 files changed, 117 insertions(+), 41 deletions(-) diff --git a/app/views/pull_requests/_form.html.erb b/app/views/pull_requests/_form.html.erb index a276ea65c..a2a07d8c9 100644 --- a/app/views/pull_requests/_form.html.erb +++ b/app/views/pull_requests/_form.html.erb @@ -1,41 +1,51 @@ -<%= form_tag(url_for(:controller => 'pull_requests', :action => 'create', :project_id => @project.id, :forked_project_id => @forked_project.try(:gpid)), :id => 'pull_request_form', :method => "post", :remote => true) do %> -
-
*标题
- -
-
描述
- -
-
-
-
源分支
- <%= select_tag :branch, options_for_select(@source_rev), :id => "source_branch", :name => "source_branch", :value => "source_branch", :class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;" %> -
-
目标分支
- <% if @forked_project.nil? %> - <%= select_tag :branch, options_for_select(@source_rev), :id => "pull_request_branch", :name => "target_branch", :value => "target_branch",:class => "ml30 fontGrey3 fb fl", :style => "padding:5px 0 5px 5px;" %> - <% else %> - - + + + + <% end %> - - <% end %> - -
- -
-
-
- 提交请求 - <%= link_to "返回", project_pull_requests_path(:project_id => @project.id), :class => "fr linkGrey2 mt5 mr10" %> -
-
-<% end %> + + + +
  • + + +
  • + +
  • + + +
  • +
  • + <%= link_to "返回", project_pull_requests_path(:project_id => @project.id), :class => "btn btn-grey fr" %> + 确定 +
  • + + + <% end %> + diff --git a/public/stylesheets/css/common.css b/public/stylesheets/css/common.css index a70365283..f9f5fd18a 100644 --- a/public/stylesheets/css/common.css +++ b/public/stylesheets/css/common.css @@ -214,6 +214,7 @@ h4{ font-size:14px;}/*color:#3b3b3b;*/ .pl10 {padding-left:10px;} .pr5 {padding-right:5px;} .pr10{padding-right: 10px;} +.pl62 {padding-left: 62px;} .pl15{ padding-left:15px;} .pt5{ padding-top:5px;} .pt10{ padding-top:10px;} diff --git a/public/stylesheets/css/project.css b/public/stylesheets/css/project.css index 375f08196..3b43f807d 100644 --- a/public/stylesheets/css/project.css +++ b/public/stylesheets/css/project.css @@ -970,4 +970,43 @@ select.new_roadmap_select{border:1px solid #dbdbdb; color: #666;} .new_roadmap_table tbody tr td{ height:40px; line-height:40px; border-bottom:1px solid #e5e5e5; color:#888;} .new_roadmap_table td{ padding:0 5px;} /*模板图标20161020byLB*/ -.muban-icons-clock{ background: url("/images/new_project/icons_issue.png") 0 -224px no-repeat; display: inline-block; width: 19px; height: 13px;} \ No newline at end of file +.muban-icons-clock{ background: url("/images/new_project/icons_issue.png") 0 -224px no-repeat; display: inline-block; width: 19px; height: 13px;} + +/* pullreques 20161020byLB */ +.pullreques_category{ height: 35px; line-height: 35px;background: #f0f0f0; } +.pullreques span{ float: left;} +a.sortupbtn{ background: url(/images/sy/liststyle.png) 0 3px no-repeat;width:12px;height:17px; display:block; margin-right:10px; cursor:pointer;} +a.sortdownbtn{background: url(/images/sy/liststyle.png) 0 -12px no-repeat; width:12px; height:17px;display:block;cursor:pointer; } +.icons_pullreques{background: url(/images/project/icons_issue.png) 0 -270px no-repeat; display: inline-block; width: 25px; height: 25px;} +.pullreques_blueicon{ background: url(/images/project/icons_issue.png) 0 -299px no-repeat; display: inline-block; width: 43px; height: 16px;} +.pullreques_greyicon{ background: url(/images/project/icons_issue.png) 0 -322px no-repeat; display: inline-block; width: 43px; height: 16px;} +.pullreques_greyicon02{ background: url(/images/project/icons_issue.png) 0 -344px no-repeat; display: inline-block; width:32px; height: 16px;} +.pullreques_reply_textarea{ width: 100%; padding:0; height: 60px; color: #666;} +.pullreques_reply_list li{ padding:15px 0; border-top: 1px dashed #ddd; } +.pullreques_reply_user_img{ width:50px;height:50px; -webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px;} +a.pullreques_reply_name{ font-weight: bold; color: #333;} +.pullreques_reply_txt{ width: 900px;color: #666;} +.pullreques_pull_top { width: 100%; height: 40px; line-height: 40px; background: #f4f4f4; border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1;} +a.pullreques_pull_name{display: block; margin-left: 10px;max-width:80px; color:#3b94d6; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;} +.pullreques_pull_list li{ height: 30px; line-height: 30px; } +.pullreques_pull_txt{display: block; margin-left: 10px;max-width:740px; overflow:hidden;white-space: nowrap; text-overflow:ellipsis;} +.pullreques_change_list li{height: 40px; line-height: 40px;border-bottom:1px solid #e1e1e1; } +.pullreques_change_list li:last-child{ border-bottom: none;} +.pullreques_icons_add{background: url(/images/project/icons_issue.png) 0 -374px no-repeat; display: inline-block; width: 19px; height: 16px;} +.pullreques_icons_del{background: url(/images/project/icons_issue.png) 0 -399px no-repeat; display: inline-block; width: 19px; height: 16px;} +.pullreques_icons_new{background: url(/images/project/icons_issue.png) 0 -421px no-repeat; display: inline-block; width: 19px; height: 16px;} +.PullReques_minselect{border:1px solid #e1e1e1; height: 30px; line-height: 30px; width: 262px;color: #666;} +.PullReques_maxinput{ width:900px;border:1px solid #e1e1e1; height: 30px; line-height: 30px; color: #666;} +.PullReques_textarea{width:900px;border:1px solid #e1e1e1; height: 80px; line-height: 1.9; color: #666;} +.PullReques_new_box li{ height: 30px; line-height: 30px; color: #666;} +.PullReques_label{ width: 60px; text-align: right;} +.PullReques_new_box input:focus,select:focus{border:1px solid #e1e1e1;} + +/*模板form 20161013byLB*/ +textarea.muban_textarea{ width: 98.5%;border:1px solid #ddd; background:#fff; color:#666; padding:5px;} +/*提示条20161020byLB*/ +.alert{ padding:10px;border: 1px solid transparent; text-align: center;} +.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 diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css index 73387a095..1bf68d6c1 100644 --- a/public/stylesheets/public.css +++ b/public/stylesheets/public.css @@ -142,6 +142,7 @@ h4{ font-size:14px; } .mb20{ margin-bottom:20px;} .mb30 {margin-bottom:30px;} .mb40 {margin-bottom:40px;} +.pl62 {padding-left: 62px;} .pl10 {padding-left:10px;} .pl15{ padding-left:15px;} .pl5{ padding-left:5px;}