##// END OF EJS Templates
href title attribute with full issue subject added...
Jean-Philippe Lang -
r112:d81a135704ad
parent child
Show More
@@ -1,69 +1,69
1 <h2><%= l(:label_calendar) %></h2>
1 <h2><%= l(:label_calendar) %></h2>
2
2
3 <table width="100%">
3 <table width="100%">
4 <tr>
4 <tr>
5 <td align="left" width="150">
5 <td align="left" width="150">
6 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
6 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
7 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
7 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
8 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
8 {:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
9 %>
9 %>
10 </td>
10 </td>
11 <td align="center">
11 <td align="center">
12 <%= start_form_tag :action => 'calendar', :id => @project %>
12 <%= start_form_tag :action => 'calendar', :id => @project %>
13 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
13 <%= select_month(@month, :prefix => "month", :discard_type => true) %>
14 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
14 <%= select_year(@year, :prefix => "year", :discard_type => true) %>
15 <%= submit_tag l(:button_submit), :class => "button-small" %>
15 <%= submit_tag l(:button_submit), :class => "button-small" %>
16 <%= end_form_tag %>
16 <%= end_form_tag %>
17 </td>
17 </td>
18 <td align="right" width="150">
18 <td align="right" width="150">
19 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
19 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
20 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
20 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
21 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
21 {:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
22 %>&nbsp;
22 %>&nbsp;
23 </td>
23 </td>
24 </tr>
24 </tr>
25 </table>
25 </table>
26 <br />
26 <br />
27
27
28 <table class="list with-cells">
28 <table class="list with-cells">
29 <thead>
29 <thead>
30 <tr>
30 <tr>
31 <th></th>
31 <th></th>
32 <% 1.upto(7) do |d| %>
32 <% 1.upto(7) do |d| %>
33 <th width="14%"><%= day_name(d) %></th>
33 <th width="14%"><%= day_name(d) %></th>
34 <% end %>
34 <% end %>
35 </tr>
35 </tr>
36 </thead>
36 </thead>
37 <tbody>
37 <tbody>
38 <tr height="100">
38 <tr height="100">
39 <% day = @date_from
39 <% day = @date_from
40 while day <= @date_to
40 while day <= @date_to
41 if day.cwday == 1 %>
41 if day.cwday == 1 %>
42 <th><%= day.cweek %></th>
42 <th><%= day.cweek %></th>
43 <% end %>
43 <% end %>
44 <td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">
44 <td valign="top" width="14%" class="<%= day.month==@month ? "even" : "odd" %>">
45 <p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
45 <p align="right"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
46 <% day_issues = []
46 <% day_issues = []
47 @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day }
47 @issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day }
48 day_issues.each do |i| %>
48 day_issues.each do |i| %>
49 <%= if day == i.start_date and day == i.due_date
49 <%= if day == i.start_date and day == i.due_date
50 image_tag('arrow_bw')
50 image_tag('arrow_bw')
51 elsif day == i.start_date
51 elsif day == i.start_date
52 image_tag('arrow_from')
52 image_tag('arrow_from')
53 elsif day == i.due_date
53 elsif day == i.due_date
54 image_tag('arrow_to')
54 image_tag('arrow_to')
55 end %>
55 end %>
56 <small><%= link_to "#{i.tracker.name} ##{i.id}", :controller => 'issues', :action => 'show', :id => i %>: <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %></small><br />
56 <small><%= link_to "#{i.tracker.name} ##{i.id}", { :controller => 'issues', :action => 'show', :id => i }, :title => "#{i.subject}" %>: <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %></small><br />
57 <% end %>
57 <% end %>
58 </td>
58 </td>
59 <%= '</tr><tr height="100">' if day.cwday >= 7 and day!=@date_to %>
59 <%= '</tr><tr height="100">' if day.cwday >= 7 and day!=@date_to %>
60 <%
60 <%
61 day = day + 1
61 day = day + 1
62 end %>
62 end %>
63 </tr>
63 </tr>
64 </tbody>
64 </tbody>
65 </table>
65 </table>
66
66
67 <%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
67 <%= image_tag 'arrow_from' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
68 <%= image_tag 'arrow_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
68 <%= image_tag 'arrow_to' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
69 <%= image_tag 'arrow_bw' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br /> No newline at end of file
69 <%= image_tag 'arrow_bw' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />
General Comments 0
You need to be logged in to leave comments. Login now