diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-14 17:46:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-05-14 17:46:58 +0000 |
commit | 7b13b58a2f247bab702d00b2a061ce4844d66b68 (patch) | |
tree | 58f129b2d2bae1fce660f8d1d165d89eef9e9846 /app/views/search | |
parent | b11dd1f2130d058ff9770f7747c3c5f5a71193a6 (diff) | |
download | redmine-7b13b58a2f247bab702d00b2a061ce4844d66b68.tar.gz redmine-7b13b58a2f247bab702d00b2a061ce4844d66b68.zip |
Text search added on messages.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@533 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/index.rhtml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/search/index.rhtml b/app/views/search/index.rhtml index 110f81411..66b89743f 100644 --- a/app/views/search/index.rhtml +++ b/app/views/search/index.rhtml @@ -14,6 +14,9 @@ <% if @project.wiki %>
<%= check_box_tag 'scope[]', 'wiki', (@scope.include? 'wiki') %> <label><%= l(:label_wiki) %></label>
<% end %>
+ <% if @project.boards.any? %>
+ <%= check_box_tag 'scope[]', 'messages', (@scope.include? 'messages') %> <label><%= l(:label_message_plural) %></label>
+ <% end %>
<% else %>
<%= check_box_tag 'scope[]', 'projects', (@scope.include? 'projects') %> <label><%= l(:label_project_plural) %></label>
<% end %>
@@ -51,6 +54,10 @@ <%=l(:label_revision)%> <%= link_to h(e.revision), :controller => 'repositories', :action => 'revision', :id => @project, :rev => e.revision %><br />
<%= highlight_tokens(e.comments, @tokens) %><br />
<em><%= e.committer.blank? ? e.committer : "Anonymous" %>, <%= format_time(e.committed_on) %></em>
+ <% elsif e.is_a? Message %>
+ <%=h e.board.name %>: <%= link_to_message e %><br />
+ <%= highlight_tokens(e.content, @tokens) %><br />
+ <em><%= e.author ? e.author.name : "Anonymous" %>, <%= format_time(e.created_on) %></em>
<% end %>
</p></li>
<% end %>
|