Teammates: Unclear "p" in the Admin Email Compose Page

Created on 25 Apr 2017  路  4Comments  路  Source: TEAMMATES/teammates

Is the below "p" is doing something or has any meaning ?
It seems to be a button but use is not clear.

imageedit_2_7058302007

Most helpful comment

It serves a similar purpose as HTML breadcrumbs in your IDE.

b7923006-29bd-11e7-888c-ac4fa0e79f99

When we write very very long paragraphs nested deep inside we are often confused at which level we are. Looking at the text at the left bottom helps us to keep a track of where we are. In IDEs this confusion is less as we have opening and closing tags. But where as the text box in adminEmailComposePage where we don't even have opening and closing tags, we are bound to loose a track of where we are very easily.

capture

The picture above has very little text, but imagine if you were writing around 200+ words at each level, it could be hard for you to keep track of where you are. You might end up scrolling up and down to check at which level you are. The text at the bottom right corner simplifies that.

Additionally, that text in adminEmailComposePage performs another functionality. Clicking on a tag highlights the text which belongs to a particular tag. As such -

capture

In the above pic I clicked on the last ul, couldn't capture the cursor.

All 4 comments

Hi @sujeet14108 ! That p is not exactly a button. It is related to the HTML which is rendered from the message you type. The normal text you type is put into HTML <p> tags, which is what that p stands for. If you were typing an un-ordered list item, then it would show ul > li as such -

capture

So, the text there shows in which level of nesting of HTML tags are you typing currently. You can click Tools -> Source Code to check out the HTML which is generated from the message you typed. For example -

capture

So as per this HTML, if my cursor in the text box is near 'Lorem Ipsum', then I am actually typing a <p> tag which is what it shows. And if my cursor was near 'Hello', then I am actually typing an <li> tag inside a <ul> tag which is what gets displayed. I hope this clarifies the issue. Feel free to ask again if you have anymore confusion. :smile:

@VamsiSangam @damithc What is need of this from user perspective ?

It serves a similar purpose as HTML breadcrumbs in your IDE.

b7923006-29bd-11e7-888c-ac4fa0e79f99

When we write very very long paragraphs nested deep inside we are often confused at which level we are. Looking at the text at the left bottom helps us to keep a track of where we are. In IDEs this confusion is less as we have opening and closing tags. But where as the text box in adminEmailComposePage where we don't even have opening and closing tags, we are bound to loose a track of where we are very easily.

capture

The picture above has very little text, but imagine if you were writing around 200+ words at each level, it could be hard for you to keep track of where you are. You might end up scrolling up and down to check at which level you are. The text at the bottom right corner simplifies that.

Additionally, that text in adminEmailComposePage performs another functionality. Clicking on a tag highlights the text which belongs to a particular tag. As such -

capture

In the above pic I clicked on the last ul, couldn't capture the cursor.

Thanks understood :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whipermr5 picture whipermr5  路  4Comments

wkurniawan07 picture wkurniawan07  路  3Comments

keoren3 picture keoren3  路  3Comments

whipermr5 picture whipermr5  路  3Comments

wkurniawan07 picture wkurniawan07  路  4Comments