Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

plat-485 Fix Search Front End (theme to be updated later) #541

Merged
merged 3 commits into from
Oct 6, 2016

Conversation

Heleen-cr
Copy link
Contributor

@Heleen-cr Heleen-cr commented Sep 26, 2016

Fixes https://jira.comicrelief.com/browse/PLAT-485

Changes proposed in this pull request

  • add new component directory for search styling
  • add basic styling to make page functional

@Heleen-cr Heleen-cr changed the title plat-485 Search front end plat-485 Fix Search Front End (theme to be updated later) Oct 3, 2016
@Heleen-cr Heleen-cr assigned Saphyel and unassigned wagg-matt Oct 3, 2016
{% elseif (field_article_image) %}
<div class="search-result__image search-result--{{ nodetype }}__image">
{{ field_article_image }}
</div>
{% endif %}
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Heleen-cr could you add a new line at the end of the file? thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

</div>
</div>
{% elseif (field_article_image) %}
<div class="search-result__image search-result--{{ nodetype }}__image">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be a little nicer to construct these classes up top in a class array: https://www.drupal.org/docs/8/theming-drupal-8/using-attributes-in-templates

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an array for each element? search-result, title, logo and img .. problem also is to add search-result--{{ nodetype }} in the array. Can we do that?

I would change search-result--{{ nodetype }}__image to search-result__title--nodetype

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do those changes in another PR.. merging this one now

@gusliedke gusliedke merged commit 37e428a into develop Oct 6, 2016
@gusliedke gusliedke deleted the PLAT-485-search-front-end branch October 6, 2016 14:16
@pvhee pvhee mentioned this pull request Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants