mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-21 19:41:30 +01:00
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
This commit is contained in:
@@ -437,20 +437,21 @@ def main_view(request):
|
||||
|
||||
<h3>{% trans "Step 5: Create Templates" %}</h3>
|
||||
<p>{% trans "Templates must extend baseTemplate/index.html:" %}</p>
|
||||
<pre><code>{% extends "baseTemplate/index.html" %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
<pre><code><!-- 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 %}</code></pre>
|
||||
{%% endblock %%}</code></pre>
|
||||
|
||||
<div class="alert alert-info">
|
||||
<strong>{% trans "Important" %}:</strong> {% trans "Always use the @cyberpanel_login_required decorator for all views to ensure users are authenticated." %}
|
||||
|
||||
Reference in New Issue
Block a user