Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(336)

Unified Diff: MoinMoin/templates/modify_text_html.html

Issue 6432058: Implementing experimental itemtype (Closed)
Patch Set: address mentioned issues Created 12 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: MoinMoin/templates/modify_text_html.html
===================================================================
--- a/MoinMoin/templates/modify_text_html.html
+++ b/MoinMoin/templates/modify_text_html.html
@@ -1,13 +1,10 @@
-{% extends "modify_binary.html" %}
+{% from 'modify_text.html' import data_editor as base_editor %}
-{% block head %}
-{{ super() }}
+{% macro extra_head() %}
<script type="text/javascript" src="{{ url_for('serve.files', name='ckeditor', filename='ckeditor.js') }}"></script>
<link rel="stylesheet" href="{{ url_for('serve.files', name='ckeditor', filename='contents.css') }}" />
-{% endblock %}
+{% endmacro %}
-{% block data_editor %}
-<p>
-{{ gen.textarea(form['data_text'], class='ckeditor', lang=lang, dir=direction, rows=rows_data, cols=cols) }}
-</p>
-{% endblock %}
+{% macro data_editor(form) %}
+{{ gen.textarea(form['data_text'], class='ckeditor', lang=lang, dir=direction, rows=form.rows|string, cols=form.cols|string) }}
+{% endmacro %}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b