Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question usercard built-in template #6884

Closed
freddidierRTE opened this issue Jul 22, 2024 · 0 comments · Fixed by #6897
Closed

Question usercard built-in template #6884

freddidierRTE opened this issue Jul 22, 2024 · 0 comments · Fixed by #6897
Assignees
Labels
Enhancement New feature

Comments

@freddidierRTE
Copy link
Contributor

I no title provide in user card , define a title with the beginning of the text :

Code from RTE internal instance template

        let question_title = question.split(/\r\n|\r|\n/g)[0];
        if (question_title.length > 33) question_title = question_title.substr(0, 30)  + "...";

Add a unit test

@freddidierRTE freddidierRTE added the Enhancement New feature label Jul 22, 2024
@ClementBouvierN ClementBouvierN changed the title Question usercard build in template Question usercard built-in template Jul 23, 2024
@quinarygio quinarygio self-assigned this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature
Projects
None yet
2 participants