From 29a474b641d50c627263d7aa0bfc681d12d94c8d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 27 Oct 2012 08:35:19 +0000 Subject: Wrap issue description and its contextual menu in a div (#12211). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10728 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/show.html.erb | 2 ++ test/functional/issues_controller_test.rb | 2 ++ 2 files changed, 4 insertions(+) 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 -- cgit v1.2.3