Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let's auto generate list of current users for homepage.
- Loading branch information
Showing
4 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,13 +1,17 @@ | |||
- if (everyauth) | -if (everyauth) | ||
- if (everyauth.loggedIn) | -if (everyauth.loggedIn) | ||
- if (!everyauth.user.nickname) | -if (!everyauth.user.nickname) | ||
p You have no nickname assigned to this login method. Please input your existing or desired nickname. | p You have no nickname assigned to this login method. Please input your existing or desired nickname. | ||
form(action='/nickname/set',method='post') | form(action='/nickname/set',method='post') | ||
input(type='text',name='nickname',size='16') | input(type='text',name='nickname',size='16') | ||
button(type='submit') Submit | button(type='submit') Submit | ||
- else | -else | ||
h5 What happening? | h5 What happening? | ||
form(action='/post/add',method='post') | form(action='/post/add',method='post') | ||
textarea(name='body',rows='3',cols='40') | textarea(name='body',rows='3',cols='40') | ||
button(type='submit') Post | button(type='submit') Post | ||
|
-if(typeof nicks != 'undefined') | ||
div | |||
h4 Users | |||
-for(var i = 0; i < nicks.length; i++) | |||
a(class='nickname_list',href='/' + nicks[i])= nicks[i] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters