summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-23 21:10:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-23 21:10:15 +0000
commit01dbba72ab273b0ed9b77e3b9f6c318f626009c4 (patch)
tree6b0d98b6bc63fd61b3cea5c23925054672518136 /app/views/common
parenta2537b39697c5b5001fd83166881e4feb5f2e80e (diff)
downloadredmine-01dbba72ab273b0ed9b77e3b9f6c318f626009c4.tar.gz
redmine-01dbba72ab273b0ed9b77e3b9f6c318f626009c4.zip
Move hardcoded calendar images to css classes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3477 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_calendar.rhtml9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/views/common/_calendar.rhtml b/app/views/common/_calendar.rhtml
index af525c870..2a5d9ae2a 100644
--- a/app/views/common/_calendar.rhtml
+++ b/app/views/common/_calendar.rhtml
@@ -11,14 +11,7 @@ while day <= calendar.enddt %>
<p class="day-num"><%= day.day %></p>
<% calendar.events_on(day).each do |i| %>
<% if i.is_a? Issue %>
- <div class="<%= i.css_classes %> tooltip">
- <%= if day == i.start_date && day == i.due_date
- image_tag('arrow_bw.png')
- elsif day == i.start_date
- image_tag('arrow_from.png')
- elsif day == i.due_date
- image_tag('arrow_to.png')
- end %>
+ <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
<%= h("#{i.project} -") unless @project && @project == i.project %>
<%= link_to_issue i, :truncate => 30 %>
<span class="tip"><%= render_issue_tooltip i %></span>