freedayko/redmine_issue_history — Issue #8: Conditionally display the revisions link on the issue page
Author: arthur24b6
Created: 2012-01-27 22:43:35+00:00
State: open

I wrapped the display in _show_history.rhtml in an if statement to keep the issue page a bit cleaner:
```
<%
# Get the total count of revisions
revisions = issue.issue_versions.count
# Only display if there are revisions
if (revisions > 1)
%>

<%=l(:issue_history_title)%> (<%= revisions %>)

<%= link_to(l(:issue_history_revisions) , show_issue_versions_path(@issue.id), :class => 'icon icon-history') %>

<% end %>

```