##// END OF EJS Templates
replace « and » at app/views/search/index.rhtml to hexadecimal UTF-8 strings (#4796)....
Toshi MARUYAMA -
r6293:9da89fd4db25
parent child
Show More
@@ -1,49 +1,51
1 <h2><%= l(:label_search) %></h2>
1 <h2><%= l(:label_search) %></h2>
2
2
3 <div class="box">
3 <div class="box">
4 <% form_tag({}, :method => :get) do %>
4 <% form_tag({}, :method => :get) do %>
5 <p><%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %>
5 <p><%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %>
6 <%= javascript_tag "Field.focus('search-input')" %>
6 <%= javascript_tag "Field.focus('search-input')" %>
7 <%= project_select_tag %>
7 <%= project_select_tag %>
8 <%= hidden_field_tag 'all_words', '', :id => nil %>
8 <%= hidden_field_tag 'all_words', '', :id => nil %>
9 <label><%= check_box_tag 'all_words', 1, @all_words %> <%= l(:label_all_words) %></label>
9 <label><%= check_box_tag 'all_words', 1, @all_words %> <%= l(:label_all_words) %></label>
10 <%= hidden_field_tag 'titles_only', '', :id => nil %>
10 <%= hidden_field_tag 'titles_only', '', :id => nil %>
11 <label><%= check_box_tag 'titles_only', 1, @titles_only %> <%= l(:label_search_titles_only) %></label>
11 <label><%= check_box_tag 'titles_only', 1, @titles_only %> <%= l(:label_search_titles_only) %></label>
12 </p>
12 </p>
13 <p>
13 <p>
14 <% @object_types.each do |t| %>
14 <% @object_types.each do |t| %>
15 <label><%= check_box_tag t, 1, @scope.include?(t) %> <%= type_label(t) %></label>
15 <label><%= check_box_tag t, 1, @scope.include?(t) %> <%= type_label(t) %></label>
16 <% end %>
16 <% end %>
17 </p>
17 </p>
18
18
19 <p><%= submit_tag l(:button_submit), :name => 'submit' %></p>
19 <p><%= submit_tag l(:button_submit), :name => 'submit' %></p>
20 <% end %>
20 <% end %>
21 </div>
21 </div>
22
22
23 <% if @results %>
23 <% if @results %>
24 <div id="search-results-counts">
24 <div id="search-results-counts">
25 <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %>
25 <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %>
26 </div>
26 </div>
27
27
28 <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3>
28 <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3>
29 <dl id="search-results">
29 <dl id="search-results">
30 <% @results.each do |e| %>
30 <% @results.each do |e| %>
31 <dt class="<%= e.event_type %>"><%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(h(e.event_title), :length => 255), @tokens), e.event_url %></dt>
31 <dt class="<%= e.event_type %>"><%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(h(e.event_title), :length => 255), @tokens), e.event_url %></dt>
32 <dd><span class="description"><%= highlight_tokens(h(e.event_description), @tokens) %></span>
32 <dd><span class="description"><%= highlight_tokens(h(e.event_description), @tokens) %></span>
33 <span class="author"><%= format_time(e.event_datetime) %></span></dd>
33 <span class="author"><%= format_time(e.event_datetime) %></span></dd>
34 <% end %>
34 <% end %>
35 </dl>
35 </dl>
36 <% end %>
36 <% end %>
37
37
38 <p><center>
38 <p><center>
39 <% if @pagination_previous_date %>
39 <% if @pagination_previous_date %>
40 <%= link_to_content_update('&#171; ' + l(:label_previous),
40 <%= link_to_content_update("\xc2\xab " + l(:label_previous),
41 params.merge(:previous => 1, :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>&nbsp;
41 params.merge(:previous => 1,
42 :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>&nbsp;
42 <% end %>
43 <% end %>
43 <% if @pagination_next_date %>
44 <% if @pagination_next_date %>
44 <%= link_to_content_update(l(:label_next) + ' &#187;',
45 <%= link_to_content_update(l(:label_next) + " \xc2\xbb",
45 params.merge(:previous => nil, :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>
46 params.merge(:previous => nil,
47 :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>
46 <% end %>
48 <% end %>
47 </center></p>
49 </center></p>
48
50
49 <% html_title(l(:label_search)) -%>
51 <% html_title(l(:label_search)) -%>
General Comments 0
You need to be logged in to leave comments. Login now