Changeset 6742
- Timestamp:
- 02/25/2018 05:14:19 PM (7 years ago)
- 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 119 119 <?php 120 120 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; 122 122 if ( isset( $project_status[ $sub_project->id ] ) ) { 123 123 $status = $project_status[ $sub_project->id ]; … … 125 125 $waiting = $status->waiting_count; 126 126 $fuzzy = $status->fuzzy_count; 127 $remaining = $status->all_count - $status->current_count; 127 128 $sub_projects_count = $status->sub_projects_count; 128 129 } … … 178 179 <div class="project-status"> 179 180 <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> 182 183 </div> 183 184 <div class="project-status-waiting"> 184 185 <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> 186 191 </div> 187 192 <div class="project-status-progress"> 188 193 <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> 190 195 </div> 191 196 </div> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css
r6454 r6742 691 691 a.contribute-button { 692 692 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;701 693 } 702 694 … … 705 697 } 706 698 707 @media (max-width: 782px) {699 @media screen and (min-width: 783px) { 708 700 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; 712 705 } 713 706 } … … 917 910 918 911 .projects .project-status > div { 919 width: 33.333%;912 width: 25%; 920 913 float: left; 921 914 margin: 20px 0; 922 padding: 0 20px;923 915 text-align: center; 924 916 -webkit-box-sizing: border-box; … … 927 919 } 928 920 929 .projects .project-status-waiting { 930 border-right: 1px solid #eee; 921 .projects .project-status > div:not(:first-child) { 931 922 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 } 932 933 } 933 934 … … 1949 1950 margin: 0; 1950 1951 } 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.