Convert ./core/modules/search/search-results.tpl.php to twig.

Comments

julien’s picture

Status: Active » Needs review

commited, needs review #73628a8

julien’s picture

Issue tags: +Twig
julien’s picture

drupalway’s picture

Category: task » bug
Status: Needs review » Needs work

Twig_Error_Syntax: Unexpected tag name "trans" (expecting closing tag for the "if" tag defined near line 20) in "core/themes/stark/templates/search/search-results.twig" at line 21 in Twig_Parser->subparse() (line 165 of /var/www/drupalway/core/vendor/twig/twig/lib/Twig/Parser.php).

drupalway’s picture

Category: bug » task
Status: Needs work » Needs review
StatusFileSize
new822 bytes

Fixed strings translation

podarok’s picture

Status: Needs review » Reviewed & tested by the community

looks good!
thanks

podarok’s picture

Status: Reviewed & tested by the community » Fixed

commited #5
thanks!

podarok’s picture

Component: Code » Twig templates
Status: Fixed » Needs work

git apply *.patch
error: core/themes/stark/templates/search/search-results.twig: No such file or directory

not applying into latest 8.x
need reroll!

podarok’s picture

Assigned: Unassigned » podarok

it looks like #5 applying good to old merge_chx_sandbox branch that already removed by @jenlampton
I`ll look at my local copy of old repo for do not lost this work

podarok’s picture

Status: Needs work » Fixed

fixed this from recovery

jenlampton’s picture

I made one change to this file. The class attributes should be separated from the others when you think theme devs might want to add a class. <li class="{{ attributes.class }}" {{ attributes }}>

Otherwise, this template looks great! I made this change and committed the template to the front-end branch. :)

WebDevDude’s picture

Status: Fixed » Needs review
StatusFileSize
new6.52 KB

The template was committed to the front-end branch but mis-spelled.

Before:
search-result.twig

Now:
search-results.twig

I know it's preferred we commit these to the repo directly without submitting a patch, but I don't think I have commit rights, so am posting this as a patch.

WebDevDude’s picture

Status: Needs review » Patch (to be ported)

Changing status to patch. I'm kinda new to this, so please let me know if I am breaking protocol.

podarok’s picture

Status: Patch (to be ported) » Needs review

nope
this needs review

tlattimore’s picture

Status: Needs review » Needs work

This is issue is a bit confusing. There is no port of ./core/modules/search/search-results.tpl.php to twig in the front-end branch into a twig template. The patch attached to #12 is converting a file that does not in fact pertain to this issue (though it is close in name, -result as opposed to -results). I am going to mark this back as needs work since there does not appear to be patch here for the ./core/modules/search/search-results.tpl.php file and it hasn't yet been converted.

fabianx’s picture

Status: Needs work » Fixed

I commited the working version from the code-sprint.

This is fixed now in front-end.

Thanks!

Status: Fixed » Closed (fixed)

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

jwilson3’s picture

Component: Twig templates » Twig templates conversion (front-end branch)

There was one trivial @TODO in this file... fixed... #7553295

Project: » Lost & found issues

This issue’s project has disappeared. Most likely, it was a sandbox project, which can be deleted by its maintainer. See the Lost & found issues project page for more details. (The missing project ID was 1750250)