Mercurial > hg > bts-webui
changeset 20:bdac3aa9ee4b draft
Improved bug page
author | marga |
---|---|
date | Tue, 17 Jul 2007 00:26:29 +0000 |
parents | 9724f1833add |
children | 60c62b3f6403 |
files | bts_webui/amancay/static/amancay.css bts_webui/amancay/templates/bug.html bts_webui/amancay/views.py |
diffstat | 3 files changed, 28 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bts_webui/amancay/static/amancay.css +++ b/bts_webui/amancay/static/amancay.css @@ -402,11 +402,22 @@ } -span.bug_log_title { +div.bug_log_title div.report_information { font-size: medium; + font-weight: normal; + color: #333333; +} +div.bug_log_title span.bug_number{ + font-weight: bold; +} +div.bug_log_title span.bug_title{ + font-size: large; font-weight: bold; color: #047F54; } + + + div.bug_log_item { margin-top: 1em; border: 1px solid #a3b8a7; @@ -422,6 +433,7 @@ span.bug_log_date { } span.bug_log_subject { + font-weight: bold; } div.bug_log_body { padding: 0.4em;
--- a/bts_webui/amancay/templates/bug.html +++ b/bts_webui/amancay/templates/bug.html @@ -5,7 +5,17 @@ {% block main_content %} <div class="bug_log"> -<span class="bug_log_title">Bug {{ bug_number }}</span> + +<div class="bug_log_title"> +<div class="report_information"> +Bug <span class="bug_number">{{ bug_number }}</span> +reported by <span class="bug_submitter"><a +href="mailto:{{ bug_originator.1 }}">{{ bug_originator.0 }}</a></span> +<span class="bug_date">on {{ bug_status.date|tstodate }}</span> +</div> +<span class="bug_title">on {{ bug_status.subject }}<br/></span> +</div> + {% if bug_messages %} {% for message in bug_messages %} <div class="bug_log_item">
--- a/bts_webui/amancay/views.py +++ b/bts_webui/amancay/views.py @@ -63,6 +63,8 @@ user = request.user queries = soap_queries() + bug_status = queries.get_bugs_status(bug_number)[0] + bug_originator = rfc822.parseaddr(bug_status["originator"]) bug_log = queries.get_bug_log(bug_number) # Regular expressions to parse the mails @@ -92,6 +94,8 @@ return render_to_response('bug.html', {'bug_number': bug_number, + 'bug_originator': bug_originator, + 'bug_status': bug_status, 'bug_messages': bug_messages, 'current_user': user} )