Skip to content

Commit 1d62d83

Browse files
authored
Merge pull request #1978 from UlrichB22/print_slides
Suppress printing of slideshow start button
2 parents ee8ec9a + e6d3c6e commit 1d62d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/moin/macros/SlideShow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright: 2024 MoinMoin:UlrichB
1+
# Copyright: 2024-2025 MoinMoin:UlrichB
22
# License: GNU GPL v2 (or any later version), see LICENSE.txt for details.
33

44
"""
@@ -16,5 +16,5 @@ def macro(self, content, arguments, page_url, alternative):
1616
attrib = {moin_page.class_: "fa-regular fa-circle-play"}
1717
children = [moin_page.span(attrib=attrib), _(" Start SlideShow")]
1818
url = url_for("frontend.slide_item", item_name=page_url.path[1:])
19-
result = moin_page.a(attrib={xlink.href: url}, children=children)
19+
result = moin_page.a(attrib={xlink.href: url, moin_page.class_: "moin-no-print"}, children=children)
2020
return result

0 commit comments

Comments
 (0)