#4190 Option to limit the tools shown in project list

v1.0.0
closed
nobody
General
Cory Johns
2015-08-20
2012-05-11
No

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

Discussion

  • Yaroslav Luzin - 2012-05-14

    Created #52: [4190] Option to limit the tools shown in project list (2cp)

     
  • Anonymous - 2012-05-15

    Originally by: tramadolmen

    I can't find Allura/allura/templates/neighborhood_help.html file. Must i create it?

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-15

    It's in the latest 'dev' branch and has been for a while, so I'm not sure why you aren't seeing it.

     
  • Anonymous - 2012-05-15

    Originally by: tramadolmen

    Ok, i'll consider it with Yaroslav

     
  • Anonymous - 2012-05-15

    Originally by: tramadolmen

    Are you sure that

    grid_view_tools=git

    maybe better will be:

    grid_view_tools=code

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-15

    Why would that be better? Would that be using the mount points?

     
  • Anonymous - 2012-05-15

    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'])

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-15

    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.

     
  • Yaroslav Luzin - 2012-05-16

    Closed #52, see branch 42cc_4190

    • status: open --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-16
    • qa: Cory Johns
     
  • Cory Johns - 2012-05-21
    • status: code-review --> closed
     

Log in to post a comment.