1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-18 06:58:17 +00:00
Jean-Philippe Lang da9cb496e8 display message count on mailing_lists/messages
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@273 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-02-25 19:39:43 +00:00

27 lines
1.4 KiB
Plaintext

<h2><%= @mailing_list.name %> : <%= "#{month_name(@month).downcase} #{@year}" %></h2>
<% if @messages.empty? %>
<p><em><%= l(:label_no_data) %></em></p>
<% else %>
<p><em><%= lwr(:label_thread, @messages.length) %>, <%= lwr(:label_message, @message_count) %></em></p>
<div id="messages-list">
<%= render :partial => 'thread', :locals => {:messages => @messages} %>
</div>
<% end %>
<table width="100%">
<tr>
<td align="left" style="width:150px">
<%= 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))}
%>
</td>
<td align="right" style="width:150px">
<%= 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;
</td>
</tr>
</table>