Project

General

Profile

Actions

Patch #16381

closed

Extract code to render project context links to helper

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

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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.


Files

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

Also available in: Atom PDF