Making WordPress.org


Ignore:
Timestamp:
09/11/2015 07:42:09 AM (9 years ago)
Author:
ocean90
Message:

Translate: Combine Waiting and Fuzzy counts and show them on project cards.

See #1091.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php

    r1874 r1876  
    7979    <?php
    8080    foreach ( $sub_projects as $sub_project ) {
    81         $percent_complete = $waiting = $sub_projects_count = 0;
     81        $percent_complete = $waiting = $sub_projects_count = $fuzzy = 0;
    8282        if ( isset( $project_status[ $sub_project->id ] ) ) {
    8383            $status = $project_status[ $sub_project->id ];
    8484            $percent_complete = $status->percent_complete;
    8585            $waiting = $status->waiting_count;
     86            $fuzzy = $status->fuzzy_count;
    8687            $sub_projects_count = $status->sub_projects_count;
    8788        }
     
    135136                </div>
    136137                <div class="project-status-waiting">
    137                     <span class="project-status-title">Waiting</span>
    138                     <span class="project-status-value"><?php echo $waiting; ?></span>
     138                    <span class="project-status-title">Waiting/Fuzzy</span>
     139                    <span class="project-status-value"><?php echo $waiting + $fuzzy; ?></span>
    139140                </div>
    140141                <div class="project-status-progress">
Note: See TracChangeset for help on using the changeset viewer.