diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css
--- a/kallithea/public/css/style.css
+++ b/kallithea/public/css/style.css
@@ -4648,13 +4648,12 @@ PULL REQUESTS
*****/
.pullrequests_section_head {
padding: 10px 10px 10px 0px;
+ margin: 0 20px;
font-size: 16px;
font-weight: bold;
}
-div.pr-details-title.closed,
-#pullrequests_container li.closed div div
- {
+div.pr-details-title.closed {
color: #555;
background: #eee;
}
@@ -4671,9 +4670,6 @@ div.pr {
div.pr-desc {
margin: 0px 20px;
}
-div.pr-closed {
- background-color: #eee;
-}
tr.pr-closed td {
background-color: #eee !important;
color: #555 !important;
diff --git a/kallithea/templates/pullrequests/pullrequest_show_my.html b/kallithea/templates/pullrequests/pullrequest_show_my.html
--- a/kallithea/templates/pullrequests/pullrequest_show_my.html
+++ b/kallithea/templates/pullrequests/pullrequest_show_my.html
@@ -30,9 +30,7 @@
-
- <%include file='pullrequest_show_my_data.html'/>
-
+ <%include file='pullrequest_show_my_data.html'/>
%def>
diff --git a/kallithea/templates/pullrequests/pullrequest_show_my_data.html b/kallithea/templates/pullrequests/pullrequest_show_my_data.html
--- a/kallithea/templates/pullrequests/pullrequest_show_my_data.html
+++ b/kallithea/templates/pullrequests/pullrequest_show_my_data.html
@@ -1,69 +1,7 @@
+<%namespace name="pullrequests" file="/pullrequests/pullrequest_data.html"/>
+
${_('Pull Requests Created by Me')}
-
- %if c.my_pull_requests:
- %for pull_request in c.my_pull_requests:
- -
-
- %if pull_request.last_review_status:
-
- %else:
-
- %endif
-
- ${pull_request.title or _("(no title)")}
-
- ${_('created on %s from') % (h.fmt_date(pull_request.created_on))}
- <% org_ref_name=pull_request.org_ref.rsplit(':', 2)[-2] %>
-
- ${pull_request.org_repo.repo_name}#${org_ref_name}
-
- %if pull_request.is_closed():
- (${_('Closed')})
- %endif
- ${h.form(url('pullrequest_delete', repo_name=pull_request.other_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete', style="display:inline-block")}
-
- ${h.end_form()}
-
-
- %endfor
- %else:
- - ${_('Nothing here yet')}
- %endif
-
+${pullrequests.pullrequest_overview(c.my_pull_requests)}
${_('Pull Requests I Participate In')}
-
- %if c.participate_in_pull_requests:
- %for pull_request in c.participate_in_pull_requests:
- -
-
-
- %endfor
- %else:
- - ${_('Nothing here yet')}
- %endif
-
+${pullrequests.pullrequest_overview(c.participate_in_pull_requests)}