Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
20 Jan 2008 at 15:50 UTC
Updated:
6 Jun 2009 at 05:10 UTC
Jump to comment: Most recent file
The attached patch;-
I was prompted to do this after finding incorrect description http://drupal.org/node/107375.
Patch should apply with -p0, possibly against HEAD, but was made against 6.0 RC2.
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | status.patch | 726 bytes | catch |
| #25 | issue-212233.patch | 4.18 KB | lilou |
| #18 | sql_status_7.x.patch | 4.36 KB | lilou |
| #16 | numeric_column.patch | 955 bytes | zeta ζ |
| #17 | sql_status_.patch | 4.32 KB | zeta ζ |
Comments
Comment #1
zeta ζ commentedAdded another key.
Comment #2
gábor hojtsyHow would the improved interface look compared to the old?
Comment #3
zeta ζ commentedThe Value column: right aligned.
Non-zero values of ‘should be zero’ highlighted.
Both done with classes, so that themes can override.
See attached for default.
Comment #4
gábor hojtsyI know the goal here is to get attention to the bad value, but this looks clunky. The yellow box is quite big around the number (I know it is the table cell, but it looks odd).
Comment #5
zeta ζ commentedYes, I agree, but I wanted to avoid extra markup.
What about this – I’ve borrowed an icon from watchdog.
Comment #6
gábor hojtsyLooks much better IMHO, but you posted the wrong patch.
Comment #7
zeta ζ commentedSorry…
Comment #8
zeta ζ commentedThis is better, as it applies class
.warningto whole row, the way watchdog does it.Haven’t used the (not so) yellow background that watchdog applies to the row, so looks the same as in #5 *.png .
Comment #9
gábor hojtsytr .number seems buggy, since it would apply to the row, while your intention is to apply it to a cell, right?
Comment #10
zeta ζ commentedtr .numberis the class of a td within a row.tr td.numberwould be more explicit, but unnecessary, and I think I remember reading that it is less efficient.Comment #11
gábor hojtsyIndeed, sorry for missing the space there :)
Comment #12
zeta ζ commentedI’ve re-worked this and it will now apply against HEAD (not sure if that is 6.x-dev or 7.x-dev). Will also apply to D6.2 with offsets (-49) if you use
patch -p1 -F3.Comment #13
zeta ζ commentedRe-rolled against HEAD. I can roll against 6.3 or -dev if needed. Fairly easy to port to 5 too.
I kmow it’s only a task, but it would be great to get this in as http://drupal.org/node/107375 is already there: picked that one up after a year languishing as ‘needs work’.
Comment #14
dries commentedThis patch seems to generate NOTICES when I try it.
Comment #15
zeta ζ commentedSorry Dries, mended now :-) using isset() (and E_ALL). Obviously I’m still getting used to PHP’s foibles.
Comment #16
zeta ζ commentedThis patch could be applied after the above (Edit: or the below). It moves the ’right alignment’ to system.css, from admin.css, so that tables in general can have numeric columns styled by adding class="numeric" to each
<td>or<th>Comment #17
zeta ζ commentedRe-roll after commit of http://drupal.org/node/284721
Comment #18
lilou commentedRe-roll;
Comment #19
lilou commentedPatch #18 no longer applies against CVS/HEAD.
Comment #20
dries commentedCan we get a fresh screenshot too? :)
Comment #21
lilou commentedPerhaps it's time to kill system_sql() now drupal support SQLite and Postgresql ?
return
Notice: Undefined property: stdClass::$Value in system_sql() (line 1851 of D:\Serveur\www\drupal\7.x\modules\system\system.admin.inc).Comment #22
lilou commentedComment #23
catchWe should remove it. If we end up adding back in a database report at a later date all well and good.
Comment #24
lilou commentedOK, i take it.
Comment #25
lilou commentedComment #26
lilou commentedsee also #423926: Restore database information screen
Comment #27
catchHere's how it looks at the moment.
Comment #28
dries commentedOk, let's nuke it -- it could be a good feature for devel module. Committed. Thanks!
Comment #30
damien tournoud commentedPlease also nuke the
db_status_report()call insystem_requirements().Comment #31
catchComment #32
lilou commentedLooks good.
Comment #33
webchickCommitted!