changeset 2893:6a77d326d9d7

partial fix #471 remove basic theme delete, destroy, diff, diff_text, register, and rename templates
author RogerHaase <haaserd@gmail.com>
date Tue, 10 Feb 2015 08:22:27 -0700
parents 07de763fa0dc
children ffea4cf5a8f7
files MoinMoin/themes/basic/templates/delete.html MoinMoin/themes/basic/templates/destroy.html MoinMoin/themes/basic/templates/diff.html MoinMoin/themes/basic/templates/diff_text.html MoinMoin/themes/basic/templates/register.html MoinMoin/themes/basic/templates/rename.html
diffstat 6 files changed, 0 insertions(+), 202 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/delete.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-{% import "forms.html" as forms %}
-{% extends theme("show.html") %}
-
-{% set title = _("Delete '%(item_name)s'", item_name=item.name) %}
-
-{% block content %}
-    <h2>{{ title }}</h2>
-    <div class="row">
-        <div class="col-md-5">
-            {{ gen.form.open(form, method="post", action=url_for('frontend.delete_item', item_name=item.name)) }}
-                {{ forms.render_errors(form) }}
-
-                <div class="form-group">
-                    {{ forms.render_textcha(gen, form) }}
-                    {{ gen.input(form['comment'], type="text", class="form-control") }}
-                </div>
-
-                <div class="form-group">
-                    {{ forms.render_submit(form, class='btn btn-primary') }}
-                </div>
-            {{ gen.form.close() }}
-        </div>
-    </div>
-{% endblock %}
--- a/MoinMoin/themes/basic/templates/destroy.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-{% import "forms.html" as forms %}
-{% extends theme("show.html") %}
-
-{% set title = _("DESTROY COMPLETE ITEM '%(item_name)s'", item_name=item.name) %}
-
-{% block content %}
-    {% if rev_id == None %}
-        <h2>{{ title }}</h2>
-        <div class="row">
-            <div class="col-md-5">
-
-                {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name)) }}
-                    {{ forms.render_errors(form) }}
-
-                    <div class="form-group">
-                        {{ forms.render_textcha(gen, form) }}
-                        {{ gen.input(form['comment'], type="text", class="form-control") }}
-                    </div>
-
-                    <div class="form-group">
-                        {{ forms.render_submit(form, class='btn btn-primary') }}
-                    </div>
-                {{ gen.form.close() }}
-            </div>
-        </div>
-    {% else %}
-        <h2>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h2>
-        <div class="row">
-            <div class="col-md-5">
-                {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name, rev=rev_id)) }}
-                    {{ forms.render_errors(form) }}
-
-                    <div class="form-group">
-                        {{ gen.label(form['comment']) }}
-                        {{ gen.textarea(form['comment'], rows='1', class='form-control') }}
-                    </div>
-                    {{ forms.render_textcha(gen, form) }}
-
-                    <div class="form-group">
-                        {{ forms.render_submit(form, class='btn btn-primary') }}
-                    </div>
-                {{ gen.form.close() }}
-            </div>
-        </div>
-    {% endif %}
-{% endblock %}
--- a/MoinMoin/themes/basic/templates/diff.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-{% extends theme("layout.html") %}
-{% import theme("itemviews.html") as itemviews with context %}
-
-{% block views %}
-    {{ itemviews }}
-{% endblock %}
-
-{% block content %}
-    {% block headline %}
-        <i class="fa fa-chevron-left">
-            <a href="{{ url_for('frontend.history', item_name=item_name) }}"> {{ _("Back") }} </a>
-        </i>
-        <h2>{{ _("Diff for '%(item_name)s'", item_name=newrev.item.name) }}</h2>
-    {% endblock %}
-    {{ diff_html }}
-{% endblock %}
--- a/MoinMoin/themes/basic/templates/diff_text.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-{% import "utils.html" as utils %}
-
-{% macro show_meta(rev) %}
-    <div class="moin-diff-info moin-diff-info-rev-id">
-        <span class="moin-diff-info-caption">Revision:</span>
-        <span class="moin-diff-info-value">{{ rev.meta['revid'] | shorten_id }}</span>
-    </div>
-    <div class="moin-diff-info moin-diff-info-rev-author">
-        <span class="moin-diff-info-caption">Editor:</span>
-        <span class="moin-diff-info-value">
-            {{ utils.editor_info(rev.meta) }}
-        </span>
-    </div>
-    <div class="moin-diff-info moin-diff-info-rev-size">
-        <span class="moin-diff-info-caption">Size:</span>
-        <span class="moin-diff-info-value">{{ rev.meta['size'] }}</span>
-    </div>
-    <div class="moin-diff-info moin-diff-info-rev-comment">
-        <span class="moin-diff-info-caption">Comment:</span>
-        <span class="moin-diff-info-value">{{ rev.meta['comment'] }}</span>
-    </div>
-{% endmacro %}
-
-<table class="table table-condensed">
-    <tr>
-        <td class="moin-diff-header">
-            {{ show_meta(oldrev) }}
-        </td>
-        <td class="moin-diff-header">
-            {{ show_meta(newrev) }}
-        </td>
-    </tr>
-    <tr>
-        <td class="moin-diff-removed"><span>{{ _('Deletions are marked like this.') }}</span></td>
-        <td class="moin-diff-added"><span>{{ _('Additions are marked like this.') }}</span></td>
-    </tr>
-    {% for llineno, lcontent, rlineno, rcontent in diffs %}
-        <tr class="moin-diff-line-number">
-            <td><a href="#{{ llineno }}">{{ _('Line') }} {{ llineno }}:</a></td>
-            <td><a href="#{{ rlineno }}">{{ _('Line') }} {{ rlineno }}:</a></td>
-        </tr>
-        <tr>
-            <td class="moin-diff-removed">{{ lcontent }}</td>
-            <td class="moin-diff-added">{{ rcontent }}</td>
-        </tr>
-    {% endfor %}
-</table>
--- a/MoinMoin/themes/basic/templates/register.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-{% extends theme("layout.html") %}
-{% import "forms.html" as forms %}
-
-{% block content %}
-    <h2>{{ _('Create Account') }}</h2>
-    <div class="row">
-        <div class="col-md-4">
-
-            {{ gen.form.open(form, method="post", action=url_for('frontend.register')) }}
-
-                {% if form.errors %}
-                    <div class="moin-flash moin-flash-error">
-                        {% for error in form.errors %}
-                            {{ error }}
-                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
-                        {% endfor %}
-                    </div>
-                {% endif %}
-
-                {% for field, fieldtype in [
-                        ('username', 'text'),
-                        ('password1', 'password'),
-                        ('password2', 'password'),
-                        ('email', 'text'),
-                        ('openid', 'text'),
-                        ] %}
-                    <div class="form-group">
-                        {{ gen.label(form[field]) }}
-                        {{ gen.input(form[field], type=fieldtype, class="form-control") }}
-                    </div>
-                {% endfor %}
-                {{ forms.render_textcha(gen, form) }}
-
-                <div class="form-group">
-                    {{ forms.render_submit(form, class='btn btn-primary') }}
-                </div>
-
-            {{ gen.form.close() }}
-        </div>
-    </div>
-{% endblock %}
--- a/MoinMoin/themes/basic/templates/rename.html	Tue Feb 10 07:57:01 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-{% import "forms.html" as forms %}
-{% extends theme("show.html") %}
-
-{% set title = _("Rename '%(item_name)s'", item_name=item.name) %}
-
-{% block content %}
-    <h2>{{ title }}</h2>
-    <div class="row">
-        <div class="col-md-5">
-            {{ gen.form.open(form, method="post", action=url_for('frontend.rename_item', item_name=item.name)) }}
-                {{ forms.render_errors(form) }}
-                <div class="form-group">
-                    {{ gen.label(form['target']) }}
-                    {{ gen.input(form['target'], type="text", class="form-control") }}
-                </div>
-
-                <div class="form-group">
-                    {{ forms.render_textcha(gen, form) }}
-                    {{ gen.input(form['comment'], type="text", class="form-control") }}
-                </div>
-
-                <div class="form-group">
-                    {{ forms.render_submit(form, class='btn btn-primary') }}
-                </div>
-            {{ gen.form.close() }}
-        </div>
-    </div>
-{% endblock %}