(First, verify that the preprocess changes have been made. #2322163: [meta] Consensus Banana Phase 1, move CSS classes from preprocess to twig templates.)

  1. Copy the Twig templates from the core module's templates directory to Classy's templates directory. Include all templates, even ones without classes.
  2. Remove all classes from the core module's template. Remove all classes added with addClass and ones that are hard-coded in the template.
  • If there are classes that are required for basic functionality, discuss whether they should be kept.
  • If there is CSS from the module, or anywhere else, referring to the class, discuss removing it or moving it to Bartik&Seven. Do not move the CSS to Classy.

Twig Templates to Copy

core/modules/aggregator/templates/aggregator-block-item.html.twig
core/modules/aggregator/templates/aggregator-feed.html.twig
core/modules/aggregator/templates/aggregator-item.html.twig

Files: 
CommentFileSizeAuthor
#12 copy_aggregator-2349615-12.patch2.11 KBmortendk
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 79,640 pass(es). View
#10 copy_aggregator-2349615-10.patch2.18 KBmortendk
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 78,922 pass(es). View
#8 copy_aggregator-2349615-8.patch2.18 KBmortendk
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 78,868 pass(es). View
#4 classy-aggregator.diff2.12 KBmortendk
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Failed to run tests: failed during invocation of run-tests.sh. View

Comments

davidhernandez’s picture

Issue summary: View changes
davidhernandez’s picture

Issue summary: View changes
davidhernandez’s picture

Issue summary: View changes
mortendk’s picture

Issue summary: View changes
FileSize
2.12 KB
FAILED: [[SimpleTest]]: [PHP 5.4 MySQL] Failed to run tests: failed during invocation of run-tests.sh. View

moved the classes out of core
Discussion of the classes - should be done as a follow up, so bikesheedding wont stop classy ;)

mortendk’s picture

Status: Active » Needs review
mortendk’s picture

Assigned: Unassigned » mortendk

Status: Needs review » Needs work

The last submitted patch, 4: classy-aggregator.diff, failed testing.

mortendk’s picture

Status: Needs work » Needs review
FileSize
2.18 KB
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 78,868 pass(es). View

moved the files into classy/templates

davidhernandez’s picture

Status: Needs review » Needs work

These templates have been moved to classy/templates/aggregator not classy/templates/

mortendk’s picture

Status: Needs work » Needs review
FileSize
2.18 KB
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 78,922 pass(es). View

*doh* now the templates are moved to /classy/templates/aggregator/

davidhernandez’s picture

Status: Needs review » Needs work

What I meant was the templates should be in classy/templates, not classy/templates/aggregator.

mortendk’s picture

Status: Needs work » Needs review
FileSize
2.11 KB
PASSED: [[SimpleTest]]: [PHP 5.4 MySQL] 79,640 pass(es). View

moved templates into /templates - no subfolders

mortendk’s picture

Issue tags: +drupalhagen
danquah’s picture

Assigned: mortendk » danquah
danquah’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed, 3 templates ended up in core/themes/classy/templates/ all classes have been stripped from core/modules/aggregator/templates/aggregator-*

danquah’s picture

Assigned: danquah » Unassigned
davidhernandez’s picture

Status: Reviewed & tested by the community » Needs review

I'm universally setting all the phase 2 issues back to needs review, because we're missing some things. Please double-check if any removed classes are being used in javascript. It is best to test the affected template using Stark to make sure nothing is broken.

mortendk’s picture

Status: Needs review » Reviewed & tested by the community

aggregator dont have any classes thats used by css - setting it back to rtbc (if i can do that ?)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

I can confirm that the classes are not used in css or js.

Committed 1fea878 and pushed to 8.0.x. Thanks!

alexpott’s picture

This normal task was committed due the fact the banana consensus received per approval wrt to #2350615: [policy, no patch] What changes can be accepted during the Drupal 8 beta phase?

  • alexpott committed 1fea878 on 8.0.x
    Issue #2349615 by mortendk | davidhernandez: Copy aggregator templates...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.