RE: Opensearch compatibility for Redmine search » opensearch_fix_logged_out_issue_and_clean_up_code.patch
| app/views/hooks/opensearch/_view_layouts_base_html_head.rhtml (Arbeitskopie) | ||
|---|---|---|
|
<link rel="search" type="application/opensearchdescription+xml" href="<%= url_for :controller => 'opensearch', :action => 'index' %>"
|
||
|
title="<%=h Setting.app_title %>" />
|
||
|
<% if @project -%>
|
||
|
<link rel="search" type="application/opensearchdescription+xml" href="<%= url_for :controller => 'opensearch', :action => 'index', :project_id => @project %>"
|
||
|
title="<%=h Setting.app_title %> – <%=h @project.name %>" />
|
||
|
<% if User.current.logged? -%>
|
||
|
<%= tag :link, :rel => 'search', :type => 'application/opensearchdescription+xml', :href => url_for(:controller => 'opensearch', :action => 'index'), :title => h(Setting.app_title) %>
|
||
|
<% if @project -%>
|
||
|
<%= tag :link, :rel => 'search', :type => 'application/opensearchdescription+xml', :href => url_for(:controller => 'opensearch', :action => 'index', :project_id => @project), :title => "#{h Setting.app_title} - #{h @project.name}" %>
|
||
|
<%- end %>
|
||
|
<%- end %>
|
||