Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5444 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-04-12 19:37:56 +00:00
parent ffd0a9c72c
commit b344456b6f
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<div class="contextual">
<% if authorize_for('issue_relations', 'new') %>
<% if User.current.allowed_to?(:manage_issue_relations, @project) %>
<%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>
<% end %>
</div>

View File

@ -73,7 +73,7 @@
</div>
<% end %>
<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %>
<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
<hr />
<div id="relations">
<%= render :partial => 'relations' %>