Problem/Motivation
Follow-up to #2329505-17: Convert theme_task_list to Twig template
Proposed resolution
Decide on name.
Remaining tasks
| Task | Novice task? | Contributor instructions | Complete? |
|---|---|---|---|
| Manually test the patch | Novice | Instructions |
User interface changes
n/a
API changes
The task_list theme hook has been changed to maintenance_task_list.
Before
$task_list = array(
'#theme' => 'task_list',
'#items' => $tasks,
'#active' => $active,
);
After
$task_list = array(
'#theme' => 'maintenance_task_list',
'#items' => $tasks,
'#active' => $active,
);
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | Screen Shot 2014-10-06 at 11.14.30.jpg | 519.45 KB | lewisnyman |
| #15 | interdiff-2335003-9-15.txt | 920 bytes | rootwork |
| #15 | task-list-tomaintainence-task-list-2335003-15.patch | 3.06 KB | rootwork |
Comments
Comment #1
star-szrThanks @joelpittet!
Comment #2
joshi.rohit100Patch uploaded. Please review.
Comment #3
dawehnerhttps://www.drupal.org/documentation/git/configure has some good example how to configure git to show renames in diffs.
Comment #4
star-szrThanks for the patch @joshi.rohit100! Apparently we don't have any test coverage for this, drupal_common_theme() needs to be updated…
Comment #5
joshi.rohit100updated patch.
Comment #6
star-szrSorry, I should have been clearer. The actual theme hook, task_list (and usages of it) should be renamed. We don't usually have the templates named differently from the theme hook.
Comment #7
lewisnymanI'm not sure of the logic behind this change? From a theming point of view, why specify that a task list should only be used for maintenance tasks? Couldn't they be used in other situations that we have not yet uncovered? It doesn't fit with the idea of "reusable design components irrespective of content" that we have embraced in our CSS standards.
Comment #8
star-szrI think the ideal end result is #1222254: Remove theme_task_list() and call theme('item_list__tasks') instead., but if you look at the template it has a hardcoded "Installation tasks" right in there. So definitely not reusable right now, whatever it's called :)
Comment #9
tuutti commentedComment #10
thamasComment #11
thamasComment #12
star-szrWhile we're updating these we might as well change them to maintenance-task-list.html.twig because neither of these theme functions exist, pre- or post-patch.
Other than that this is looking good! Thanks @tuutti (and @thamas!).
Comment #13
jjcarrionI'll try this one
Comment #14
jjcarrionFinally I hadn't time yesterday to see this, I left it for the sprint and I'll take it again if nobody resolve it.
Comment #15
rootworkUpdated per #12.
Comment #16
rootworkComment #17
pieterjd commentedAs a novice at the drupalcon Amsterdam sprint workshop, I have applied the patch.
Comment #18
joelpittetthank you @pieterjd and @rootwork.
Comment #19
star-szrAdding the API change to the issue summary. Thanks everyone!
Comment #20
alexpottCommitted 63a2332 and pushed to 8.0.x. Thanks!
Fixed on commit.
Comment #22
star-szrThank you @alexpott!
Comment #23
lewisnymanI'm not sure if it was this issue, but it seems suspect that HEAD is looking like this:
Comment #24
star-szrNot at a computer right now to check but I suspect that is #1842140: Remove title and wrapper div from item-list.html.twig.
Comment #25
joelpittetI'd suspect the issue Cottser mentioned as well.
Comment #26
lewisnymanAh I see, thanks