-
Notifications
You must be signed in to change notification settings - Fork 0
Hide Projects, Packages, and Public Activity links from user profile #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR hides the Projects and Packages navigation links from user profile pages in Forkana by commenting out the relevant template code sections.
Changes:
- Wrapped Projects link section in comment blocks indicating it's not used in Forkana
- Wrapped Packages link section in comment blocks indicating it's not used in Forkana
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| templates/user/overview/header.tmpl | Comments out Projects and Packages navigation links in the main template |
| custom/templates/user/overview/header.tmpl | Comments out Projects and Packages navigation links in the custom template |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <div class="ui small label">{{.RepoCount}}</div> | ||
| {{end}} | ||
| </a> | ||
| {{/* Projects link hidden - not used in Forkana |
Copilot
AI
Jan 17, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment syntax is incorrect for Go templates. Multi-line comments should use {{/* at the start and */}} at the end on the same line, or use proper block comment format. The opening comment marker should be on its own or followed immediately by the closing marker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think (and I let Claude look at this, too), that this comment is BS, but will confirm again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked again, we did the exact same in PR 107 and there was no complaint. Official docs say comments may contain newlines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
debfedd to
0024ad4
Compare
pedrogaudencio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly to fully disable the projects, packages and activity tabs and functionalities we can add some configuration directives to custom/conf/app.ini (and a reference to that in the README.md):
[repository]
DISABLED_REPO_UNITS = repo.projects
[packages]
ENABLED = false
[explore]
ORGANIZATIONS_PAGE_DISABLED = true
[service]
ENABLE_USER_HEATMAP = falseOtherwise lgtm! 👍
Same reasoning as #107.
This
brings us closer to
(The "Starred Repositories" could be converted to "Watched")