code layout cleanup app/views/repositories/_related_issues.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8794 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
d360ca4e14
commit
2ef86a2f0a
1 file changed
+6
-2
@@ -12,7 +12,9 @@
|
|||||||
<% @changeset.issues.visible.each do |issue| %>
|
<% @changeset.issues.visible.each do |issue| %>
|
||||||
<li id="<%= "related-issue-#{issue.id}" %>"><%= link_to_issue issue %>
|
<li id="<%= "related-issue-#{issue.id}" %>"><%= link_to_issue issue %>
|
||||||
<%= link_to_remote(image_tag('link_break.png'),
|
<%= link_to_remote(image_tag('link_break.png'),
|
||||||
{:url => {:controller => 'repositories', :action => 'remove_related_issue', :id => @project, :repository_id => @repository.identifier_param, :rev => @changeset.identifier, :issue_id => issue},
|
{:url => {:controller => 'repositories', :action => 'remove_related_issue',
|
||||||
|
:id => @project, :repository_id => @repository.identifier_param,
|
||||||
|
:rev => @changeset.identifier, :issue_id => issue},
|
||||||
:method => :delete,
|
:method => :delete,
|
||||||
}, :title => l(:label_relation_delete)) if manage_allowed %>
|
}, :title => l(:label_relation_delete)) if manage_allowed %>
|
||||||
|
|
||||||
@@ -22,7 +24,9 @@
|
|||||||
|
|
||||||
<% if manage_allowed %>
|
<% if manage_allowed %>
|
||||||
<% remote_form_for(:issue, @issue,
|
<% remote_form_for(:issue, @issue,
|
||||||
:url => {:controller => 'repositories', :action => 'add_related_issue', :id => @project, :repository_id => @repository.identifier_param, :rev => @changeset.identifier},
|
:url => {:controller => 'repositories', :action => 'add_related_issue',
|
||||||
|
:id => @project, :repository_id => @repository.identifier_param,
|
||||||
|
:rev => @changeset.identifier},
|
||||||
:method => :post,
|
:method => :post,
|
||||||
:complete => "Form.Element.focus('issue_id');",
|
:complete => "Form.Element.focus('issue_id');",
|
||||||
:html => {:id => 'new-relation-form', :style => (@issue ? '' : 'display: none;')}) do |f| %>
|
:html => {:id => 'new-relation-form', :style => (@issue ? '' : 'display: none;')}) do |f| %>
|
||||||
|
|||||||
Reference in new issue
Block a user