diff options
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> |