diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 5f6ba1ba6..b48ff2cd1 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -70,7 +70,7 @@ <% end %> -<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> +<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %>
<%= render :partial => 'relations' %> @@ -79,14 +79,14 @@
-<% if @changesets.any? %> +<% if @changesets.present? %>

<%=l(:label_associated_revisions)%>

<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
<% end %> -<% if @journals.any? %> +<% if @journals.present? %>

<%=l(:label_history)%>

<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> @@ -116,7 +116,7 @@ <%= render :partial => 'issues/sidebar' %> <% if User.current.allowed_to?(:add_issue_watchers, @project) || - (@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %> + (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
@@ -130,4 +130,4 @@ <%= stylesheet_link_tag 'context_menu' %> <% end %> -<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %> \ No newline at end of file +<%= javascript_tag "new ContextMenu('#{url_for(:controller => 'issues', :action => 'context_menu')}')" %>