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

Unified Diff: MoinMoin/templates/revert.html

Issue 10973043: Support for multiple names in Revert view
Patch Set: Removed killing of names. Created 11 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
« MoinMoin/apps/frontend/views.py ('K') | « MoinMoin/apps/frontend/views.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: MoinMoin/templates/revert.html
===================================================================
--- a/MoinMoin/templates/revert.html
+++ b/MoinMoin/templates/revert.html
@@ -1,9 +1,9 @@
{% import "forms.html" as forms %}
{% extends theme("layout.html") %}
{% block content %}
-<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1>
+<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s, names '%(new_names)s') ", item_name=fqname | shorten_item_name, rev_id=rev_id | shorten_id, new_names=item.meta['name'] | join('|')) }}</h1>
<div class="moin-form">
-{{ gen.form.open(form, method="post", action=url_for('frontend.revert_item', item_name=item.name, rev=rev_id)) }}
+{{ gen.form.open(form, method="post", action=url_for('frontend.revert_item', item_name=item.fqname, rev=rev_id)) }}
{{ forms.render_errors(form) }}
<dl>
{{ forms.render(form['comment']) }}
« MoinMoin/apps/frontend/views.py ('K') | « MoinMoin/apps/frontend/views.py ('k') | no next file » | no next file with comments »

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