OSDN Git Service

Slight changes to the search results.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 May 2008 20:45:53 +0000 (20:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 20 May 2008 20:45:53 +0000 (20:45 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1440 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/search/index.rhtml
public/images/projects.png
public/stylesheets/application.css

index 44d024b..b5cea46 100644 (file)
@@ -23,7 +23,7 @@
     <dl id="search-results">\r
       <% @results.each do |e| %>\r
         <dt class="<%= e.event_type %>"><%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(e.event_title, 255), @tokens), e.event_url %></dt>\r
-        <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span><br />\r
+        <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>\r
         <span class="author"><%= format_time(e.event_datetime) %></span><dd>\r
       <% end %>\r
     </dl>\r
index 244c896..073c721 100644 (file)
Binary files a/public/images/projects.png and b/public/images/projects.png differ
index 9a02013..2467fd3 100644 (file)
@@ -179,6 +179,7 @@ div#activity dt .time { color: #777; font-size: 80%; }
 div#activity dd .description, #search-results dd .description { font-style: italic; }
 div#activity span.project:after, #search-results span.project:after { content: " -"; }
 #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px;}
+#search-results dd span.description { display:block; }
 
 dt.issue { background-image: url(../images/ticket.png); }
 dt.issue-edit { background-image: url(../images/ticket_edit.png); }
@@ -190,6 +191,7 @@ dt.reply { background-image: url(../images/comments.png); }
 dt.wiki-page { background-image: url(../images/wiki_edit.png); }
 dt.attachment { background-image: url(../images/attachment.png); }
 dt.document { background-image: url(../images/document.png); }
+dt.project { background-image: url(../images/projects.png); }
 
 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }