All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] [error-report-web]
@ 2014-09-18 10:12 Roxana Ciobanu
  2014-09-18 10:12 ` [PATCH 1/1] error-report-web: Enhancements to the error pager Roxana Ciobanu
  0 siblings, 1 reply; 3+ messages in thread
From: Roxana Ciobanu @ 2014-09-18 10:12 UTC (permalink / raw)
  To: yocto

The following changes since commit 661cc25d79ce5a443b3ef842ea97b3e913cd2818:

  error-report-web: Sorting error tables (2014-09-08 17:02:24 +0300)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib roxana/YB6540
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/YB6540

Roxana Ciobanu (1):
  error-report-web: Enhancements to the error pager

 Post/static/css/custom.css    | 17 +++++++++++++++++
 templates/error-details.html  | 22 ++++++++++++++++------
 templates/error-page.html     |  2 +-
 templates/latest-errors.html  | 25 ++++++++++++++++---------
 templates/search-details.html | 16 ++++++++++++----
 5 files changed, 62 insertions(+), 20 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] error-report-web: Enhancements to the error pager
  2014-09-18 10:12 [PATCH 0/1] [error-report-web] Roxana Ciobanu
@ 2014-09-18 10:12 ` Roxana Ciobanu
  0 siblings, 0 replies; 3+ messages in thread
From: Roxana Ciobanu @ 2014-09-18 10:12 UTC (permalink / raw)
  To: yocto

- add link to the Yocto Project web repositor
- add link to the Yocto Project Bugzilla instance

[YOCTO #6540]

Signed-off-by: Roxana Ciobanu <roxana.ciobanu@intel.com>
---
 Post/static/css/custom.css    | 17 +++++++++++++++++
 templates/error-details.html  | 22 ++++++++++++++++------
 templates/error-page.html     |  2 +-
 templates/latest-errors.html  | 25 ++++++++++++++++---------
 templates/search-details.html | 16 ++++++++++++----
 5 files changed, 62 insertions(+), 20 deletions(-)

diff --git a/Post/static/css/custom.css b/Post/static/css/custom.css
index f2a35a6..809f5a5 100644
--- a/Post/static/css/custom.css
+++ b/Post/static/css/custom.css
@@ -83,3 +83,20 @@ td a:visited {
 th a, th span {
 	font-weight: normal;
 }
+.dl-vertical dd {
+	margin-bottom: 10px;
+}
+.dd a {
+	display: block;
+	margin: 10px 0;
+}
+.popover-content p {
+		margin-top: 10px;
+}
+.popover-content p > a {
+		color: #0088CC;
+}
+.popover-content p > a:hover {
+		color: #005580;
+			text-decoration: underline;
+}
diff --git a/templates/error-details.html b/templates/error-details.html
index f2dc010..ffb5f7e 100644
--- a/templates/error-details.html
+++ b/templates/error-details.html
@@ -41,14 +41,24 @@
 							<dd>{{ detail.BUILD.BRANCH }}</dd>
 							<dt>Commit:</dt>
 							<dd class = "commit">{{ detail.BUILD.COMMIT }}</dd>
+								{% if "yocto-autobuilder" in detail.BUILD.NAME and "master" in detail.BUILD.BRANCH %}
+									<dd><a target="_blank" href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id={{detail.BUILD.COMMIT}}">View commit</a></dd> 
+								{% endif %}
 							<dt>Submitter:</dt>
-							<dd>{{ detail.BUILD.NAME }}</dd>
+								{% if "@" in detail.BUILD.EMAIL %}
+									<dd> <a href="mailto:{{detail.BUILD.EMAIL}}">{{detail.BUILD.EMAIL}}</a> </dd>
+								{% else %}
+									<dd>{{ detail.BUILD.NAME }}</dd>
+								{% endif %}
+								<!--
+								{% if "yocto-autobuilder" in detail.BUILD.NAME %}
+										<dd><a target="_blank" href="#" >View Autobuilder failed step</a></dd>
+								{% endif %}
+								-->
 						</dl>
-						{% ifnotequal detail.BUILD.EMAIL "" %}
-							{% if "@" in detail.BUILD.EMAIL %}
-								<a class="btn btn-large btn-primary" href="mailto:{{detail.BUILD.EMAIL}}">Email submitter</a>
-							{% endif %}
-						{% endifnotequal %}
+						<div>
+						<a class="btn btn-large btn-block" target="_blank" href="https://bugzilla.yoctoproject.org/enter_bug.cgi" >Open a bug</a>
+						</div>
 				{% endfor %}
 				{% endif %}
 				</div>
diff --git a/templates/error-page.html b/templates/error-page.html
index d811c77..a090e15 100644
--- a/templates/error-page.html
+++ b/templates/error-page.html
@@ -13,7 +13,7 @@
 				<li> <a href="{% url main %}" >Statistics </a> </li>
 			</ul>
 			<div class="alert">
-				{% ifequal query "autobuilder" %}
+				{% ifequal d "autobuilder" %}
 					<h3>No Autobuilder errors found</h3>
 				{% else %}
 					<h3>No errors found</h3>
diff --git a/templates/latest-errors.html b/templates/latest-errors.html
index d002a65..3bafce7 100644
--- a/templates/latest-errors.html
+++ b/templates/latest-errors.html
@@ -184,12 +184,12 @@
 		<div class="row-fluid">
 			<ul class="nav nav-pills">
 				{% ifequal d 'autobuilder' %}
-					<li class="active"> <a href="javascript:reload_params({'query' : 'latest_all'})">Latest errors</a></li>
-					<li> <a href="javascript:reload_params({})">Latest Autobuilder errors</a></li>
+					<li> <a href="javascript:reload_params({'query' : 'all_latest'})">Latest errors</a></li>
+					<li class="active"> <a href="javascript:reload_params({})">Latest Autobuilder errors</a></li>
 
 				{% else %}
 					<li class="active"> <a href="javascript:reload_params({})">Latest errors</a></li>
-					<li > <a href="javascript:reload_params({'query' : 'latest_autobuilder'})">Latest Autobuilder errors</a></li>
+					<li > <a href="javascript:reload_params({'query' : 'autobuilder_latest'})">Latest Autobuilder errors</a></li>
 				{% endifequal %}
 					<li> <a href="{% url main %}" >Statistics </a> </li>
 			</ul>
@@ -318,12 +318,18 @@
 								<td class="build_sys"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.BUILD_SYS }}</a></td>
 								<td class="target_sys"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.TARGET_SYS }}</a></td>
 								<td class="host_distro"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.NATIVELSBSTRING }}</a></td>
-								<td class="branch"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.BRANCH }} </a></td>
+								<td class="branch"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.BRANCH }}</a></td>
 								<td class="commit">
 									{% autoescape off %}
-										<div class="btn" rel="popover" data-content= {{ detail.BUILD.COMMIT|escape}} title="">
-											{% endautoescape %}
-										{{ detail.BUILD.COMMIT|truncatechars:10}}
+										<div class="btn" rel="popover"
+												data-content='
+													&lt;div&gt; {{ detail.BUILD.COMMIT|escape}}&lt;/div&gt;
+													{% if "yocto-autobuilder" in detail.BUILD.NAME and "master" in detail.BUILD.BRANCH %}
+														&lt;p&gt; &lt;a target="_blank" href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id={{detail.BUILD.COMMIT}}"&gt;View commit&lt;/a&gt;&lt;/p&gt;
+													{% endif %}'
+												title="">
+									{% endautoescape %}
+									{{ detail.BUILD.COMMIT|truncatechars:10}}
 										</div>
 								</td>
 								<td class="submitter"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.NAME }} </a></td>
@@ -384,8 +390,9 @@
 		</div> <!-- row-fluid -->
 		<script>
 			$(document).ready(function() {
-				$('.commit > div').popover({placement:'left'})
-
+				$('.commit > div').popover({
+					placement:'left',
+					html: true})
 				// we load cookies for the column display$
 				save = $.cookie('_displaycols_{{objectname}}');
 				if (save != undefined) {
diff --git a/templates/search-details.html b/templates/search-details.html
index fbba5a9..17dc14b 100644
--- a/templates/search-details.html
+++ b/templates/search-details.html
@@ -307,9 +307,15 @@
 								<td class="branch"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.BRANCH }} </a></td>
 								<td class="commit">
 									{% autoescape off %}
-										<div class="btn" rel="popover" data-content= {{ detail.BUILD.COMMIT|escape}} title="">
-											{% endautoescape %}
-										{{ detail.BUILD.COMMIT|truncatechars:10}}
+										<div class="btn" rel="popover"
+											data-content='
+											&lt;div&gt; {{ detail.BUILD.COMMIT|escape}}&lt;/div&gt;
+											{% if "yocto-autobuilder" in detail.BUILD.NAME and "master" in detail.BUILD.BRANCH %}
+												&lt;p&gt; &lt;a target="_blank" href="http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id={{detail.BUILD.COMMIT}}"&gt;View commit&lt;/a&gt;&lt;/p&gt;
+											{% endif %}'
+											title="">
+									{% endautoescape %}
+									{{ detail.BUILD.COMMIT|truncatechars:10}}
 										</div>
 								</td>
 								<td class="submitter"><a href="{% url id detail.id details.number items d %}">{{ detail.BUILD.NAME }} </a></td>
@@ -391,7 +397,9 @@
 			</div>
 				<script>
 				$(document).ready(function() {
-					$('.commit > div').popover({placement:'left'})
+					$('.commit > div').popover({
+						placement:'left',
+						html: true})
 
 					// we load cookies for the column display$
 					save = $.cookie('_displaycols_{{objectname}}');
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 0/1] [error-report-web]
@ 2014-09-08 14:07 Roxana Ciobanu
  0 siblings, 0 replies; 3+ messages in thread
From: Roxana Ciobanu @ 2014-09-08 14:07 UTC (permalink / raw)
  To: yocto

The following changes since commit 170c8eb84cca9e3c84b774ee395fb5748b4ab311:

  error-report-tool: apply changes to the landing page (2014-09-05 13:57:00 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib roxana/YB6539
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=roxana/YB6539

Roxana Ciobanu (1):
  error-report-web: Sorting error tables

 Post/static/css/custom.css    |  15 ++
 Post/views.py                 | 135 +++++++++++--
 templates/latest-errors.html  | 391 ++++++++++++++++++++++++++----------
 templates/search-details.html | 446 +++++++++++++++++++++++++++++-------------
 4 files changed, 732 insertions(+), 255 deletions(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-18 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-18 10:12 [PATCH 0/1] [error-report-web] Roxana Ciobanu
2014-09-18 10:12 ` [PATCH 1/1] error-report-web: Enhancements to the error pager Roxana Ciobanu
  -- strict thread matches above, loose matches on Subject: below --
2014-09-08 14:07 [PATCH 0/1] [error-report-web] Roxana Ciobanu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.