How to add username and image of the user near the question?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vjeni created an issue. See original summary.

pgrandeg’s picture

Dear @vjeni

I am a bit new on this module comaintenance, but as far as I know there was no plan to include that feature and it doesn't exist on latest release 1.13. Please, if you included that feature in your custom development, could you please share your code and we may merge into main branch?

Best, Pablo

pgrandeg’s picture

Version: 8.x-1.10 » 8.x-1.13
Category: Support request » Feature request
Status: Active » Needs work

Nishant made their first commit to this issue’s fork.

Nishant’s picture

Status: Needs work » Needs review

Implemented Usericon on question page. Please validate.

pgrandeg’s picture

Dear @Nishant, first of all, thank you for your support

I like the logic you implemented, nevertheless there is something I think must be improved in twig file. Including css in twig files is not the best approach, so I suggest to move CSS code to an external css file and include it into a module library.

It would be better to use flex boxes instead of floats, and to create an image style to render user profile's picture instead of rendering by CSS.

pgrandeg’s picture

Status: Needs review » Needs work
Nishant’s picture

@pgrandeg, Sure will do,

Thanks to looking in to this.

Nishant’s picture

Assigned: Unassigned » Nishant
Nishant’s picture

Assigned: Nishant » Unassigned