- Timestamp:
- 08/19/2015 04:33:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/public_html/gp-templates/locale-projects.php
r1739 r1836 87 87 } 88 88 89 $project_url = gp_url_join( '/locale', $locale_slug, $set_slug, $sub_project->path ); 89 // Link directly to the Waiting strings if we're in the Waiting view, otherwise link to the project overview 90 if ( 'waiting' == $project->slug ) { 91 $project_url = gp_url_join( '/projects', $sub_project->path, $locale_slug, $set_slug ) . '?filters[status]=waiting'; 92 } else { 93 $project_url = gp_url_join( '/locale', $locale_slug, $set_slug, $sub_project->path ); 94 } 90 95 91 96 $project_icon = ''; … … 140 145 </div> 141 146 <?php 147 } 148 if ( ! $sub_projects ) { 149 if ( 'waiting' === $project->slug ) { 150 echo '<div class="no-projects-found">No projects with strings awaiting approval!</div>'; 151 } else { 152 echo '<div class="no-projects-found">No projects found.</div>'; 153 } 142 154 } 143 155 ?>
Note: See TracChangeset
for help on using the changeset viewer.