Show More
@@ -1979,6 +1979,7 b' class PullRequest(Base, BaseModel):' | |||||
1979 | 'mysql_charset': 'utf8'}, |
|
1979 | 'mysql_charset': 'utf8'}, | |
1980 | ) |
|
1980 | ) | |
1981 |
|
1981 | |||
|
1982 | # values for .status | |||
1982 | STATUS_NEW = u'new' |
|
1983 | STATUS_NEW = u'new' | |
1983 | STATUS_OPEN = u'open' |
|
1984 | STATUS_OPEN = u'open' | |
1984 | STATUS_CLOSED = u'closed' |
|
1985 | STATUS_CLOSED = u'closed' | |
@@ -1986,7 +1987,7 b' class PullRequest(Base, BaseModel):' | |||||
1986 | pull_request_id = Column('pull_request_id', Integer(), nullable=False, primary_key=True) |
|
1987 | pull_request_id = Column('pull_request_id', Integer(), nullable=False, primary_key=True) | |
1987 | title = Column('title', Unicode(256), nullable=True) |
|
1988 | title = Column('title', Unicode(256), nullable=True) | |
1988 | description = Column('description', UnicodeText(10240), nullable=True) |
|
1989 | description = Column('description', UnicodeText(10240), nullable=True) | |
1989 | status = Column('status', Unicode(256), nullable=False, default=STATUS_NEW) |
|
1990 | status = Column('status', Unicode(256), nullable=False, default=STATUS_NEW) # only for closedness, not approve/reject/etc | |
1990 | created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) |
|
1991 | created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) | |
1991 | updated_on = Column('updated_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) |
|
1992 | updated_on = Column('updated_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now) | |
1992 | user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None) |
|
1993 | user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None) |
@@ -14,27 +14,35 b'' | |||||
14 | <div class="date"> |
|
14 | <div class="date"> | |
15 | ${h.age(co.modified_at)} |
|
15 | ${h.age(co.modified_at)} | |
16 | </div> |
|
16 | </div> | |
17 | %if co.status_change: |
|
|||
18 | <div style="float:left" class="changeset-status-container"> |
|
|||
19 | <div style="float:left;padding:0px 2px 0px 2px"><span style="font-size: 18px;">›</span></div> |
|
|||
20 | <div title="${_('Changeset status')}" class="changeset-status-lbl"> ${co.status_change[0].status_lbl}</div> |
|
|||
21 | <div class="changeset-status-ico"><img src="${h.url(str('/images/icons/flag_status_%s.png' % co.status_change[0].status))}" /></div> |
|
|||
22 | </div> |
|
|||
23 | %endif |
|
|||
24 |
|
17 | |||
25 | <div style="float:left;padding:4px 0px 0px 5px"> |
|
18 | <div style="float:left;padding:4px 0px 0px 5px"> | |
26 | <span class=""> |
|
19 | <span class=""> | |
27 | %if co.pull_request: |
|
20 | %if co.pull_request: | |
28 | <a href="${h.url('pullrequest_show',repo_name=co.pull_request.other_repo.repo_name,pull_request_id=co.pull_request.pull_request_id)}"> |
|
21 | <a href="${h.url('pullrequest_show',repo_name=co.pull_request.other_repo.repo_name,pull_request_id=co.pull_request.pull_request_id)}"> | |
29 | %if co.status_change: |
|
22 | %if co.status_change: | |
30 | ${_('Status change on pull request #%s') % co.pull_request.pull_request_id} |
|
23 | ${_('Status change on pull request #%s') % co.pull_request.pull_request_id}: | |
31 | %else: |
|
24 | %else: | |
32 | ${_('Comment on pull request #%s') % co.pull_request.pull_request_id} |
|
25 | ${_('Comment on pull request #%s') % co.pull_request.pull_request_id} | |
33 | %endif |
|
26 | %endif | |
34 | </a> |
|
27 | </a> | |
|
28 | %else: | |||
|
29 | %if co.status_change: | |||
|
30 | ${_('Status change on changeset')}: | |||
|
31 | %else: | |||
|
32 | ${_('Comment on changeset')} | |||
|
33 | %endif | |||
35 | %endif |
|
34 | %endif | |
36 | </span> |
|
35 | </span> | |
37 | </div> |
|
36 | </div> | |
|
37 | ||||
|
38 | %if co.status_change: | |||
|
39 | <div style="float:left" class="changeset-status-container"> | |||
|
40 | <div style="float:left;padding:10px 2px 0px 2px"></div> | |||
|
41 | <div title="${_('Changeset status')}" class="changeset-status-lbl"> ${co.status_change[0].status_lbl}</div> | |||
|
42 | <div class="changeset-status-ico"><img src="${h.url(str('/images/icons/flag_status_%s.png' % co.status_change[0].status))}" /></div> | |||
|
43 | </div> | |||
|
44 | %endif | |||
|
45 | ||||
38 | <a class="permalink" href="#comment-${co.comment_id}">¶</a> |
|
46 | <a class="permalink" href="#comment-${co.comment_id}">¶</a> | |
39 | %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: |
|
47 | %if h.HasPermissionAny('hg.admin', 'repository.admin')() or co.author.user_id == c.rhodecode_user.user_id: | |
40 | <div onClick="deleteComment(${co.comment_id})" class="buttons delete-comment ui-btn small">${_('Delete')}</div> |
|
48 | <div onClick="deleteComment(${co.comment_id})" class="buttons delete-comment ui-btn small">${_('Delete')}</div> |
General Comments 0
You need to be logged in to leave comments.
Login now