##// END OF EJS Templates
issue list: added 'Priority' column, removed 'Created on' column...
issue list: added 'Priority' column, removed 'Created on' column git-svn-id: http://redmine.rubyforge.org/svn/trunk@211 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r181:845460b16525
r208:aa91ca0a8d0e
Show More
calendar.rhtml
73 lines | 2.9 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
* new report: project activity...
r42 <h2><%= l(:label_calendar) %></h2>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% form_tag({:action => 'calendar', :id => @project}) do %>
Jean-Philippe Lang
* new report: project activity...
r42 <table width="100%">
<tr>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <td align="left" style="width:150px">
Jean-Philippe Lang
gantt link added in left menu and removed from calendar view...
r71 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
{:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) }},
{:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1))}
%>
Jean-Philippe Lang
* new report: project activity...
r42 </td>
Jean-Philippe Lang
gantt link added in left menu and removed from calendar view...
r71 <td align="center">
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
<%= select_year(@year, :prefix => "year", :discard_type => true) %>
<%= submit_tag l(:button_submit), :class => "button-small" %>
</td>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <td align="right" style="width:150px">
Jean-Philippe Lang
gantt link added in left menu and removed from calendar view...
r71 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
{:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1) }},
{:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1))}
%>&nbsp;
Jean-Philippe Lang
* new report: project activity...
r42 </td>
</tr>
</table>
Jean-Philippe Lang
deprecated start_form_tag replaced by form_tag...
r181 <% end %>
Jean-Philippe Lang
* new report: project activity...
r42 <br />
Jean-Philippe Lang
css cleaning...
r105 <table class="list with-cells">
<thead>
<tr>
<th></th>
Jean-Philippe Lang
* new report: project activity...
r42 <% 1.upto(7) do |d| %>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <th style="width:14%"><%= day_name(d) %></th>
Jean-Philippe Lang
* new report: project activity...
r42 <% end %>
</tr>
Jean-Philippe Lang
css cleaning...
r105 </thead>
<tbody>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <tr style="height:100px">
Jean-Philippe Lang
* new report: project activity...
r42 <% day = @date_from
while day <= @date_to
if day.cwday == 1 %>
Jean-Philippe Lang
css cleaning...
r105 <th><%= day.cweek %></th>
Jean-Philippe Lang
* new report: project activity...
r42 <% end %>
Jean-Philippe Lang
tooltips added on calendar...
r158 <td valign="top" class="<%= day.month==@month ? "even" : "odd" %>" style="width:14%; <%= Date.today == day ? 'background:#FDFED0;' : '' %>">
Jean-Philippe Lang
XHTML compliance improvements...
r147 <p class="textright"><%= day==Date.today ? "<b>#{day.day}</b>" : day.day %></p>
Jean-Philippe Lang
* new report: project activity...
r42 <% day_issues = []
@issues.each { |i| day_issues << i if i.start_date == day or i.due_date == day }
Jean-Philippe Lang
tooltips added on calendar...
r158 day_issues.each do |i| %>
<div class="tooltip">
Jean-Philippe Lang
* new report: project activity...
r42 <%= if day == i.start_date and day == i.due_date
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 image_tag('arrow_bw.png')
Jean-Philippe Lang
* new report: project activity...
r42 elsif day == i.start_date
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 image_tag('arrow_from.png')
Jean-Philippe Lang
* new report: project activity...
r42 elsif day == i.due_date
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 image_tag('arrow_to.png')
Jean-Philippe Lang
* new report: project activity...
r42 end %>
Jean-Philippe Lang
tooltips added on calendar...
r158 <small><%= link_to "#{i.tracker.name} ##{i.id}", { :controller => 'issues', :action => 'show', :id => i } %>: <%=h i.subject.sub(/^(.{30}[^\s]*\s).*$/, '\1 (...)') %></small>
<span class="tip">
<%= render :partial => "issues/tooltip", :locals => { :issue => i }%>
</span>
</div>
Jean-Philippe Lang
* new report: project activity...
r42 <% end %>
</td>
Jean-Philippe Lang
XHTML compliance improvements...
r147 <%= '</tr><tr style="height:100px">' if day.cwday >= 7 and day!=@date_to %>
Jean-Philippe Lang
* new report: project activity...
r42 <%
day = day + 1
end %>
</tr>
Jean-Philippe Lang
css cleaning...
r105 </tbody>
Jean-Philippe Lang
* new report: project activity...
r42 </table>
Jean-Philippe Lang
* all icons replaced (new icons are based on GPL icon set: "KDE Crystal Diamond 2.5" -by paolino- and "kNeu! Alpha v0.1" -by Pablo Fabregat-)...
r154 <%= image_tag 'arrow_from.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
<%= image_tag 'arrow_to.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
<%= image_tag 'arrow_bw.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />