WordPress.org

Making WordPress.org

Changeset 6742


Ignore:
Timestamp:
02/25/2018 05:14:19 PM (2 years ago)
Author:
ocean90
Message:

Translate: Add remaining count to project boxes.

Fixes #2859.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/locale-projects.php

    r6693 r6742  
    119119    <?php
    120120    foreach ( $sub_projects as $sub_project ) {
    121         $percent_complete = $waiting = $sub_projects_count = $fuzzy = 0;
     121        $percent_complete = $waiting = $sub_projects_count = $fuzzy = $remaining = 0;
    122122        if ( isset( $project_status[ $sub_project->id ] ) ) {
    123123            $status = $project_status[ $sub_project->id ];
     
    125125            $waiting = $status->waiting_count;
    126126            $fuzzy = $status->fuzzy_count;
     127            $remaining = $status->all_count - $status->current_count;
    127128            $sub_projects_count = $status->sub_projects_count;
    128129        }
     
    178179            <div class="project-status">
    179180                <div class="project-status-sub-projects">
    180                     <span class="project-status-title">Sub-Projects</span>
    181                     <span class="project-status-value"><?php echo $sub_projects_count; ?></span>
     181                    <span class="project-status-title">Projects</span>
     182                    <span class="project-status-value"><?php echo number_format_i18n( $sub_projects_count ); ?></span>
    182183                </div>
    183184                <div class="project-status-waiting">
    184185                    <span class="project-status-title">Waiting/Fuzzy</span>
    185                     <span class="project-status-value"><?php echo $waiting + $fuzzy; ?></span>
     186                    <span class="project-status-value"><?php echo number_format_i18n( $waiting + $fuzzy ); ?></span>
     187                </div>
     188                <div class="project-status-remaining">
     189                    <span class="project-status-title">Remaining</span>
     190                    <span class="project-status-value"><?php echo number_format_i18n( $remaining ); ?></span>
    186191                </div>
    187192                <div class="project-status-progress">
    188193                    <span class="project-status-title">Progress</span>
    189                     <span class="project-status-value"><?php echo $percent_complete; ?>%</span>
     194                    <span class="project-status-value"><?php echo number_format_i18n( $percent_complete ); ?>%</span>
    190195                </div>
    191196            </div>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css

    r6454 r6742  
    691691a.contribute-button {
    692692    color: #555;
    693     line-height: 26px;
    694     padding: 0 10px 5px;
    695     -webkit-appearance: none;
    696     -webkit-border-radius: 3px;
    697     border-radius: 3px;
    698     min-height: 26px;
    699     vertical-align: baseline;
    700     white-space: nowrap;
    701693}
    702694
     
    705697}
    706698
    707 @media (max-width: 782px) {
     699@media screen and (min-width: 783px) {
    708700    a.contribute-button {
    709         max-width: 92%;
    710         padding: 0 5px;
    711         white-space: normal;
     701        font-size: 14px;
     702        padding: 0 14px;
     703        height: 28px;
     704        line-height: 28px;
    712705    }
    713706}
     
    917910
    918911.projects .project-status > div {
    919     width: 33.333%;
     912    width: 25%;
    920913    float: left;
    921914    margin: 20px 0;
    922     padding: 0 20px;
    923915    text-align: center;
    924916    -webkit-box-sizing: border-box;
     
    927919}
    928920
    929 .projects .project-status-waiting {
    930     border-right: 1px solid #eee;
     921.projects .project-status > div:not(:first-child) {
    931922    border-left: 1px solid #eee;
     923}
     924
     925@media (max-width: 500px) {
     926    .projects .project-status > div {
     927        width: 50%;
     928    }
     929
     930    .projects .project-status > div:nth-child(3) {
     931        border-left: 0;
     932    }
    932933}
    933934
     
    19491950    margin: 0;
    19501951}
     1952
     1953.paging a,
     1954.paging span,
     1955.paging .current,
     1956.paging .dots {
     1957    width: auto;
     1958    min-width: 2em;
     1959    padding: .1em;
     1960}
Note: See TracChangeset for help on using the changeset viewer.