Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When comparing revision with the Unified fields layout the header of the comparison table shows only the revision link of the first revision, this can lead to misunderstanding of what is being compared. Fix it.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#13 | interdiff-2818605-11-13.txt | 1.88 KB | johnchque |
#13 | improve_header_of-2818605-13.patch | 14.55 KB | johnchque |
#11 | interdiff-2818605-8-11.txt | 4.77 KB | johnchque |
#11 | improve_header_of-2818605-11.patch | 13.57 KB | johnchque |
#8 | improve_header_of-2818605-8.patch | 13.22 KB | johnchque |
Comments
Comment #2
johnchqueThis should make it better. This will make the title follow the width of the rows below.
Comment #3
miro_dietikerOnce span, once div?
Comment #4
miro_dietikerAlso not sure about that indentation. I thought we do two header lines.
Indentation will be wrong if the lines count is >9 or >99 which makes the col wider.
BTW how will it look with a message?
Comment #5
lightguardjp CreditAttribution: lightguardjp commentedWouldn't it make more sense to make it more like diff and use
-
and+
for the different versions in the header?Comment #6
miro_dietiker@lightguardjp I don't get your proposal.
Both sides - the first and the second revision - can provide + and - lines. There's nothing to indicate like that in the header.
"More like diff" - please provide a screenshot if there is something existing we can adapt.
We could discuss to pick up the header from visual inline diff plugin and remove the comment from the header.
But if we would do so, we should also discuss to remove (comment and author) also in the split field diff header.
Comment #7
johnchque@miro_dietiker by now, the header in Unified layout doesn't show the revision log.
Comment #8
johnchqueStarted from 0, now we use the same method as the visual inline layout. :)
Comment #10
miro_dietikert() is to translate. "@date" is not a translatable string, thus that's an illegal usage.
Oh wow, that was wrong too. a t() should only operate on a static string.
Comment #11
johnchqueChanges things based on comment above, fixed type, improved css. This should work.
Comment #13
johnchqueThis time, tests are also fixed.
Comment #15
miro_dietikerThis looks very nice.
Only the navigation (50/50, centered) still looks a bit lost now.
Now that the sidebar looks like really hard to achieve, we can reduce the header a bit with navigation floating.
And then i think we have a great UX to close the v1.