# HG changeset patch # User Mads Kiilerich # Date 2013-12-10 18:30:37 # Node ID bbd34de02e3829f652fe4aa5f7a936f22bcf4610 # Parent bc03f5a9f178b8f2370e04497b86cd0b2721fa1f pull requests: make lists of PRs more readable 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 @@ -4746,7 +4746,7 @@ PULL REQUESTS } div.pr-details-title.closed, -#pullrequests_container li.closed a +#pullrequests_container li.closed div div { color: #555; background: #eee; @@ -4761,9 +4761,8 @@ div.pr-details-title { } div.pr { - border-bottom: 1px solid #DDD; margin: 0px 20px; - padding: 10px 4px; + padding: 4px 4px; } div.pr-desc { margin: 0px 20px; diff --git a/kallithea/templates/pullrequests/pullrequest_data.html b/kallithea/templates/pullrequests/pullrequest_data.html --- a/kallithea/templates/pullrequests/pullrequest_data.html +++ b/kallithea/templates/pullrequests/pullrequest_data.html @@ -9,14 +9,17 @@ %endif - ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))} - + ${pr.title or _("(no title)")} %if pr.is_closed(): ${_('Closed')} %endif + + ${_('opened on %s from') % (h.fmt_date(pr.created_on))} + <% org_ref_name=pr.org_ref.rsplit(':', 2)[-2] %> + + ${pr.org_repo.repo_name}#${org_ref_name} + -
${_('Title')}: ${pr.title}
-
${pr.description}
% endfor 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,12 +1,8 @@ -%if c.show_closed: - ${h.checkbox('show_closed',checked="checked", label=_('Show closed pull requests'))} -%else: - ${h.checkbox('show_closed',label=_('Show closed pull requests'))} -%endif +${h.checkbox('show_closed',checked="checked" if c.show_closed else "", label=_('Show closed pull requests too'))}
${_('Opened by me')}
${_('I participate in')}