Defect #21037

Issue show : bullet points not aligned if sub-task is in a different project

Added by Jérôme BATAILLE about 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:UI
Target version:3.3.0
Resolution:Fixed Affected version:

Description

The project name is before the hierarchy triangles thus shifting them.

To fix that, the project name can be put in the link which has the css with the triangle image :

            only_path = options[:only_path].nil? ? true : options[:only_path]
            # fix
            text = h("(#{issue.project}) - ") + text if options[:project]

            # Smile specific options + :hours_by_day
            s = link_to(text, issue_path(issue, :only_path => only_path,
                        :hours_by_day => options[:hours_by_day],
                        :debug => options[:debug]
                       ),
                        :class => issue.css_classes, :title => title)
            s << h(": #{subject}") if subject
            #s = h("#{issue.project} - ") + s if options[:project]

redmine_subtasks_not_aligned_other_project_fixed.png (17.7 KB) Jérôme BATAILLE, 2016-04-06 22:22

redmine_subtasks_not_aligned_other_project.png (41.2 KB) Jérôme BATAILLE, 2016-04-06 22:22

redmine_3.2.0_21037.patch Magnifier (757 Bytes) Jérôme BATAILLE, 2016-04-06 22:26

Associated revisions

Revision 15374
Added by Jean-Philippe Lang over 1 year ago

Issue show : bullet points not aligned if sub-task is in a different project (#21037).

History

#1 Updated by Jérôme BATAILLE about 2 years ago

The fix is to be done in application_helper#link_to_issue

Don't mind the Smile specific parts : hours_by_day and debug

#2 Updated by Toshi MARUYAMA about 2 years ago

  • Category set to Issues

#3 Updated by Toshi MARUYAMA about 2 years ago

  • Status changed from New to Needs feedback

I cannot understand what you said.
Could you give us screen shot and patch?

#5 Updated by Toshi MARUYAMA over 1 year ago

  • Status changed from Needs feedback to New
  • Target version set to 3.3.0

#6 Updated by Jean-Philippe Lang over 1 year ago

  • Category changed from Issues to UI
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r15374. I didn't integrate the project name in the link as proposed in the patch. Just a few changes to the CSS.

#7 Updated by Jérôme BATAILLE over 1 year ago

Thanks a lot for the css fix !

Also available in: Atom PDF