The [[projects]]
macro should support an option like grid_view_tools=git,wiki,tickets
When in grid mode then only show the icons for those tool types. Do a case-insensitive match against the tool types (not the mount point or label).
Update the help documentation also. Allura/allura/templates/neighborhood_help.html
Created #52: [4190] Option to limit the tools shown in project list (2cp)
Originally by: tramadolmen
I can't find Allura/allura/templates/neighborhood_help.html file. Must i create it?
It's in the latest 'dev' branch and has been for a while, so I'm not sure why you aren't seeing it.
Originally by: tramadolmen
Ok, i'll consider it with Yaroslav
Originally by: tramadolmen
Are you sure that
maybe better will be:
Why would that be better? Would that be using the mount points?
Originally by: tramadolmen
Now in template are using sitemaps like this:
User can set label value, so i can check ui_icon for tool filter. Tool filter can take tool-git, tool-svn, tool-hg values. If i'm not mistaken. Code for this will be better (for "Code" i can check if ui_icon in ['tool-git', 'tool-svn', 'tool-hg'])
ui_icon looks like the right thing to check.
We don't need to add any special logic for 'code' meaning git, svn or hg. Anyone using this can just put
grid_view_tools=git,svn,hg,etc
if they want that.Closed #52, see branch 42cc_4190