#2637 Add show_total option to projects macro

v1.0.0
closed
Wiki
nobody
2015-08-20
2011-08-18
No

The [[projects]] macro should support a show_total option, which would put <div class="macro_projects_total">123 Projects</div> right before rendering the list. On the Motorola neighborhood, custom css should be added so #macro_projects_total is centered on its line.

Discussion

  • Mark Ramm - 2011-08-18
    • milestone: backlog --> aug-26
     
  • Jenny Steele - 2011-08-19
    • status: open --> in-progress
    • assigned_to: Jenny Steele
    • size: --> 1
     
  • Jenny Steele - 2011-08-19

    On allura js/2637. To test put this on a neighborhood project level wiki: [[projects show_total=True]] You will see text indicating how many projects there are. I added this css to the Motorola neighborhood css already: p.macro_projects_total{ text-align:center }

     
  • Jenny Steele - 2011-08-19
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Dave Brondsema
     
  • Jenny Steele - 2011-08-24

    I pushed a fix to the branch for the documentation we talked about.

     
  • Dave Brondsema

    Dave Brondsema - 2011-08-25

    Hmm, can we tweak it so that the number reflects what users see after permission checks? Deep within the macro, templates/widgets/project_list_widget.html does a permission check. Can you try refactoring that up a few levels into the macro itself, so that possibly-shortened list's count can be used?

    • status: code-review --> in-progress
    • assigned_to: Dave Brondsema --> Jenny Steele
     
  • Jenny Steele - 2011-09-08

    Added a permission check to the count

     
  • Jenny Steele - 2011-09-08
    • status: in-progress --> code-review
    • assigned_to: Jenny Steele --> Dave Brondsema
     
  • Dave Brondsema

    Dave Brondsema - 2011-09-09
    • status: code-review --> closed
     

Log in to post a comment.