diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -3,11 +3,11 @@ <%inherit file="/base/base.html"/> <%def name="title()"> - ${c.repo_name} ${_('Changeset')} - r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} - ${c.rhodecode_name} + ${_('%s Changeset') % c.repo_name} - r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)} - ${c.rhodecode_name} <%def name="breadcrumbs_links()"> - ${h.link_to(u'Home',h.url('/'))} + ${h.link_to(_(u'Home'),h.url('/'))} » ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))} » @@ -31,15 +31,21 @@ r${c.changeset.revision}:${h.short_id(c.changeset.raw_id)}
- ${c.changeset.date} + ${h.fmt_date(c.changeset.date)} +
+
+ %if c.statuses: +
[${h.changeset_status_lbl(c.statuses[0])}]
+
+ %endif
- - + + ${c.ignorews_url(request.GET)} ${c.context_url(request.GET)}
-
${len(c.comments)} comment(s) (${c.inline_cnt} ${_('inline')})
+
${ungettext("%d comment", "%d comments", len(c.comments)) % len(c.comments)} ${ungettext("(%d inline)", "(%d inline)", c.inline_cnt) % c.inline_cnt}
@@ -47,12 +53,12 @@
- gravatar + gravatar
${h.person(c.changeset.author)}
${h.email_or_none(c.changeset.author)}
-
${h.urlify_commit(h.wrap_paragraphs(c.changeset.message),c.repo_name)}
+
${h.urlify_commit(c.changeset.message, c.repo_name)}
@@ -116,24 +122,36 @@
- + ## diff block <%namespace name="diff_block" file="/changeset/diff_block.html"/> ${diff_block.diff_block(c.changes)} ## template for inline comment form <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> - ${comment.comment_inline_form(c.changeset)} + ${comment.comment_inline_form()} + + ## render comments and inlines + ${comment.generate_comments()} - ## render comments - ${comment.comments(c.changeset)} + ## main comment form and it status + ${comment.comments(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id), + h.changeset_status(c.rhodecode_db_repo, c.changeset.raw_id))} + + ## FORM FOR MAKING JS ACTION AS CHANGESET COMMENTS