mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 10:19:04 +01:00
Fix help.html template - use verbatim tags for code examples
- Wrap Django template code examples with {% verbatim %} tags
- Prevents Django from parsing template syntax in documentation code blocks
- Fixes 'Invalid block tag' error when displaying code examples
- All code examples now display correctly without syntax errors
This commit is contained in:
@@ -437,21 +437,22 @@ def main_view(request):
|
||||
|
||||
<h3>{% trans "Step 5: Create Templates" %}</h3>
|
||||
<p>{% trans "Templates must extend baseTemplate/index.html:" %}</p>
|
||||
<pre><code><!-- Example template code (replace {% with HTML entities) -->
|
||||
{%% extends "baseTemplate/index.html" %%}
|
||||
{%% load static %%}
|
||||
{%% load i18n %%}
|
||||
{% verbatim %}
|
||||
<pre><code>{% 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 %%}
|
||||
<div class="container">
|
||||
<h1>{{ plugin_name }}</h1>
|
||||
<p>Version {{ version }}</p>
|
||||
</div>
|
||||
{%% endblock %%}</code></pre>
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<h1>{{ plugin_name }}</h1>
|
||||
<p>Version {{ version }}</p>
|
||||
</div>
|
||||
{% endblock %}</code></pre>
|
||||
{% endverbatim %}
|
||||
|
||||
<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