Solves issue 288, destroy revision view should use abbreviated revid
authorAshutosh Singla <ashu1461@gmail.com>
Tue, 16 Apr 2013 03:51:49 +0530
changeset 2099e9d25b2c89a6
parent 2098 ce204ae5e52d
child 2100 129929623809
Solves issue 288, destroy revision view should use abbreviated revid
MoinMoin/templates/destroy.html
MoinMoin/templates/meta.html
MoinMoin/templates/revert.html
MoinMoin/templates/search.html
     1.1 --- a/MoinMoin/templates/destroy.html	Sat Apr 13 00:55:09 2013 +0530
     1.2 +++ b/MoinMoin/templates/destroy.html	Tue Apr 16 03:51:49 2013 +0530
     1.3 @@ -17,7 +17,7 @@
     1.4      {{ gen.form.close() }}
     1.5      </div>
     1.6  {% else %}
     1.7 -    <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id) }}</h1>
     1.8 +    <h1>{{ _("DESTROY REVISION '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1>
     1.9      <div class="moin-form">
    1.10      {{ gen.form.open(form, method="post", action=url_for('frontend.destroy_item', item_name=item.name, rev=rev_id)) }}
    1.11        {{ forms.render_errors(form) }}
     2.1 --- a/MoinMoin/templates/meta.html	Sat Apr 13 00:55:09 2013 +0530
     2.2 +++ b/MoinMoin/templates/meta.html	Tue Apr 16 03:51:49 2013 +0530
     2.3 @@ -9,7 +9,7 @@
     2.4  {% block content_data %}
     2.5  <h1>
     2.6      {{ title }}
     2.7 -    {% if show_revision %}({{ _("Revision") }} {{ rev.revid }}){% endif %}
     2.8 +    {% if show_revision %}({{ _("Revision") }} {{ rev.revid | shorten_id }}){% endif %}
     2.9  </h1>
    2.10  {% if meta_rendered %}
    2.11  <div id="moin-content-meta">
     3.1 --- a/MoinMoin/templates/revert.html	Sat Apr 13 00:55:09 2013 +0530
     3.2 +++ b/MoinMoin/templates/revert.html	Tue Apr 16 03:51:49 2013 +0530
     3.3 @@ -1,7 +1,7 @@
     3.4  {% import "forms.html" as forms %}
     3.5  {% extends theme("layout.html") %}
     3.6  {% block content %}
     3.7 -<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id) }}</h1>
     3.8 +<h1>{{ _("Revert '%(item_name)s' (rev %(rev_id)s)", item_name=item.name, rev_id=rev_id | shorten_id) }}</h1>
     3.9  <div class="moin-form">
    3.10  {{ gen.form.open(form, method="post", action=url_for('frontend.revert_item', item_name=item.name, rev=rev_id)) }}
    3.11    {{ forms.render_errors(form) }}
     4.1 --- a/MoinMoin/templates/search.html	Sat Apr 13 00:55:09 2013 +0530
     4.2 +++ b/MoinMoin/templates/search.html	Tue Apr 16 03:51:49 2013 +0530
     4.3 @@ -56,7 +56,7 @@
     4.4                              {% endif %}
     4.5                              <tr>
     4.6                                  <td>
     4.7 -                                    <p class="info searchhitinfobar">{{ _("Revision: %(revid)s Last Change: %(mtime)s", revid=result['revid'], mtime=result['mtime']|datetimeformat) }}</p>
     4.8 +                                    <p class="info searchhitinfobar">{{ _("Revision: %(revid)s Last Change: %(mtime)s", revid=result['revid']|shorten_id, mtime=result['mtime']|datetimeformat) }}</p>
     4.9                                  </td>
    4.10                              </tr>
    4.11                              <tr>