|
1 | 1 | {{define "comment/comment"}} |
2 | | -<section class="comment__item" id="comment{{.Item.ID}}"> |
| 2 | +<section class="pipe-comment__item" id="pipeComment{{.Item.ID}}"> |
3 | 3 | <a rel="nofollow" |
4 | | - class="avatar fn-absolute" |
| 4 | + class="pipe-comment__avatar" |
5 | 5 | data-src="{{.Item.Author.AvatarURL}}" |
6 | 6 | href="{{.Item.Author.URL}}"> |
7 | 7 | </a> |
8 | | - <div class="fn-padding60"> |
9 | | - <div> |
10 | | - <a href="{{.Item.Author.AvatarURL}}" class="module__list-title">{{.Item.Author.Name}}</a> |
| 8 | + <div class="pipe-comment__body"> |
| 9 | + <div class="fn-clear"> |
| 10 | + <a href="{{.Item.Author.AvatarURL}}" class="ft-gray">{{.Item.Author.Name}}</a> |
11 | 11 | <span class="ft-nowrap ft-12 ft-fade"> • {{.Item.CreatedAt}} •</span> |
12 | 12 | <a class="ft-nowrap ft-12 ft-gray" href="#123"> |
13 | 13 | <svg><use xlink:href="#reply"></use></svg>{{.I18n.Reply}} Vanessa |
14 | 14 | </a> |
15 | | - <span class="comment__btn commentAdd" |
16 | | - data-title="{{.I18n.Reply}}{{.I18n.Colon}}{{.Item.Author.Name}}" |
17 | | - data-id="{{.ArticleID}}" |
18 | | - data-commentid="{{.Item.ID}}"> |
19 | | - {{.I18n.Reply}} <svg><use xlink:href="#comment"></use></svg> |
20 | | - </span> |
21 | | - {{if .Item.Removable}} |
22 | | - <span class="comment__btn commentDelete" |
23 | | - data-id="{{.Item.ID}}" |
24 | | - data-label="{{.I18n.ConfirmDelete}}" |
25 | | - data-label2="{{.I18n.StayStep}}"> |
26 | | - <svg><use xlink:href="#remove"></use></svg> |
27 | | - </span> |
28 | | - {{end}} |
| 15 | + <div class="fn-right"> |
| 16 | + <button class="btn" |
| 17 | + data-title="{{.I18n.Reply}}{{.I18n.Colon}}{{.Item.Author.Name}}" |
| 18 | + data-id="{{.ArticleID}}" |
| 19 | + data-commentid="{{.Item.ID}}"> |
| 20 | + {{.I18n.Reply}} <svg class="fn-right"><use xlink:href="#comment"></use></svg> |
| 21 | + </button> |
| 22 | + <button class="btn btn--danger btn--space" |
| 23 | + data-id="{{.Item.ID}}" |
| 24 | + data-label="{{.I18n.ConfirmDelete}}" |
| 25 | + data-label2="{{.I18n.StayStep}}"> |
| 26 | + {{.I18n.Delete}} <svg class="fn-right"><use xlink:href="#remove"></use></svg> |
| 27 | + </button> |
| 28 | + {{if .Item.Removable}} |
| 29 | + <span class="btn" |
| 30 | + data-id="{{.Item.ID}}" |
| 31 | + data-label="{{.I18n.ConfirmDelete}}" |
| 32 | + data-label2="{{.I18n.StayStep}}"> |
| 33 | + <svg><use xlink:href="#remove"></use></svg> |
| 34 | + </span> |
| 35 | + {{end}} |
| 36 | + </div> |
29 | 37 | </div> |
30 | 38 | <div class="content__reset"> |
31 | 39 | {{.Item.Content}} |
|
0 commit comments