Defect #42023 » 0001-Replace-legacy-icons-on-search-results-pages-with-sv.patch
app/assets/images/icons.svg | ||
---|---|---|
275 | 275 |
<path d="M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"/> |
276 | 276 |
<path d="M8 11v-4a4 4 0 1 1 8 0v4"/> |
277 | 277 |
</symbol> |
278 |
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--message"> |
|
279 |
<path d="M8 9h8"/> |
|
280 |
<path d="M8 13h6"/> |
|
281 |
<path d="M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"/> |
|
282 |
</symbol> |
|
278 | 283 |
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--move"> |
279 | 284 |
<path d="M15 14l4 -4l-4 -4"/> |
280 | 285 |
<path d="M19 10h-11a4 4 0 1 0 0 8h1"/> |
... | ... | |
295 | 300 |
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--plugins"> |
296 | 301 |
<path d="M4 7h3a1 1 0 0 0 1 -1v-1a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0 -1 1v3a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-1a2 2 0 0 0 -4 0v1a1 1 0 0 1 -1 1h-3a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1h1a2 2 0 0 0 0 -4h-1a1 1 0 0 1 -1 -1v-3a1 1 0 0 1 1 -1"/> |
297 | 302 |
</symbol> |
303 |
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--project"> |
|
304 |
<path d="M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3z"/> |
|
305 |
<path d="M2 13.5v5.5l5 3"/> |
|
306 |
<path d="M7 16.545l5 -3.03"/> |
|
307 |
<path d="M17 16.5l-5 -3l5 -3l5 3v5.5l-5 3z"/> |
|
308 |
<path d="M12 19l5 3"/> |
|
309 |
<path d="M17 16.5l5 -3"/> |
|
310 |
<path d="M12 13.5v-5.5l-5 -3l5 -3l5 3v5.5"/> |
|
311 |
<path d="M7 5.03v5.455"/> |
|
312 |
<path d="M12 8l5 -3"/> |
|
313 |
</symbol> |
|
298 | 314 |
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--projects"> |
299 | 315 |
<path d="M7 16.5l-5 -3l5 -3l5 3v5.5l-5 3z"/> |
300 | 316 |
<path d="M2 13.5v5.5l5 3"/> |
app/assets/stylesheets/application.css | ||
---|---|---|
1847 | 1847 |
.open .icon-folder:not(:has(svg)) { background-image: url(/folder_open.png); } |
1848 | 1848 |
.icon-package:not(:has(svg)) { background-image: url(/package.png); } |
1849 | 1849 |
.icon-user:not(:has(svg)) { background-image: url(/user.png); } |
1850 |
.icon-project, .icon-projects:not(:has(svg)) { background-image: url(/projects.png); } |
|
1850 |
.icon-project:not(:has(svg)), .icon-projects:not(:has(svg)) { background-image: url(/projects.png); }
|
|
1851 | 1851 |
.icon-help:not(:has(svg)) { background-image: url(/help.png); } |
1852 | 1852 |
.icon-attachment:not(:has(svg)) { background-image: url(/attachment.png); } |
1853 | 1853 |
.icon-history:not(:has(svg)) { background-image: url(/history.png); } |
app/views/search/index.html.erb | ||
---|---|---|
51 | 51 |
<h3><%= l(:label_result_plural) %> (<%= @result_count %>)</h3> |
52 | 52 |
<% if @result_count_by_type['issues'].to_i > 0 && @search_attachments == '0' %> |
53 | 53 |
<p class="buttons"> |
54 |
<%= link_to l(:button_apply_issues_filter), issues_filter_path(@question, projects_scope: params[:scope], all_words: @all_words, titles_only: @titles_only, open_issues: @open_issues), :class => 'icon icon-list' %>
|
|
54 |
<%= link_to sprite_icon('list', l(:button_apply_issues_filter)), issues_filter_path(@question, projects_scope: params[:scope], all_words: @all_words, titles_only: @titles_only, open_issues: @open_issues), :class => 'icon icon-list' %>
|
|
55 | 55 |
</p> |
56 | 56 |
<% end %> |
57 | 57 |
<dl id="search-results"> |
58 | 58 |
<% @results.each do |e| %> |
59 | 59 |
<dt class="<%= e.event_type %> icon icon-<%= e.event_type %>"> |
60 |
<%= sprite_icon(e.event_type) %> |
|
60 | 61 |
<%= content_tag('span', e.project, :class => 'project') unless @project == e.project %> |
61 | 62 |
<%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %> |
62 | 63 |
</dt> |
config/icon_source.yml | ||
---|---|---|
115 | 115 |
svg: refresh |
116 | 116 |
- name: projects |
117 | 117 |
svg: packages |
118 |
- name: project |
|
119 |
svg: packages |
|
118 | 120 |
- name: package |
119 | 121 |
svg: package |
120 | 122 |
- name: custom-fields |
... | ... | |
131 | 133 |
svg: message |
132 | 134 |
- name: comment |
133 | 135 |
svg: message |
136 |
- name: message |
|
137 |
svg: message |
|
134 | 138 |
- name: arrow-right |
135 | 139 |
svg: arrow-big-right |
136 | 140 |
- name: wiki-page |