rosa-build/app/views/wiki/_results.html.haml

23 lines
765 B
Plaintext
Raw Normal View History

#results
- if @results and !@results.empty?
%ul
- @results.each do |result|
2012-01-19 12:10:50 +00:00
%li
- if action_name == 'search'
= link_to result[:name], project_wiki_path(@project, CGI.escape(result[:name]))
%span.count= "(#{result.count} #{t("layout.wiki.matches")})"
-else
= link_to result.name, project_wiki_path(@project, CGI.escape(result.name))
- else
%p#no-results
2012-01-19 12:10:50 +00:00
- @st_ref = capture do
%strong= @ref || @query
- if action_name == 'search'
= raw t("layout.wiki.no_results_for_search", :query => @st_ref)
- else
= raw t("layout.wiki.no_pages_in", :ref => @st_ref)
#footer
%ul.actions
%li.minibutton= link_to t("layout.wiki.back_to_top"), '#wiki'