Commit 415eddaf39d7e1ffc4bf009d43a273614224909b

Authored by Nihad Abbasov
1 parent 7b36b8d1

green specs

app/controllers/issues_controller.rb
@@ -96,7 +96,7 @@ class IssuesController < ApplicationController @@ -96,7 +96,7 @@ class IssuesController < ApplicationController
96 else @project.issues.opened 96 else @project.issues.opened
97 end 97 end
98 98
99 - @issues = @issues.where("title LIKE ? OR content LIKE ?", "%#{terms}%", "%#{terms}%") unless terms.blank? 99 + @issues = @issues.where("title LIKE ?", "%#{terms}%") unless terms.blank?
100 100
101 render :partial => 'issues' 101 render :partial => 'issues'
102 end 102 end
app/views/notify/new_issue_email.html.haml
@@ -10,9 +10,7 @@ @@ -10,9 +10,7 @@
10 %td{:style => "font-size: 1px; line-height: 1px;", :width => "21"} 10 %td{:style => "font-size: 1px; line-height: 1px;", :width => "21"}
11 %td{:align => "left", :style => "padding: 20px 0 0;"} 11 %td{:align => "left", :style => "padding: 20px 0 0;"}
12 %h2{:style => "color:#646464 !important; font-weight: bold; margin: 0; padding: 0; line-height: 26px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; "} 12 %h2{:style => "color:#646464 !important; font-weight: bold; margin: 0; padding: 0; line-height: 26px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; "}
13 - = link_to project_issue_url(@project, @issue) do 13 + = link_to project_issue_url(@project, @issue), :title => @issue.title do
14 = "Issue ##{@issue.id.to_s}" 14 = "Issue ##{@issue.id.to_s}"
15 = truncate(@issue.title, :length => 45) 15 = truncate(@issue.title, :length => 45)
16 %br 16 %br
17 - %cite{:style => "color:#767676; font-weight: normal; margin: 0; padding: 0; line-height: 20px; font-size: 12px;font-family: Helvetica, Arial, sans-serif; "}  
18 - = @issue.content