kopia lustrzana https://github.com/wagtail/wagtail
Specific messaging when scheduling revisions for live pages
rodzic
3f0972507b
commit
7d43a45dd3
|
@ -358,6 +358,13 @@ def edit(request, page_id):
|
||||||
previous_revision.created_at.strftime("%d %b %Y %H:%M"),
|
previous_revision.created_at.strftime("%d %b %Y %H:%M"),
|
||||||
page.get_admin_display_title()
|
page.get_admin_display_title()
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
if page.live:
|
||||||
|
message = _(
|
||||||
|
"Page '{0}' is live and this revision has been scheduled for publishing."
|
||||||
|
).format(
|
||||||
|
page.get_admin_display_title()
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
message = _(
|
message = _(
|
||||||
"Page '{0}' has been scheduled for publishing."
|
"Page '{0}' has been scheduled for publishing."
|
||||||
|
|
Ładowanie…
Reference in New Issue