Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add sparklines to dashboard

  • Loading branch information...
commit 6c051524940586388059fb2a22a71cd4987c71c9 1 parent de83195
@dcramer dcramer authored
View
6 src/sentry.less
@@ -556,8 +556,14 @@ footer {
}
.meta {
+ right: 120px;
+ }
+
+ .sparkline {
right: 10px;
+ top: 18px;
}
+
.tag, .meta {
font-size: 11px;
}
View
4 src/sentry/static/sentry/styles/global.css
@@ -4376,7 +4376,11 @@ footer a:hover {
border-radius: 36px;
}
.events .event.event-small .meta {
+ right: 120px;
+}
+.events .event.event-small .sparkline {
right: 10px;
+ top: 18px;
}
.events .event.event-small .tag,
.events .event.event-small .meta {
View
3  src/sentry/static/sentry/styles/global.min.css
@@ -706,7 +706,8 @@ footer a{color:#f4f4f4;font-weight:bold;}footer a:hover{color:#fff;}
.events .event.event-small{min-height:30px;padding:8px 10px 8px 60px;}.events .event.event-small h3{margin:0;font-size:14px;line-height:16px;}
.events .event.event-small .message{font-size:12px;}
.events .event.event-small .count{left:10px;font-size:12px;width:36px;height:36px;line-height:38px;-webkit-border-radius:36px;-moz-border-radius:36px;border-radius:36px;}
-.events .event.event-small .meta{right:10px;}
+.events .event.event-small .meta{right:120px;}
+.events .event.event-small .sparkline{right:10px;top:18px;}
.events .event.event-small .tag,.events .event.event-small .meta{font-size:11px;}
label{font-weight:bold;}
pre span,code span{display:inline-block;}
View
1  src/sentry/templates/sentry/dashboard.html
@@ -118,6 +118,7 @@ <h3 class="pull-left">{% trans "New Events" %}</h3>
$ul.append($(group.html));
});
$cont.html($ul);
+ $cont.find('.sparkline').sparkline('html', {enableTagOptions: true});
} else {
$cont.html('<p>{% trans "No unresolved events are listed in the time period selected." %}</p>');
}
View
1  src/sentry/templates/sentry/partial/_group_small.html
@@ -24,6 +24,7 @@
{% endif %}
<span class="tag tag-project">{{ group.project.name }}</span>
</div>
+ <span class="sparkline" sparkwidth="100" sparkheight="20" sparklineColor="#ccc" sparkfillColor="false" sparkspotRadius="0"><!-- {{ metadata.historical_data }} --></span>
</div>
</li>
Please sign in to comment.
Something went wrong with that request. Please try again.