Mercurial > hg > Members > nobuyasu > tasks
changeset 6:db553ad77045 draft
hg move from app/views/Application/tags to app/views/tags
author | e085711 |
---|---|
date | Thu, 13 Sep 2012 01:57:33 +0900 |
parents | 64e58e66f793 |
children | 84e51aafdfed |
files | app/views/Application/tags/display.html app/views/tags/display.html |
diffstat | 2 files changed, 52 insertions(+), 52 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/Application/tags/display.html Thu Sep 13 01:55:33 2012 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -*{ Display a post in one of these modes: 'full','home'or'teaser' }* - -<div class="post ${_as == 'teaser' ? 'teaser' :''}"> - - <h2 class="post-title"> - <a href="#">${_post.title}</a> - </h2> - - <div class="post-metadata"> - <span class="post-author">by ${_post.author.fullname})</span> - <span class="post-date">${_post.postedAt.format('dd MMM yy')}</span> - #{if _as != 'full'} - <span class="post-comments"> - | ${_post.comments.size() ?:'no'} - comment${_post.comments.size().pluralize()} - #{if _post.comments} - , latest by ${_post.comments[-1].author} - #{/if} - </span> - #{/if} - </div> - #{if _as !='teaser'} - <div class="post-content"> - <div class="about">Detail:</div> - ${_post.content.nl2br()} - </div> - #{/if} -</div> - -#{if _as=='full'} - <div class="comments"> - <h3> - ${_post.comments.size() ?:'no'} - comment${_post.comments.size().pluralize()} - </h3> - - #{list items:_post.comments, as:'comment'} - <div class="comment"> - <div class="comment-metadata"> - <span class="comment-author">by ${comment.author},</span> - <span class="comment-data"> - ${comment.postedAt.format('dd MMM yy')} - </span> - </div> - </div> - <div class="comment-content"> - <div class="about">Detail:</div> - ${comment.content.escape().nl2br()} - </div> - #{/list} - </div> -#{/if} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/tags/display.html Thu Sep 13 01:57:33 2012 +0900 @@ -0,0 +1,52 @@ +*{ Display a post in one of these modes: 'full','home'or'teaser' }* + +<div class="post ${_as == 'teaser' ? 'teaser' :''}"> + + <h2 class="post-title"> + <a href="#">${_post.title}</a> + </h2> + + <div class="post-metadata"> + <span class="post-author">by ${_post.author.fullname})</span> + <span class="post-date">${_post.postedAt.format('dd MMM yy')}</span> + #{if _as != 'full'} + <span class="post-comments"> + | ${_post.comments.size() ?:'no'} + comment${_post.comments.size().pluralize()} + #{if _post.comments} + , latest by ${_post.comments[-1].author} + #{/if} + </span> + #{/if} + </div> + #{if _as !='teaser'} + <div class="post-content"> + <div class="about">Detail:</div> + ${_post.content.nl2br()} + </div> + #{/if} +</div> + +#{if _as=='full'} + <div class="comments"> + <h3> + ${_post.comments.size() ?:'no'} + comment${_post.comments.size().pluralize()} + </h3> + + #{list items:_post.comments, as:'comment'} + <div class="comment"> + <div class="comment-metadata"> + <span class="comment-author">by ${comment.author},</span> + <span class="comment-data"> + ${comment.postedAt.format('dd MMM yy')} + </span> + </div> + </div> + <div class="comment-content"> + <div class="about">Detail:</div> + ${comment.content.escape().nl2br()} + </div> + #{/list} + </div> +#{/if} \ No newline at end of file