From 30ac8daa26e44d77b606eda4338c392f76245879 Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 26 Oct 2009 16:17:33 +0100 Subject: [PATCH] =?utf8?q?Poprawienie=20styl=C3=B3w=20wy=C5=9Bwietlania=20?= =?utf8?q?pull-request=C3=B3w.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- apps/explorer/views.py | 3 +-- platforma/static/css/managment.css | 17 ++++++++++++----- platforma/templates/manager/pull_request.html | 2 ++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/apps/explorer/views.py b/apps/explorer/views.py index b17b8c8e..2c9b17da 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -109,11 +109,10 @@ def _get_issues_for_file(fileid): # = Pull requests = # ================= def pull_requests(request): - objects = PullRequest.objects.order_by('status') + objects = PullRequest.objects.order_by('-status', 'timestamp') if not request.user.has_perm('explorer.book.can_share'): objects = objects.filter(comitter=request.user) - return direct_to_template(request, 'manager/pull_request.html', extra_context = {'objects': objects} ) diff --git a/platforma/static/css/managment.css b/platforma/static/css/managment.css index 5e1c5411..d1e2fc20 100644 --- a/platforma/static/css/managment.css +++ b/platforma/static/css/managment.css @@ -46,18 +46,25 @@ table.request-report margin-right: 10px; } -.request-report .status-N { - background-color: teal; +.pull-request.status-N { + background-color: #FFF; } -.request-report .status-R { +.pull-request.status-R { background-color: red; } -.request-report .status-A { - background-color: gray; +.pull-request.status-A { + background-color: #DDD; } .pull-request .diff { white-space: pre; + height: 360px; + width: 960px; + overflow: auto; + border: 1px solid #CCC; + margin-top: 10px; + background-color: #F9F9F9; + padding: 2px; } diff --git a/platforma/templates/manager/pull_request.html b/platforma/templates/manager/pull_request.html index 020fcdad..a44b1ede 100644 --- a/platforma/templates/manager/pull_request.html +++ b/platforma/templates/manager/pull_request.html @@ -85,11 +85,13 @@
  • data: {{ pullreq.timestamp }}
  • {{ pullreq.comment }}

    + {% ifnotequal pullreq.status 'A' %}

    Zobacz

    + {% endifnotequal %} {% endfor %} {% else %} -- 2.20.1