05_use_regular_icons_in_search_results_v2.patch

Marius BALTEANU, 2016-11-18 18:50

Download (1.9 KB)

View differences:

app/views/search/index.html.erb
42 42
    <h3><%= l(:label_result_plural) %> (<%= @result_count %>)</h3>
43 43
    <dl id="search-results">
44 44
      <% @results.each do |e| %>
45
        <dt class="<%= e.event_type %>">
45
        <dt class="<%= e.event_type %> icon icon-<%= e.event_type.parameterize %>">
46 46
          <%= content_tag('span', e.project, :class => 'project') unless @project == e.project %>
47 47
          <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
48 48
        </dt>
public/stylesheets/application.css
422 422
div#activity dl, #search-results { margin-left: 2em; }
423 423
div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; }
424
#search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; }
425 424
div#activity dt.me .time { border-bottom: 1px solid #999; }
426 425
div#activity dt .time { color: #777; font-size: 80%; }
427 426
div#activity dd .description, #search-results dd .description { font-style: italic; }
......
438 437
div#search-results-counts ul { margin-top: 0.5em; }
439 438
div#search-results-counts  li { list-style-type:none; float: left; margin-left: 1em; }
440
#search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); }
441

  
442 439
div#roadmap .related-issues { margin-bottom: 1em; }
443 440
div#roadmap .related-issues td.checkbox { display: none; }
444 441
div#roadmap .wiki h1:first-child { display: none; }