Project

General

Profile

RE: Opensearch compatibility for Redmine search » opensearch_fix_logged_out_issue_and_clean_up_code.patch

Jan from Planio www.plan.io, 2010-04-27 19:46

View differences:

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 %>
    (1-1/1)