Skip to content

Commit

Permalink
Move stats text into the if block
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Feb 20, 2024
1 parent 6fac7d2 commit 7b0ef0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@
</tbody>
</table>
</div>
<?php endif ?>
<div>
<details class="event-stats-summary">
<summary>View stats summary in text </summary>
<p class="event-stats-text"><?php echo esc_html( sprintf( 'At the %s event, %d people contributed in %d languages (%s), translated %d strings and reviewed %d strings.', esc_html( $event_title ), esc_html( $event_stats->totals()->users ), count( $event_stats->rows() ), esc_html( implode( ',', array_keys( $event_stats->rows() ) ) ), esc_html( $event_stats->totals()->created ), esc_html( $event_stats->totals()->reviewed ) ) ); ?></p>
</details>
</div>
<?php endif ?>
</div>
<div class="event-details-right">
<div class="event-details-date">
Expand Down

0 comments on commit 7b0ef0b

Please sign in to comment.