Skip to content

Commit 8a9cb3a

Browse files
committed
remove unnecesary images
1 parent 662a397 commit 8a9cb3a

File tree

14 files changed

+25
-18
lines changed

14 files changed

+25
-18
lines changed

codespeed/static/.DS_Store

6 KB
Binary file not shown.

codespeed/static/css/main.css

+9-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ body {
55
margin: 0;
66
padding: 0;
77
background-color: #596A74;
8-
background-image: url(../images/vgradient.png);
98
background-repeat: repeat-x;
109
font-size: 16px;
1110
margin-bottom: 0.8em;
@@ -108,7 +107,7 @@ div#presentation div.menubox {
108107
background-image: url(../images/vgradient.png);
109108
background-repeat: repeat-x;
110109
background-color: #FFFFFF;
111-
color: white;
110+
color: black;
112111
width: 220px;
113112
cursor: pointer;
114113
text-align: center;
@@ -288,6 +287,9 @@ table.reports {
288287
margin-bottom: 2em
289288
}
290289

290+
a.feed {
291+
text-decoration: underline;
292+
}
291293
/*table.reports {
292294
border-width: 2px;
293295
}*/
@@ -467,8 +469,11 @@ p.note, p.warning {
467469
border-radius: 10px;
468470
}
469471
p.warning {
470-
padding-left: 42px;
471-
background-image: url(../images/warning.png);
472+
margin-left: 10px;
473+
}
474+
p.warning::before{
475+
content: '⚠ ';
476+
color: #f53535;
472477
}
473478
p.note {
474479
margin-top: 20px;

codespeed/static/images/.DS_Store

6 KB
Binary file not shown.
-673 Bytes
Binary file not shown.

codespeed/static/images/rss.png

-689 Bytes
Binary file not shown.

codespeed/static/images/vgradient.png

-340 Bytes
Binary file not shown.

codespeed/static/images/warning.png

-1.54 KB
Binary file not shown.

codespeed/static/js/changes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function refreshContent() {
7272
var h = $("#content").height();//get height for loading text
7373
$("#contentwrap").fadeOut("fast", function() {
7474
$(this).show();
75-
$(this).html(getLoadText("Loading...", h, true));
75+
$(this).html(getLoadText("Loading...", h));
7676
$(this).load("table/", $.param(getConfiguration()), function() { updateTable(); });
7777
});
7878
}

codespeed/static/js/codespeed.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function readCheckbox(el) {
99
return config;
1010
}
1111

12-
function getLoadText(text, h, showloader) {
12+
function getLoadText(text, h) {
1313
var loadtext = '<div style="text-align:center;">';
1414
var pstyle = "";
1515
if (h > 0) {
@@ -19,9 +19,6 @@ function getLoadText(text, h, showloader) {
1919
pstyle = ' style="line-height:' + h + 'px;"';
2020
}
2121
loadtext += '<p' + pstyle + '>'+ text;
22-
if (showloader) {
23-
loadtext += ' <img src="' + window.STATIC_URL +'images/ajax-loader.gif" align="bottom">';
24-
}
2522
loadtext += '</p></div>';
2623
return loadtext;
2724
}

codespeed/static/js/comparison.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ function renderComparisonPlot(plotid, benchmarks, exes, enviros, baseline, chart
339339
plotoptions.series = series;
340340
plotoptions.grid = {borderColor: '#9DADC6', shadow: false, drawBorder: true};
341341
plotoptions.seriesDefaults.shadow = false;
342+
plotoptions.axesDefaults.tickOptions = {fontFamily:'Arial'};
342343

343344
// determine conditions for rendering the legend outside the plot area
344345
var offplot = false;
@@ -419,7 +420,7 @@ function init(defaults) {
419420

420421
// Get comparison data
421422
var h = $("#content").height();//get height for loading text
422-
$("#cplot").html(getLoadText("Loading...", h, true));
423+
$("#cplot").html(getLoadText("Loading...", h));
423424
$.getJSON("json/", savedata);
424425

425426
$("#permalink").click(function() {

codespeed/static/js/timeline.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ function render(data) {
284284
$("#plotgrid").html("");
285285
if(data.error !== "None") {
286286
var h = $("#content").height();//get height for error message
287-
$("#plotgrid").html(getLoadText(data.error, h, false));
287+
$("#plotgrid").html(getLoadText(data.error, h));
288288
return 1;
289289
} else if ($("input[name='benchmark']:checked").val() === "show_none") {
290290
var h = $("#content").height();//get height for error message
291-
$("#plotgrid").html(getLoadText("Please select a benchmark on the left", h, false));
291+
$("#plotgrid").html(getLoadText("Please select a benchmark on the left", h));
292292
} else if (data.timelines.length === 0) {
293293
var h = $("#content").height();//get height for error message
294-
$("#plotgrid").html(getLoadText("No data available", h, false));
294+
$("#plotgrid").html(getLoadText("No data available", h));
295295
} else if ($("input[name='benchmark']:checked").val() === "grid"){
296296
//Render Grid of plots
297297
$("#revisions").attr("disabled",true);
@@ -316,7 +316,7 @@ function render(data) {
316316
function refreshContent() {
317317
var h = $("#content").height();//get height for loading text
318318
$("#plotgrid").fadeOut("fast", function() {
319-
$("#plotgrid").html(getLoadText("Loading...", h, true)).show();
319+
$("#plotgrid").html(getLoadText("Loading...", h)).show();
320320
$.getJSON("json/", getConfiguration(), render);
321321
});
322322
}

codespeed/templates/codespeed/changes_data.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</tr>
3434
</thead>
3535
<tbody class="commits" data-commitid="{{ rev.id }}">
36-
<tr><td colspan="2" style="text-align:center;">Loading... <img src="{{ STATIC_URL}}images/ajax-loader.gif" align="bottom"></td></tr>
36+
<tr><td colspan="2" style="text-align:center;">Loading...</td></tr>
3737
</tbody>
3838
<script type="text/javascript">
3939
var el = $("tbody.commits");

codespeed/templates/codespeed/reports.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{% if reports|length %}
22
<table class="reports">
3-
<caption>Latest Results <a href="feeds/latest/"><img src="{{ STATIC_URL }}images/rss.png" alt="RSS feed" title="Subscribe to the results RSS feed" /></a></caption>
3+
<caption>Latest Results
4+
(<a class="feed" href="feeds/latest/">rss</a>)
5+
</caption>
46
<tbody>
57
{% for report in reports %} <tr class="status-{{ report.colorcode }}">
68
<td><label title="lessisbetter" style="display:none;">{{ report.get_absolute_url }}</label>{{ report.revision }}</td><td>{{ report.executable }}@{{ report.environment}}</td>
@@ -12,7 +14,9 @@
1214

1315
{% if significant_reports|length %}
1416
<table class="reports">
15-
<caption>Latest Significant Results <a href="feeds/latest_significant/"><img src="{{ STATIC_URL }}images/rss.png" alt="RSS feed" title="Subscribe to the significant results RSS feed" /></a></caption>
17+
<caption>Latest Significant Results
18+
(<a class="feed" href="feeds/latest_significant/">rss</a>)
19+
</caption>
1620
<tbody>
1721
{% for report in significant_reports %} <tr class="status-{{ report.colorcode }}">
1822
<td><label title="lessisbetter" style="display:none;">{{ report.get_absolute_url }}</label>{{ report.revision }}</td><td>{{ report.executable }}@{{ report.environment}}</td>

sample_project/templates/home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h2>Comparison</h2>
5353
}
5454

5555
$(function() {
56-
$("#reports").html(getLoadText("Loading...", 0, true))
56+
$("#reports").html(getLoadText("Loading...", 0))
5757
.load("{% url "reports" %}", function(responseText) { updateTable(); });
5858
});
5959
</script>

0 commit comments

Comments
 (0)