diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-06 20:54:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-06 20:54:43 +0000 |
commit | 2c335dbf32f738a06418d6eb5ff64b30d3379e48 (patch) | |
tree | 130dc677d8943ef6bf089e0913e636b81f1dc48e /app/views/projects/calendar.rhtml | |
parent | d6d1502200fa12ca0f370cbd092a1c536f88974c (diff) | |
download | redmine-2c335dbf32f738a06418d6eb5ff64b30d3379e48.tar.gz redmine-2c335dbf32f738a06418d6eb5ff64b30d3379e48.zip |
calendar and activity views edited (previous/next links)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@72 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/calendar.rhtml')
-rw-r--r-- | app/views/projects/calendar.rhtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/calendar.rhtml b/app/views/projects/calendar.rhtml index fc62921d4..22fcfa021 100644 --- a/app/views/projects/calendar.rhtml +++ b/app/views/projects/calendar.rhtml @@ -55,13 +55,13 @@ end %> <table width="100%">
<tr>
<td align="left">
-<%= link_to_remote ('« ' + l(:label_previous)),
+<%= link_to_remote ('« ' + (@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">
-<%= link_to_remote (l(:label_next) + ' »'),
+<%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' »'),
{: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))}
%>
|