issues id new world
This commit is contained in:
parent
8d2bbfe320
commit
6ba25556b7
|
@ -58,7 +58,8 @@ module IssuesHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def issue_heading(issue)
|
def issue_heading(issue)
|
||||||
h("#{issue.tracker} ##{issue.id}")
|
#h("#{issue.tracker} ##{issue.id}")
|
||||||
|
h("#{issue.tracker} #{issue.source_from}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_issue_subject_with_tree(issue)
|
def render_issue_subject_with_tree(issue)
|
||||||
|
|
|
@ -217,7 +217,7 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_param
|
def to_param
|
||||||
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)+1}-#{self.project.issues.count})"#.parameterize
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self).to_i+1}-#{self.project.issues.count})"#.parameterize
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
||||||
|
@ -1144,6 +1144,12 @@ class Issue < ActiveRecord::Base
|
||||||
Project.all(:conditions => Project.allowed_to_condition(user, :move_issues))
|
Project.all(:conditions => Project.allowed_to_condition(user, :move_issues))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# back string obj which is belong to project.
|
||||||
|
def source_from
|
||||||
|
"" << self.project.name.to_s <<
|
||||||
|
"#" << (self.project.issues.index(self).to_i + 1).to_s
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def after_project_change
|
def after_project_change
|
||||||
|
|
|
@ -30,7 +30,8 @@
|
||||||
<ul class="list-group-item-meta">
|
<ul class="list-group-item-meta">
|
||||||
<span> <%= link_to issue.author.name, user_path(issue.author), :class => "bid_user_u" %></span><%= l(:label_post_on)%> <% a = [] %>
|
<span> <%= link_to issue.author.name, user_path(issue.author), :class => "bid_user_u" %></span><%= l(:label_post_on)%> <% a = [] %>
|
||||||
<% a << column_content[1] %>
|
<% a << column_content[1] %>
|
||||||
<% a << "##{column_content[0]}" << "(#{raw column_content[2]}):" << column_content[4] %>
|
<%# a << "##{column_content[0]}" << "(#{raw column_content[2]}):" << column_content[4] %>
|
||||||
|
<% a << "#{issue.source_from}" << "(#{raw column_content[2]}):" << column_content[4] %>
|
||||||
<%= link_to a.join(' '), issue_path(issue), :class => "issue-link" %>
|
<%= link_to a.join(' '), issue_path(issue), :class => "issue-link" %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
Loading…
Reference in New Issue