This repository has been archived by the owner on Sep 28, 2018. It is now read-only.
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
Showing
15 changed files
with
197 additions
and
62 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
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,10 +1,10 @@ | ||
<% title( _("posts.admin.createPost")) %> | ||
<div class="posts 2columns"> | ||
<div class="posts"> | ||
<h2><%= _("posts.admin.createPost") %></h2> | ||
<div class="main"> | ||
<h3><%= _("posts.admin.createPost") %></h3> | ||
<%- partial('parts/post_editor', {object: post, as: this}) %> | ||
</div> | ||
<aside class="sidebar"> | ||
<%- partial('parts/menu') %> | ||
<%- partial('parts/sidebar') %> | ||
</aside> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<% title(request.params.tag) %> | ||
<div class="posts"> | ||
<h2><%= request.params.tag %></h2> | ||
<div class="main"> | ||
<% if( posts.data.length > 0 ){ %> | ||
<div class="list"> | ||
<%- partial('parts/posts', {object: posts.data, as: this}) %> | ||
<div class="readmore" data-apipath="<%= url('/-/t/' + encodeURIComponent(request.params.tag) + '/') %>"> | ||
<%= _('posts.read_more') %> | ||
</div> | ||
</div> | ||
<script type="text/javascript"> | ||
$(function(){ $('div.posts. div.main div.list').bindList(); }); | ||
</script> | ||
<% }else{ %> | ||
<p><%= _('posts.no_posts_found') %></p> | ||
<% } %> | ||
</div> | ||
<aside class="sidebar"> | ||
<%- partial('parts/sidebar') %> | ||
</aside> | ||
</div> |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<%- partial('parts/menu') %> | ||
<%- partial('parts/archives', {object: archives.data, as: this}) %> | ||
<%- partial('parts/tags', {object: tags.data, as: this}) %> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div class="menu"> | ||
<h3><%= _("posts.sidebar.tags.title") %></h3> | ||
<% if( this.length > 0 ){ %> | ||
<ul> | ||
<% for(var i in this){ %> | ||
<% var k = this[i].key, | ||
v = this[i].value; %> | ||
<li><a href="<%= url('/t/' + encodeURIComponent(k) + '/') %>" | ||
class="tag-link" | ||
title="<%= k %>"><%= k %> (<%= v %>)</a></li> | ||
<% }; %> | ||
</ul> | ||
<% }else{ %> | ||
<% } %> | ||
</div> |
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
Oops, something went wrong.