2012-02-17 11:13:54 +00:00
|
|
|
%p
|
2012-02-24 21:37:22 +00:00
|
|
|
- if @results.present?
|
2012-02-17 11:13:54 +00:00
|
|
|
- @results.each do |result|
|
|
|
|
- if action_name == 'search'
|
|
|
|
= link_to result[:name], project_wiki_path(@project, CGI.escape(result[:name]))
|
2012-02-24 21:37:22 +00:00
|
|
|
%span.count= "(#{result.count} #{t("wiki.matches")})"
|
2012-02-17 11:13:54 +00:00
|
|
|
-else
|
|
|
|
= link_to result.name, project_wiki_path(@project, CGI.escape(result.name))
|
|
|
|
%br
|
|
|
|
- else
|
|
|
|
%p#no-results
|
|
|
|
- @st_ref = capture do
|
|
|
|
%strong= @ref || @query
|
|
|
|
- if action_name == 'search'
|
2012-02-24 21:37:22 +00:00
|
|
|
= raw t("wiki.no_results_for_search", :query => @st_ref)
|
2012-02-17 11:13:54 +00:00
|
|
|
- else
|
2012-02-24 21:37:22 +00:00
|
|
|
= raw t("wiki.no_pages_in", :ref => @st_ref)
|
2012-01-18 15:06:58 +00:00
|
|
|
|
2012-02-24 21:37:22 +00:00
|
|
|
/ #footer
|
|
|
|
/ %ul.actions
|
|
|
|
/ %li.minibutton= link_to t("wiki.back_to_top"), '#wiki'
|