Mercurial > moin-2.0
changeset 2099:e9d25b2c89a6
Solves issue 288, destroy revision view should use abbreviated revid
| author | Ashutosh Singla <ashu1461@gmail.com> |
|---|---|
| date | Tue, 16 Apr 2013 03:51:49 +0530 |
| parents | ce204ae5e52d |
| children | 129929623809 |
| files | MoinMoin/templates/destroy.html MoinMoin/templates/meta.html MoinMoin/templates/revert.html MoinMoin/templates/search.html |
| diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/templates/destroy.html Sat Apr 13 00:55:09 2013 +0530 +++ b/MoinMoin/templates/destroy.html Tue Apr 16 03:51:49 2013 +0530 @@ -17,7 +17,7 @@ {{ gen.form.close() }} </div> {% else %} - <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id) }}</h1> + <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1> <div class="moin-form"> {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name, rev=rev_id)) }} {{ forms.render_errors(form) }}
--- a/MoinMoin/templates/meta.html Sat Apr 13 00:55:09 2013 +0530 +++ b/MoinMoin/templates/meta.html Tue Apr 16 03:51:49 2013 +0530 @@ -9,7 +9,7 @@ {% block content_data %} <h1> {{ title }} - {% if show_revision %}({{ _("Revision") }} {{ rev.revid }}){% endif %} + {% if show_revision %}({{ _("Revision") }} {{ rev.revid | shorten_id }}){% endif %} </h1> {% if meta_rendered %} <div id="moin-content-meta">
--- a/MoinMoin/templates/revert.html Sat Apr 13 00:55:09 2013 +0530 +++ b/MoinMoin/templates/revert.html Tue Apr 16 03:51:49 2013 +0530 @@ -1,7 +1,7 @@ {% 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) }}</h1> +<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1> <div class="moin-form"> {{ gen.form.open(form, method="post", action=url_for('frontend.revert_item', item_name=item.name, rev=rev_id)) }} {{ forms.render_errors(form) }}
--- a/MoinMoin/templates/search.html Sat Apr 13 00:55:09 2013 +0530 +++ b/MoinMoin/templates/search.html Tue Apr 16 03:51:49 2013 +0530 @@ -56,7 +56,7 @@ {% endif %} <tr> <td> - <p class="info searchhitinfobar">{{ _("Revision: %(revid)s Last Change: %(mtime)s", revid=result['revid'], mtime=result['mtime']|datetimeformat) }}</p> + <p class="info searchhitinfobar">{{ _("Revision: %(revid)s Last Change: %(mtime)s", revid=result['revid']|shorten_id, mtime=result['mtime']|datetimeformat) }}</p> </td> </tr> <tr>
