diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-05 21:32:22 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-05 21:32:22 +0000 |
commit | cc50cfc3248869ead8fe1100cb0e897d5a1d618c (patch) | |
tree | 91b7ed918a411b0dc509953566da777d8f20c3d2 /app/views/common | |
parent | ed866a45c56860da9ca4632a8bf2f8be23956c61 (diff) | |
download | redmine-cc50cfc3248869ead8fe1100cb0e897d5a1d618c.tar.gz redmine-cc50cfc3248869ead8fe1100cb0e897d5a1d618c.zip |
Replaces icons in calendar view with SVG icons (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23024 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_calendar.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/common/_calendar.html.erb b/app/views/common/_calendar.html.erb index 533ed2c4d..e1b202333 100644 --- a/app/views/common/_calendar.html.erb +++ b/app/views/common/_calendar.html.erb @@ -16,14 +16,20 @@ </p> <% calendar.events_on(day).each do |i| %> <% if i.is_a? Issue %> - <%= tag.div class: [ i.css_classes, 'tooltip hascontextmenu', starting: day == i.start_date, ending: day == i.due_date] do %> + <% starting = day == i.start_date %> + <% ending = day == i.due_date %> + <%= tag.div class: [ i.css_classes, 'tooltip hascontextmenu', starting: starting, ending: ending] do %> <%= "#{i.project} -" unless @project && @project == i.project %> + <%= sprite_icon('bullet-go') if starting && starting != ending %> + <%= sprite_icon('bullet-end') if ending && starting != ending %> + <%= sprite_icon('bullet-go-end') if starting && ending %> <%= link_to_issue i, :truncate => 30 %> <span class="tip"><%= render_issue_tooltip i %></span> <%= check_box_tag 'ids[]', i.id, false, :style => 'display:none;', :id => nil %> <% end %> <% else %> <span class="icon icon-package"> + <%= sprite_icon 'package' %> <%= "#{i.project} -" unless @project && @project == i.project %> <%= link_to_version i %> </span> |