summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-03 12:29:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-03 12:29:21 +0000
commit5bfe80949cbdc07298649f2ed8b4ef85345b586d (patch)
tree8423d409b858bd4219129deb2401f022d11240f7
parent0523ac387b8211b245c127ed3000eddeb83ca196 (diff)
downloadredmine-5bfe80949cbdc07298649f2ed8b4ef85345b586d.tar.gz
redmine-5bfe80949cbdc07298649f2ed8b4ef85345b586d.zip
Rails 3.2.5 compatibility.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9763 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/issues/show.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index b33fe4955..96e59b451 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -7,14 +7,14 @@
<div class="next-prev-links contextual">
<%= link_to_if @prev_issue_id,
"\xc2\xab #{l(:label_previous)}",
- issue_path(@prev_issue_id),
+ (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
:title => "##{@prev_issue_id}" %> |
<% if @issue_position && @issue_count %>
<span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
<% end %>
<%= link_to_if @next_issue_id,
"#{l(:label_next)} \xc2\xbb",
- issue_path(@next_issue_id),
+ (@next_issue_id ? issue_path(@next_issue_id) : nil),
:title => "##{@next_issue_id}" %>
</div>
<% end %>