-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.html
59 lines (59 loc) · 2.26 KB
/
single.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div id="article" class="single clearfix">
<div class="article">
<!-- title section -->
<section class="title-section">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<h2 class="title">
<span class="title-entry" ng-bind="article.title"></span>
</h2>
</div>
</div>
</div>
</section>
<section class="meta-section">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<span class="pubdate" ng-bind="article.created_at | date: 'yyyy/MM/dd h:mm a'"></span>
<span class="options" ng-show="article.title && (user.user_id === author.user_id)" ng-cloak>
<a class="edit option" ui-sref="layout.update({uri: article.thread_id})">编辑</a>
</span>
</div>
</div>
</div>
</section>
<!-- article section -->
<section class="content" ng-bind-html="article.content | marked: 'code:.code-section>.container>.row>.col-lg-8 .col-lg-offset-2' : 'all:.container>.row>.col-lg-8 .col-lg-offset-2'"></section>
<!-- author section -->
<section class="author-section" ng-show="author" ng-cloak>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 clearfix">
<div class="row">
<a ng-href="{{author.url}}" class="author-avatar col-lg-2">
<img ng-src="{{author.avatar_url}}" class="img-circle mini-avatar" alt="{{author.name}}">
</a>
<!-- author meta -->
<div class="author-meta col-lg-10">
<p class="author-name" ng-bind="author.name"></p>
<p class="author-description" ng-bind="author.description"></p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- comments section -->
<section id="comments" class="comments-section" ng-show="article.title" ng-cloak>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 clearfix">
<div ds-thread data-thread-id="{{threadId}}"></div>
</div>
</div>
</div>
</section>
</div>
</div>