diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 308f93b61..c41b7b790 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -71,6 +71,7 @@ end %> <% if @issue.description? || @issue.attachments.any? -%>
<% if @issue.description? %> +
<%= link_to l(:button_quote), {:controller => 'journals', :action => 'new', :id => @issue}, @@ -83,6 +84,7 @@ end %>
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
+
<% end %> <%= link_to_attachments @issue, :thumbnails => true %> <% end -%> diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 271791f44..a6917d2f9 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -827,6 +827,8 @@ class IssuesControllerTest < ActionController::TestCase assert_template 'show' assert_equal Issue.find(1), assigns(:issue) + assert_select 'div.issue div.description', :text => /Unable to print recipes/ + # anonymous role is allowed to add a note assert_select 'form#issue-form' do assert_select 'fieldset' do