Closed
Bug 690906
Opened 14 years ago
Closed 14 years ago
Alternate table rows
Categories
(Socorro :: General, task)
Tracking
(Not tracked)
VERIFIED
FIXED
2.3.1
People
(Reporter: espressive, Assigned: espressive)
Details
Hi there,
It has been suggested, and I agree, that alternate row colors on the report tables will increase readability.
To enable this is simple, just not sure where to add these on Github in the Socorro repo.
The HTML would be:
add a class entitled zebra to tables that needs striping i.e.
<table class="something zebra">
....
</table>
The CSS would be:
/* whatever color this needs to be */
.zebra .odd {
background-color: #edecec;
}
And the JS
var zebra = function(table) {
table.find("tbody tr:odd").addClass("odd");
},
toStripe = !!$(".zebra").length;
if(toStripe) {
$(".zebra").each(function() {
zebra($(this));
});
}
Comment 1•14 years ago
|
||
There is already zebra striping code in the css on the admin view. You may want to check there to see if you can refactor that for reuse.
| Assignee | ||
Comment 2•14 years ago
|
||
Hey Chris,
Still figuring out where everything is. When you say in the admin view, where exactly is this?
Comment 3•14 years ago
|
||
Sure... in the lower right corner is an 'admin' link. Follow that, then the 'branch data sources' link.
The source is here: https://github.com/mozilla/socorro/blob/master/webapp-php/application/views/admin/branch_data_sources.php
| Assignee | ||
Comment 4•14 years ago
|
||
Hey Chris,
When going to https://crash-stats.mozilla.com/products/Firefox I see a log in link on the lower right but, I do not seem to have access to this area.
I assume this is the admin you were talking about unless I am completely on the wrong track ;)
Thanks for your help.
Comment 5•14 years ago
|
||
Yep. On a local install (vagrant) it should let you right in. You can get admin access to crash-stats by filing a bug for Server Ops: Account Requests through the mozilla.org product in bugzilla.
| Assignee | ||
Comment 6•14 years ago
|
||
Hey Chris,
My local Socorro still has no data as I am waiting for VPN access to get hold of the DB backup. I will file a bug regarding access to the live site in mean time as well.
Thanks
| Assignee | ||
Comment 7•14 years ago
|
||
Sent pull request to resolve this bug: https://github.com/mozilla/socorro/pull/72
Turned out to be a very small CS change.
| Assignee | ||
Comment 8•14 years ago
|
||
Resolved? I believe so
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.3.1
| Assignee | ||
Comment 9•14 years ago
|
||
Pull request landed: https://github.com/mozilla/socorro/pull/72
Comment 10•14 years ago
|
||
Verified on https://crash-stats-dev.allizom.org and table rows have alternate colors(grey and white).
Status: RESOLVED → VERIFIED
Updated•14 years ago
|
Assignee: nobody → sneethling
| Assignee | ||
Comment 11•14 years ago
|
||
[:rhelmer] Are there issues with this fix?
Updated•14 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
You need to log in
before you can comment on or make changes to this bug.
Description
•