diff --git a/app/views/apps/show.html.haml b/app/views/apps/show.html.haml
index 31f1320..850332d 100644
--- a/app/views/apps/show.html.haml
+++ b/app/views/apps/show.html.haml
@@ -88,8 +88,7 @@
- if app.problems.any?
%h3.clear=t('.errors')
%section
- = form_tag search_problems_path(:all_errs => all_errs, :app_id => app.id), :method => :get, :remote => true do
- = text_field_tag :search, params[:search], :placeholder => t('.search_placeholder')
+ = render 'problems/search', :all_errs => @all_errs, :app_id => app.id
%br
%section
.problem_table{:id => 'problem_table'}
diff --git a/app/views/problems/_search.html.haml b/app/views/problems/_search.html.haml
new file mode 100644
index 0000000..d9bada2
--- /dev/null
+++ b/app/views/problems/_search.html.haml
@@ -0,0 +1,2 @@
+= form_tag search_problems_path(:all_errs => all_errs, :app_id => app_id), :method => :get, :remote => true do
+ = text_field_tag :search, params[:search], :placeholder => t('.search_placeholder')
diff --git a/app/views/problems/index.html.haml b/app/views/problems/index.html.haml
index d20402f..3a4c369 100644
--- a/app/views/problems/index.html.haml
+++ b/app/views/problems/index.html.haml
@@ -9,8 +9,7 @@
= link_to 'show resolved', problems_path(:all_errs => true), :class => 'button'
%section
- = form_tag search_problems_path(:all_errs => @all_errs), :method => :get, :remote => true do
- = text_field_tag :search, params[:search], :placeholder => 'Search for issues'
+ = render 'problems/search', :all_errs => @all_errs, :app_id => nil
%br
%section
#problem_table.problem_table
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 521e5a7..ec6438f 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -77,6 +77,8 @@ en:
merge: "Merge select issues? They can be unmerged later."
unmerge: "Unmerge selected issues? They can be re-merged later."
unresolve: "Unresolve selected issues? They can be resolved again later."
+ search:
+ search_placeholder: 'Search for issues'
comments:
confirm_delete: "Permanently delete this comment?"
@@ -118,7 +120,6 @@ en:
no_watcher: "Sadly, no one is watching this app"
repository: Repository
revision: Revision
- search_placeholder: 'Search for issues'
show_hide: "(show/hide)"
unresolved_errs: unresolved errs
unwatch: unwatch
--
libgit2 0.21.2