Patch #16381

Extract code to render project context links to helper

Added by Michael Esemplare about 4 years ago. Updated about 4 years ago.

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

0%

Category:Code cleanup/refactoring
Target version:2.5.1

Description

The attached patch is against trunk r12982.

Currently the logic to determine which links to show in the project view (app/views/projects/index.html.erb) is in the view itself. The current paradigm assumes the activity link always being shown. However if one wanted to hide that, or disable it (#1543), there is an extra separator left.

This patch will join the array of permissioned links with the separator in the projects helper; and return the html to render.

render_project_action_links.patch Magnifier (2.07 KB) Michael Esemplare, 2014-03-19 07:41

Associated revisions

Revision 12986
Added by Jean-Philippe Lang about 4 years ago

Extract code to render project context links to helper (#16381).

Patch by Michael Esemplare.

History

#1 Updated by Jean-Philippe Lang about 4 years ago

  • Category changed from Projects to Code cleanup/refactoring
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.5.1

Patch applied in r12986, thanks.

#2 Updated by Jean-Philippe Lang about 4 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF