Created
March 10, 2015 09:53
-
-
Save hami9x/36809442bb9bd39553c0 to your computer and use it in GitHub Desktop.
Wade.Go all-at syntax
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
<div class="row-fluid"> | |
<div class="col-sm-1"> | |
<c:votebox @vote="Vm.Post.Vote" @vote_url="Vm.postVoteUrl()"></c:votebox> | |
</div> | |
<div class="col-sm-11"> | |
<div> | |
<a @href="ctx().getPostLink(Vm.Post)">{{ Vm.Post.Title }}</a> | |
<span class="label label-default" @for(_,label)="Vm.Post.Labels">{{ label }}</span> | |
</div> | |
<div> | |
<small class="text-muted">submitted {{ Vm.Post.Time }} hours ago by</small> | |
{{ Vm.Post.Author }} | |
</div> | |
<div class="panel panel-default" @if()="Vm.Post.Content != ``"> | |
<div class="panel-body">{{ Vm.Post.Content }}</div> | |
</div> | |
</div> | |
</div> | |
<div class="row-fluid"> | |
<div class="col-sm-12"> | |
<div> | |
<small class="text-muted" id="test">{{ len(Vm.Comments) }} Comments</small> | |
</div> | |
<div> | |
<form> | |
<div class="form-group"> | |
<textarea rows="3" cols="80" @value(change)="&Vm.NewComment"></textarea> | |
</div> | |
</form> | |
</div> | |
<div> | |
<button class="btn btn-success" @disabled="Vm.NewComment == ``" | |
@on(click)="Vm.AddComment()">Save</button> | |
Sort by: | |
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> | |
{{ Vm.RankMode }} <span class="caret"></span> | |
</button> | |
<ul class="dropdown-menu" role="menu"> | |
<li @for(_,mode)="RankModes"> | |
<a href="#" @on(click)="go Vm.Request(mode.Code)"> | |
{{ mode.Name }} | |
</a> | |
</li> | |
</ul> | |
</div> | |
</div> | |
</div> | |
<div class="row-fluid" @for(_,comment)="Vm.Comments"> | |
<div class="col-sm-1"> | |
<c:votebox @vote="comment.Voting()" @vote_url="Vm.commentVoteUrl(comment)"></c:votebox> | |
</div> | |
<div class="col-sm-11"> | |
<div> | |
<small class="text-muted">submitted {{ comment.Time }} hours ago by</small> | |
{{ comment.Author }} | |
</div> | |
<div class="panel panel-default"> | |
<div class="panel-body"> | |
{{ comment.Content }} | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment