issues#show words typo

This commit is contained in:
yanxd 2014-05-27 08:51:03 +08:00
parent 98444ef01e
commit a9b88b8e66
2 changed files with 9 additions and 6 deletions

View File

@ -59,12 +59,11 @@ module IssuesHelper
def issue_heading(issue) def issue_heading(issue)
#h("#{issue.tracker} ##{issue.id}") #h("#{issue.tracker} ##{issue.id}")
#h("#{issue.tracker} #{issue.source_from}") # h("#{issue.tracker} #{issue.source_from}")
s = '' s = ''
s << ">>" s << link_to(@issue.project.name, project_issues_path(@issue.project))
s << link_to(@issue.project.name+l(:issue_list), project_issues_path(@issue.project)) s << " > #"
s << " >" s << @issue.project_index
s << @issue.source_from
s.html_safe s.html_safe
end end

View File

@ -1156,7 +1156,11 @@ class Issue < ActiveRecord::Base
# back string obj which is belong to project. # back string obj which is belong to project.
def source_from def source_from
"" << self.project.name.to_s << "" << self.project.name.to_s <<
"#" << (self.project.issues.index(self).to_i + 1).to_s "#" << project_index
end
def project_index
(self.project.issues.index(self).to_i + 1).to_s
end end
private private