Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/moin/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from __future__ import annotations

import os
import re
import sys

from os import path, PathLike
Expand Down Expand Up @@ -408,7 +407,7 @@ def is_static_content(request_path):
Check if content is static and does not need usual wiki handling
"""

if request_path.startswith(("/static/", "/+serve/", "/+template/")) or re.match(r"/_themes/\w+/css/", request_path):
if request_path.startswith(("/static/", "/+serve/", "/+template/", "/_themes/")):
return True
else:
return False
2 changes: 1 addition & 1 deletion src/moin/themes/focus/templates/itemviews.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
</div>
{%- endif %}

{%- if endpoint == 'frontend.destroy_item' and user.may.destroy(fqname) %}
{%- if endpoint == 'frontend.destroy_item' and may.destroy %}
<div>
<a href="{{ url_for(endpoint, item_name = fqname) }}" title="{{ title }}" rel="nofollow">{{ a_label(icon_class, label) }}</a>
</div>
Expand Down