<% if @issue.description? %>
<%#= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
<%= textAreailizable @issue, :description, :attachments => @issue.attachments %>
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index de3f1d41f..b350c05c8 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -59,7 +59,7 @@
<% if params[:action] == "new" %>
+ <%= link_to "取消", issue_path(@issue), :class => "sy_btn_grey mr5 fr" %>
<% end %>
diff --git a/app/views/issues/_issue_commit_ids.html.erb b/app/views/issues/_issue_commit_ids.html.erb
index 745b8ebf9..5cd2b7e12 100644
--- a/app/views/issues/_issue_commit_ids.html.erb
+++ b/app/views/issues/_issue_commit_ids.html.erb
@@ -1,6 +1,6 @@
-<% if @issue_commit_ids %>
+<% unless @issue_commit_ids.blank? %>
<% @issue_commit_ids.each do |commit_id| %>
-
+
<%= 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 %>
@@ -13,6 +13,4 @@
<% end %>
<% end %>
-<% else %>
-
暂无
<% end %>
\ No newline at end of file
diff --git a/app/views/issues/_issue_commit_ids_show.html.erb b/app/views/issues/_issue_commit_ids_show.html.erb
new file mode 100644
index 000000000..4633c87ec
--- /dev/null
+++ b/app/views/issues/_issue_commit_ids_show.html.erb
@@ -0,0 +1,20 @@
+<% if !@issue_commit_ids.blank? %>
+
关联Commit
+ <% @issue_commit_ids.each do |commit_id| %>
+
+ <%= 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 %>
+
+ <% end %>
+<% else %>
+
关联Commit
+
无
+<% end %>
\ No newline at end of file
diff --git a/app/views/issues/_project_issue.html.erb b/app/views/issues/_project_issue.html.erb
index aa6d9d3fe..97f9945a5 100644
--- a/app/views/issues/_project_issue.html.erb
+++ b/app/views/issues/_project_issue.html.erb
@@ -73,7 +73,7 @@
<%= activity.journals.count %>
<% end %>
- <%= link_to "", issue_path(activity.id, :edit => 'true'), :class => 'sy_icons_edit fl mt15', :style => "margin-top:25px;", :accesskey => accesskey(:edit) if activity.editable? && User.current.allowed_to?(:edit_issues, activity.project) %>
+ <%= link_to "", edit_issue_path(activity.id), :class => 'sy_icons_edit fl mt15', :style => "margin-top:25px;", :accesskey => accesskey(:edit) if activity.editable? && User.current.allowed_to?(:edit_issues, activity.project) %>
<% if !defined?(project_id) && !defined?(user_id) %>
<%= link_to "", issue_path(activity.id), :data => {:confirm => issues_destroy_confirmation_message(activity)}, :method => :delete, :class => 'sy_icons_del fl mt15', :style => "margin-top:25px;" if User.current.allowed_to?(:delete_issues, activity.project) %>
<% elsif defined?(project_id) %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index eb25deda0..fbb3ac538 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -37,7 +37,7 @@