2.3 KiB
2.3 KiB
id, title, challengeType, forumTopicId, localeTitle
id | title | challengeType | forumTopicId | localeTitle |
---|---|---|---|---|
5895f70ef9fc0f352b528e6b | How to Put a Profile Together | 2 | 301554 | Как объединить профиль |
Description
h2.center#welcome Welcome, #{username}!
profile.pug и добавьте строку h2.center#welcome Welcome, #{username}!
создавая элемент h2 с классом «center» и id «welcome», содержащий текст «Добро пожаловать» и имя пользователя! Также в профиле добавьте ссылку на / выйти. В этом маршруте будет установлена логика для неавторитизации пользователя. a(href='/logout') Logout
Отправьте свою страницу, если вы считаете, что у вас все в порядке.
Instructions
Tests
tests:
- text: Correctly added a Pug render variable to /profile
testString: getUserInput => $.get(getUserInput('url')+ '/_api/server.js') .then(data => { assert.match(data, /\/views\/pug\/profile[^]*username:( |)req.user.username/gi, 'You should be passing the variable username with req.user.username into the render function of the profile page'); }, xhr => { throw new Error(xhr.statusText); })