Refactor project_presenter and stat_anchor_list to be more semantic
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
The following discussion from gitlab-ce!20934 should be addressed:
-
@smcgivern started a discussion: (+4 comments)
We currently set link: nil with enabled: true to project_presenter.rb which is then used by _stat_anchor_list.html.haml to render links.
We should be more semantic and perhaps use a visible property instead of enabled, and render either a link or plain-text in the HAML template, depending on whether a link is supplied or not.
Edited by 🤖 GitLab Bot 🤖