##// END OF EJS Templates
pull-requests: show pr version in the my-account and repo pr listing grids.
milka -
r4557:5a275c9f default
parent child Browse files
Show More
@@ -751,7 +751,8 b' class MyAccountView(BaseAppView, DataGri'
751 'title': _render('pullrequest_title', pr.title, pr.description),
751 'title': _render('pullrequest_title', pr.title, pr.description),
752 'description': h.escape(pr.description),
752 'description': h.escape(pr.description),
753 'updated_on': _render('pullrequest_updated_on',
753 'updated_on': _render('pullrequest_updated_on',
754 h.datetime_to_time(pr.updated_on)),
754 h.datetime_to_time(pr.updated_on),
755 pr.versions_count),
755 'updated_on_raw': h.datetime_to_time(pr.updated_on),
756 'updated_on_raw': h.datetime_to_time(pr.updated_on),
756 'created_on': _render('pullrequest_updated_on',
757 'created_on': _render('pullrequest_updated_on',
757 h.datetime_to_time(pr.created_on)),
758 h.datetime_to_time(pr.created_on)),
@@ -121,7 +121,8 b' class RepoPullRequestsView(RepoAppView, '
121 'title': _render('pullrequest_title', pr.title, pr.description),
121 'title': _render('pullrequest_title', pr.title, pr.description),
122 'description': h.escape(pr.description),
122 'description': h.escape(pr.description),
123 'updated_on': _render('pullrequest_updated_on',
123 'updated_on': _render('pullrequest_updated_on',
124 h.datetime_to_time(pr.updated_on)),
124 h.datetime_to_time(pr.updated_on),
125 pr.versions_count),
125 'updated_on_raw': h.datetime_to_time(pr.updated_on),
126 'updated_on_raw': h.datetime_to_time(pr.updated_on),
126 'created_on': _render('pullrequest_updated_on',
127 'created_on': _render('pullrequest_updated_on',
127 h.datetime_to_time(pr.created_on)),
128 h.datetime_to_time(pr.created_on)),
@@ -397,7 +397,10 b''
397 % endif
397 % endif
398 </%def>
398 </%def>
399
399
400 <%def name="pullrequest_updated_on(updated_on)">
400 <%def name="pullrequest_updated_on(updated_on, pr_version=None)">
401 % if pr_version:
402 <code>v${pr_version}</code>
403 % endif
401 ${h.age_component(h.time_to_utcdatetime(updated_on))}
404 ${h.age_component(h.time_to_utcdatetime(updated_on))}
402 </%def>
405 </%def>
403
406
General Comments 0
You need to be logged in to leave comments. Login now