Making WordPress.org

Changeset 11516


Ignore:
Timestamp:
02/03/2022 11:18:29 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Translate: Improve styling of notices in consistency view.

This makes sure the "All originals have the same translations" notice has the same padding as "There are XX different translations".

Follow-up to [11513], [11515].

See #6064.

File:
1 edited

Legend:

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

    r11421 r11516  
    7676    $has_different_translations = $translations_unique_count > 1;
    7777    if ( ! $has_different_translations ) {
    78         echo '<p class="notice">All originals have the same translations</p>';
     78        echo '<div class="notice"><p>All originals have the same translations.</p></div>';
    7979    } else {
    8080        echo '<div id="translations-overview" class="notice wporg-notice-warning"><p>There are ' . $translations_unique_count . ' different translations. <a id="toggle-translations-unique" href="#show">View</a></p>';
Note: See TracChangeset for help on using the changeset viewer.