summaryrefslogtreecommitdiffstats
path: root/app/views/auto_completes
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-08-17 15:03:58 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-08-17 15:03:58 +0000
commit3eff27344b0bef7703ba248d0a2312bfca95c182 (patch)
treeeefbe2247a166db315bf278b75300a959df00936 /app/views/auto_completes
parente63acb70ca82d0c62476c92bbe815330ee01ad93 (diff)
downloadredmine-3eff27344b0bef7703ba248d0a2312bfca95c182.tar.gz
redmine-3eff27344b0bef7703ba248d0a2312bfca95c182.zip
Refactor: move IssuesController#auto_complete to a new controller. #4382
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3945 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/auto_completes')
-rw-r--r--app/views/auto_completes/issues.html.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/auto_completes/issues.html.erb b/app/views/auto_completes/issues.html.erb
new file mode 100644
index 000000000..b130159eb
--- /dev/null
+++ b/app/views/auto_completes/issues.html.erb
@@ -0,0 +1,9 @@
+<ul>
+<% if @issues.any? -%>
+ <% @issues.each do |issue| -%>
+ <%= content_tag 'li', h("#{issue.tracker} ##{issue.id}: #{issue.subject}"), :id => issue.id %>
+ <% end -%>
+<% else -%>
+ <%= content_tag("li", l(:label_none), :style => 'display:none') %>
+<% end -%>
+</ul>