mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
parent
e1e7bd4e7d
commit
f34f88e25a
|
@ -273,6 +273,11 @@
|
||||||
"color": 25600,
|
"color": 25600,
|
||||||
"emoji": "📋"
|
"emoji": "📋"
|
||||||
},
|
},
|
||||||
|
"contentmodel/new": {
|
||||||
|
"icon": "",
|
||||||
|
"color": 25600,
|
||||||
|
"emoji": "📋"
|
||||||
|
},
|
||||||
"cargo/deletetable": {
|
"cargo/deletetable": {
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"color": 16776960,
|
"color": 16776960,
|
||||||
|
|
|
@ -402,6 +402,9 @@ def compact_formatter(action, change, parsed_comment, categories, recent_changes
|
||||||
link = link_formatter(create_article_path(change["title"]))
|
link = link_formatter(create_article_path(change["title"]))
|
||||||
content = _("[{author}]({author_url}) changed the content model of the page [{article}]({article_url}) from {old} to {new}{comment}").format(author=author, author_url=author_url, article=change["title"], article_url=link, old=change["logparams"]["oldmodel"],
|
content = _("[{author}]({author_url}) changed the content model of the page [{article}]({article_url}) from {old} to {new}{comment}").format(author=author, author_url=author_url, article=change["title"], article_url=link, old=change["logparams"]["oldmodel"],
|
||||||
new=change["logparams"]["newmodel"], comment=parsed_comment)
|
new=change["logparams"]["newmodel"], comment=parsed_comment)
|
||||||
|
elif action == "contentmodel/new":
|
||||||
|
link = link_formatter(create_article_path(change["title"]))
|
||||||
|
content = _("[{author}]({author_url}) created the page [{article}]({article_url}) using a non-default content model {new}{comment}").format(author=author, author_url=author_url, article=change["title"], article_url=link, new=change["logparams"]["newmodel"], comment=parsed_comment)
|
||||||
elif action == "sprite/sprite":
|
elif action == "sprite/sprite":
|
||||||
link = link_formatter(create_article_path(change["title"]))
|
link = link_formatter(create_article_path(change["title"]))
|
||||||
content = _("[{author}]({author_url}) edited the sprite for [{article}]({article_url})").format(author=author, author_url=author_url, article=change["title"], article_url=link)
|
content = _("[{author}]({author_url}) edited the sprite for [{article}]({article_url})").format(author=author, author_url=author_url, article=change["title"], article_url=link)
|
||||||
|
@ -1070,6 +1073,10 @@ def embed_formatter(action, change, parsed_comment, categories, recent_changes):
|
||||||
parsed_comment = _("Model changed from {old} to {new}: {reason}").format(old=change["logparams"]["oldmodel"],
|
parsed_comment = _("Model changed from {old} to {new}: {reason}").format(old=change["logparams"]["oldmodel"],
|
||||||
new=change["logparams"]["newmodel"],
|
new=change["logparams"]["newmodel"],
|
||||||
reason=parsed_comment)
|
reason=parsed_comment)
|
||||||
|
elif action == "contentmodel/new":
|
||||||
|
link = create_article_path(change["title"])
|
||||||
|
embed["title"] = _("Created the page {article} using a non-default content model").format(article=change["title"])
|
||||||
|
parsed_comment = _("Created with model {new}: {reason}").format(new=change["logparams"]["newmodel"], reason=parsed_comment)
|
||||||
elif action == "sprite/sprite":
|
elif action == "sprite/sprite":
|
||||||
link = create_article_path(change["title"])
|
link = create_article_path(change["title"])
|
||||||
embed["title"] = _("Edited the sprite for {article}").format(article=change["title"])
|
embed["title"] = _("Edited the sprite for {article}").format(article=change["title"])
|
||||||
|
|
Loading…
Reference in a new issue