##// END OF EJS Templates
Lists can be reordered with drag and drop (#12909)....
Lists can be reordered with drag and drop (#12909). git-svn-id: http://svn.redmine.org/redmine/trunk@15336 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14889:eaea4e9fee7e
r14954:42b5c332b2c2
Show More
_related_issues.html.erb
42 lines | 1.7 KiB | text/plain | TextLexer
/ app / views / repositories / _related_issues.html.erb
Jean-Philippe Lang
Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009)....
r8657 <% manage_allowed = User.current.allowed_to?(:manage_related_issues, @repository.project) %>
<div id="related-issues">
<% if manage_allowed %>
<div class="contextual">
<%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'issue_id'} %>
</div>
<% end %>
<h3><%= l(:label_related_issues) %></h3>
<ul>
<% @changeset.issues.visible.each do |issue| %>
<li id="<%= "related-issue-#{issue.id}" %>"><%= link_to_issue issue %>
Jean-Philippe Lang
Improve accessibility for icon-only links by adding hidden text (#21805)....
r14889 <%= link_to(l(:label_relation_delete),
Jean-Philippe Lang
Removes a call to link_to_remote....
r9843 {:controller => 'repositories', :action => 'remove_related_issue',
:id => @project, :repository_id => @repository.identifier_param,
:rev => @changeset.identifier, :issue_id => issue},
:remote => true,
:method => :delete,
:data => {:confirm => l(:text_are_you_sure)},
Jean-Philippe Lang
Replace uses of image_tag() with CSS (#21256)....
r14686 :title => l(:label_relation_delete),
:class => 'icon-only icon-link-break'
) if manage_allowed %>
Jean-Philippe Lang
Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009)....
r8657 </li>
<% end %>
</ul>
<% if manage_allowed %>
Jean-Philippe Lang
Fixed "First argument in form cannot contain nil or be empty" error (#18275)....
r13279 <%= form_tag({:controller => 'repositories', :action => 'add_related_issue',
Toshi MARUYAMA
code layout cleanup app/views/repositories/_related_issues.html.erb...
r8674 :id => @project, :repository_id => @repository.identifier_param,
:rev => @changeset.identifier},
Jean-Philippe Lang
Fixed "First argument in form cannot contain nil or be empty" error (#18275)....
r13279 :remote => true,
Jean-Philippe Lang
Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009)....
r8657 :method => :post,
Jean-Philippe Lang
Fixed "First argument in form cannot contain nil or be empty" error (#18275)....
r13279 :id => 'new-relation-form', :style => (@issue ? '' : 'display: none;')) do |f| %>
Jean-Philippe Lang
Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009)....
r8657 <%= l(:label_issue) %> #<%= text_field_tag 'issue_id', '', :size => 10 %>
<%= submit_tag l(:button_add) %>
<%= toggle_link l(:button_cancel), 'new-relation-form'%>
<% end %>
<% end %>
</div>
Jean-Philippe Lang
Adds autocomplete to "Related issue" field on revision (#11102)....
r9998
<%= javascript_tag "observeAutocompleteField('issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project, :scope => 'all')}')" %>