Patch #6247 ยป redmine100_version_number_display.patch
| app/controllers/gantts_controller.rb (working copy) | ||
|---|---|---|
|
# Modified by venkat.bagam@rknowsys.com
|
||
|
class GanttsController < ApplicationController
|
||
|
before_filter :find_optional_project
|
||
| ... | ... | |
|
include SortHelper
|
||
|
include Redmine::Export::PDF
|
||
|
|
||
|
# Modified to include :fixed_version
|
||
|
def show
|
||
|
@gantt = Redmine::Helpers::Gantt.new(params)
|
||
|
retrieve_query
|
||
| ... | ... | |
|
if @query.valid?
|
||
|
events = []
|
||
|
# Issues that have start and due dates
|
||
|
events += @query.issues(:include => [:tracker, :assigned_to, :priority],
|
||
|
events += @query.issues(:include => [:tracker, :assigned_to, :priority, :fixed_version],
|
||
|
:order => "start_date, due_date",
|
||
|
:conditions => ["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date<? and due_date>?)) and start_date is not null and due_date is not null)", @gantt.date_from, @gantt.date_to, @gantt.date_from, @gantt.date_to, @gantt.date_from, @gantt.date_to]
|
||
|
)
|
||
| app/helpers/issues_helper.rb (working copy) | ||
|---|---|---|
|
# along with this program; if not, write to the Free Software
|
||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
# Modified by venkat.bagam@rknowsys.com
|
||
|
module IssuesHelper
|
||
|
include ApplicationHelper
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
|
||
|
# Modified to display Version number in Issue tool tip.
|
||
|
def render_issue_tooltip(issue)
|
||
|
@cached_label_start_date ||= l(:field_start_date)
|
||
|
@cached_label_due_date ||= l(:field_due_date)
|
||
|
@cached_label_assigned_to ||= l(:field_assigned_to)
|
||
|
@cached_label_priority ||= l(:field_priority)
|
||
|
|
||
|
issue_version = l(:unknown)
|
||
|
issue_version = issue.fixed_version.name if issue.fixed_version
|
||
|
|
||
|
link_to_issue(issue) + "<br /><br />" +
|
||
|
"<strong>#{l(:label_version)}</strong>: #{issue_version}<br />" +
|
||
|
"<strong>#{@cached_label_start_date}</strong>: #{format_date(issue.start_date)}<br />" +
|
||
|
"<strong>#{@cached_label_due_date}</strong>: #{format_date(issue.due_date)}<br />" +
|
||
|
"<strong>#{@cached_label_assigned_to}</strong>: #{issue.assigned_to}<br />" +
|
||
| config/locales/en.yml (working copy) | ||
|---|---|---|
|
#Modified by venkat.bagam@rknowsys.com
|
||
|
en:
|
||
|
date:
|
||
|
formats:
|
||
| ... | ... | |
|
enumeration_activities: Activities (time tracking)
|
||
|
enumeration_system_activity: System Activity
|
||
|
unknown: Unknown
|
||
|
|
||