~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/archive.py

[r=allenap][bug=828015] Further fixes/improvements to the sync
 notification messages on DistroSeries:+localpackagediffs and siblings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1300
1300
    """
1301
1301
    package_or_packages = get_plural_text(
1302
1302
        source_pubs_count, "package", "packages")
1303
 
    return structured(
1304
 
        "<p>Requested sync of %s %s.</p>"
1305
 
        "<p>Please allow some time for these to be processed.</p>",
1306
 
        source_pubs_count, package_or_packages)
 
1303
    if source_pubs_count == 0:
 
1304
        return structured(
 
1305
            "Requested sync of %s %s.",
 
1306
            source_pubs_count, package_or_packages)
 
1307
    else:
 
1308
        this_or_these = get_plural_text(
 
1309
            source_pubs_count, "this", "these")
 
1310
        return structured(
 
1311
            "Requested sync of %s %s.<br />"
 
1312
            "Please allow some time for %s to be processed.",
 
1313
            source_pubs_count, package_or_packages, this_or_these)
1307
1314
 
1308
1315
 
1309
1316
def render_cannotcopy_as_html(cannotcopy_exception):