issue commit 关联样式调整
This commit is contained in:
parent
4e854776d1
commit
e205a08573
|
@ -1,4 +1,4 @@
|
|||
<% if @issue_commit_ids %>
|
||||
<% unless @issue_commit_ids.blank? %>
|
||||
<% @issue_commit_ids.each do |commit_id| %>
|
||||
<div class="btn btn-blue mb5">
|
||||
<%= link_to commit_id[0,8], {:controller => 'repositories', :action => 'commit_diff', :id => @project.id, :changeset => commit_id}, :target => "_blank", :class => "commit_id_value" %>
|
||||
|
@ -13,6 +13,4 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div class="c_grey">暂无</div>
|
||||
<% end %>
|
|
@ -0,0 +1,20 @@
|
|||
<% if !@issue_commit_ids.blank? %>
|
||||
<span class="pro_new_conbox_leftspan mb5">关联Commit</span>
|
||||
<% @issue_commit_ids.each do |commit_id| %>
|
||||
<div class="btn btn-blue mb5">
|
||||
<%= link_to commit_id[0,8], {:controller => 'repositories', :action => 'commit_diff', :id => @project.id, :changeset => commit_id}, :target => "_blank", :class => "commit_id_value" %>
|
||||
<% if @issue %>
|
||||
<% if User.current.admin? || is_project_manager?(User.current.id, @project.id) || User.current.id == @issue.author_id %>
|
||||
<%= link_to "×", issue_commit_delete_issues_path(:commit_id => commit_id, :project_id => @project.id, :issue_commit_ids => @issue_commit_ids, :issue_id => @issue.try(:id)), :remote => true, :style => "color:#fff;" %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<% if User.current.member_of?(@project) %>
|
||||
<%= link_to "×", issue_commit_delete_issues_path(:commit_id => commit_id, :project_id => @project.id, :issue_commit_ids => @issue_commit_ids, :issue_id => @issue.try(:id)), :remote => true, :style => "color:#fff;" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<span class="pro_new_conbox_leftspan mb5 fl">关联Commit</span>
|
||||
<span class="pro_new_conbox_rightspan fl ml10">无</span>
|
||||
<% end %>
|
|
@ -74,10 +74,8 @@
|
|||
<span class="pro_new_conbox_rightspan fl ml10"><%= @issue.done_ratio %>%</span>
|
||||
</li>
|
||||
<% end %>
|
||||
<li class="clear"><span class="pro_new_conbox_leftspan mb5">关联Commit</span>
|
||||
<div id="issue_commit_ids">
|
||||
<%= render :partial => "issues/issue_commit_ids" %>
|
||||
</div>
|
||||
<li class="clear">
|
||||
<%= render :partial => "issues/issue_commit_ids_show" %>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
|
|
Loading…
Reference in New Issue