diff --git a/examples/blog/app/views/account/comments.erb b/examples/blog/app/views/account/comments.erb new file mode 100644 index 0000000..d6c54a3 --- /dev/null +++ b/examples/blog/app/views/account/comments.erb @@ -0,0 +1,25 @@ +
<%= t('account.comments_empty') %>
+<% else %> +<%== link_to(t('posts.back_to_list'), url_for(:posts)) %>
diff --git a/examples/blog/app/views/account/edit.erb b/examples/blog/app/views/account/edit.erb new file mode 100644 index 0000000..ee62a8a --- /dev/null +++ b/examples/blog/app/views/account/edit.erb @@ -0,0 +1,21 @@ ++ <%== f.label(:email, t('account.email_label')) %> + <%== f.email_field(:email) %> + <%== f.error_messages(:email) %> +
+ <%== f.submit(t('account.submit')) %> +<% end %> + +<%== link_to(t('posts.back_to_list'), url_for(:root)) %>
diff --git a/examples/blog/app/views/account/moderation.erb b/examples/blog/app/views/account/moderation.erb new file mode 100644 index 0000000..63132d2 --- /dev/null +++ b/examples/blog/app/views/account/moderation.erb @@ -0,0 +1,27 @@ +<%= t('account.moderation_empty') %>
+<% else %> ++ <% if comment_post_linkable?(comment) %> + <%== link_to(comment_post_label(comment), url_for(:post, slug: comment_post_slug(comment))) %> + <% else %> + <%= comment_post_label(comment) %> + <% end %> +
+<%= comment.author %>
+<%= comment.body %>
+ <%== button_to(t('comments.approve'), "/posts/#{comment_post_slug(comment)}/comments/#{comment.id}/approve", method: :patch) %> + <%== button_to(t('comments.reject'), "/posts/#{comment_post_slug(comment)}/comments/#{comment.id}/reject", method: :patch) %> +<%== link_to(t('posts.back_to_list'), url_for(:posts)) %>
+ <% if comment_post_linkable?(comment) %> + <%== link_to(comment_post_label(comment), url_for(:post, slug: comment_post_slug(comment))) %> + <% else %> + <%= comment_post_label(comment) %> + <% end %> + <%= t("comments.status_#{comment.status}") %> +
+<%= comment.body %>
+