-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2017daa
commit c125657
Showing
3 changed files
with
77 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,29 @@ | ||
@header | ||
|
||
<div class='center'> | ||
<form action='/new_post' method='post'> | ||
<input type=text required minlength=4 name=title placeholder='Title'> | ||
<textarea name='text' required minlength=10 placeholder='Write your post here'></textarea> | ||
<input type='submit' value='Post'> | ||
</form> | ||
</div> | ||
|
||
<div class='sep' style='border:0'></div> | ||
|
||
<div class='center'> | ||
|
||
<div class='sep' style='border:0'></div> | ||
|
||
@if logged_in | ||
<div class='center'> | ||
<form action='/new_post' method='post'> | ||
<input type=text required minlength=4 name=title placeholder='Title'> | ||
<textarea name='text' required minlength=10 placeholder='Write your post here'></textarea> | ||
<input type='submit' value='Post'> | ||
</form> | ||
</div> | ||
|
||
@else | ||
|
||
<div class='center'> | ||
<a href='https://github.com/login/oauth/authorize?response_type=code&client_id=@CLIENT_ID' | ||
>Log in via GitHub to create a new topic</a> | ||
</div> | ||
>Log in via GitHub to create a new topic</a> | ||
</div> | ||
|
||
@end | ||
|
||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
<br> | ||
|
||
|
||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,54 @@ | ||
@header | ||
|
||
<h1>@post.title</h1> | ||
<h1>@post.title</h1> | ||
|
||
<div class="sep" style="border:0"></div> | ||
<div class="sep" style="border:0"></div> | ||
|
||
<div class="center"> | ||
<div class="center"> | ||
|
||
@for comment in comments | ||
<div class=comment> | ||
<b>@comment.name</b> <i>@comment.time</i> | ||
<div class=text>@comment.text</div> | ||
</div> | ||
@end | ||
</div> | ||
@end | ||
|
||
|
||
@if show_form | ||
<form method="post" action="/comment/@post.id/title"> | ||
<textarea name="text" required minlength=3 | ||
placeholder="Write your comment here"></textarea> | ||
<input type="submit" value="Post"> | ||
</form> | ||
@end | ||
@if show_form | ||
<form method="post" action="/comment/@post.id/title"> | ||
<textarea name="text" required minlength=3 | ||
placeholder="Write your comment here"></textarea> | ||
<input type="submit" value="Post"> | ||
</form> | ||
@end | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
<div class="sep" style="border:0;"></div> | ||
<div class="sep" style="border:0;"></div> | ||
|
||
<div class="center"> | ||
@if !show_form | ||
|
||
<div class="center"> | ||
<a href="https://github.com/login/oauth/authorize?response_type=code&client_id=@CLIENT_ID" | ||
>Log in via GitHub to comment</a> | ||
</div> | ||
|
||
<div class="center"> | ||
<!-- beautiful layout --> | ||
<br> | ||
<br> | ||
<br> | ||
|
||
>Log in via GitHub to comment</a> | ||
</div> | ||
|
||
@end | ||
|
||
<div class="center"> | ||
<!-- beautiful layout --> | ||
<br> | ||
<br> | ||
<br> | ||
|
||
<center style="color:#777"> | ||
Powered by <a target=_blank href="https://github.com/vlang/vorum">vorum</a>, | ||
Powered by <a target=_blank href="https://github.com/vlang/vorum">vorum</a>, | ||
open-source blogging/forum software written in V | ||
</center> | ||
<br> | ||
<br> | ||
</div> | ||
</center> | ||
|
||
<br> | ||
<br> | ||
</div> | ||
|
||
|