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)
1
<link rel="search" type="application/opensearchdescription+xml" href="<%= url_for :controller => 'opensearch', :action => 'index' %>"
2
      title="<%=h Setting.app_title %>" />
3
<% if @project -%>
4
<link rel="search" type="application/opensearchdescription+xml" href="<%= url_for :controller => 'opensearch', :action => 'index', :project_id => @project %>"
5
      title="<%=h Setting.app_title %> – <%=h @project.name %>" />
1
<% if User.current.logged? -%>
2
  <%= tag :link, :rel => 'search', :type => 'application/opensearchdescription+xml', :href => url_for(:controller => 'opensearch', :action => 'index'), :title => h(Setting.app_title) %>
3
  <% if @project -%>
4
    <%= 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}" %>
5
  <%- end %>
6 6
<%- end %>
    (1-1/1)