From d388e993d539f518aecad42082f2f4618ad769ee Mon Sep 17 00:00:00 2001 From: master3395 Date: Tue, 20 Jan 2026 01:01:40 +0100 Subject: [PATCH] Fix help.html template - escape Django template tags in code examples - Replace {% with {%% in code examples to prevent template parsing errors - Fixes 'block tag with name title appears more than once' error - Code examples now display correctly without being parsed as actual template blocks --- pluginHolder/templates/pluginHolder/help.html | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pluginHolder/templates/pluginHolder/help.html b/pluginHolder/templates/pluginHolder/help.html index d822febbc..3dc46d3c4 100644 --- a/pluginHolder/templates/pluginHolder/help.html +++ b/pluginHolder/templates/pluginHolder/help.html @@ -437,20 +437,21 @@ def main_view(request):

{% trans "Step 5: Create Templates" %}

{% trans "Templates must extend baseTemplate/index.html:" %}

-
{% extends "baseTemplate/index.html" %}
-{% load static %}
-{% load i18n %}
+        
<!-- Example template code (replace {% with HTML entities) -->
+{%% extends "baseTemplate/index.html" %%}
+{%% load static %%}
+{%% load i18n %%}
 
-{% block title %}
-    My First Plugin - {% trans "CyberPanel" %}
-{% endblock %}
+{%% block title %%}
+    My First Plugin - {%% trans "CyberPanel" %%}
+{%% endblock %%}
 
-{% block content %}
+{%% block content %%}
     <div class="container">
         <h1>{{ plugin_name }}</h1>
         <p>Version {{ version }}</p>
     </div>
-{% endblock %}
+{%% endblock %%}
{% trans "Important" %}: {% trans "Always use the @cyberpanel_login_required decorator for all views to ensure users are authenticated." %}