-
Notifications
You must be signed in to change notification settings - Fork 23
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
1 parent
f8767d2
commit 742da40
Showing
8 changed files
with
30 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% article = notification.target %> | ||
<%= article.title %> | ||
<%= article.content %> | ||
<%= t "article.post" %> | ||
<%= link_to article.title, main_app.article_path(article.id), class: 'under-line' %> |
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,12 +1,9 @@ | ||
<% comment = notification.target %> | ||
<%= content_tag :div, class: 'comment' do -%> | ||
<%= link_to comment.article.title, main_app.article_path(comment.article.id), class: 'post-title' %> | ||
<span class="comment-meta pull-right"> | ||
<%= timeago_tag comment.created_at, class: 'comment-time' %> | ||
</span> | ||
<div class="comment-content"> | ||
<div class="standard markdown-body"> | ||
<%= markdown_comment_tag comment %> | ||
</div> | ||
<%= content_tag :div do -%> | ||
<%= t "notifications.in_article" %> | ||
<%= link_to comment.article.title, main_app.article_path(comment.article.id), class: 'under-line' %> | ||
<%= t "notifications.post_comment" %> | ||
<div class="standard markdown-body"> | ||
<%= markdown_comment_tag comment %> | ||
</div> | ||
<% end -%> |
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,13 +1,9 @@ | ||
<% comment = notification.target %> | ||
"我是艾特" | ||
<%= content_tag :div, class: 'comment' do -%> | ||
<%= link_to comment.article.title, main_app.article_path(comment.article.id), class: 'post-title' %> | ||
<span class="comment-meta pull-right"> | ||
<%= timeago_tag comment.created_at, class: 'comment-time' %> | ||
</span> | ||
<div class="comment-content"> | ||
<div class="standard markdown-body"> | ||
<%= markdown_comment_tag comment %> | ||
</div> | ||
<%= content_tag :div do -%> | ||
<%= t "notifications.in_article" %> | ||
<%= link_to comment.article.title, main_app.article_path(comment.article.id), class: 'under-line' %> | ||
<%= t "notifications.mention_me" %> | ||
<div class="standard markdown-body"> | ||
<%= markdown_comment_tag comment %> | ||
</div> | ||
<% end -%> |
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