diff --git a/app/cells/decidim/author/avatar_image.erb b/app/cells/decidim/author/avatar_image.erb new file mode 100644 index 0000000..bbdfdd5 --- /dev/null +++ b/app/cells/decidim/author/avatar_image.erb @@ -0,0 +1,9 @@ +<% if model.is_a?(Decidim::User) %> + <% if mode.public? %> + <%= image_tag model.avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> + <% else %> + <%= image_tag model.default_avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> + <% end %> +<% else %> + <%= image_tag model.avatar_url, alt: t("decidim.author.avatar", name: display_name), class: "author__avatar" %> +<% end %> diff --git a/app/cells/decidim/author/profile_minicard.erb b/app/cells/decidim/author/profile_minicard.erb new file mode 100644 index 0000000..d4790a7 --- /dev/null +++ b/app/cells/decidim/author/profile_minicard.erb @@ -0,0 +1,32 @@ + diff --git a/app/cells/decidim/comments/comment/show.erb b/app/cells/decidim/comments/comment/show.erb deleted file mode 100644 index c19083d..0000000 --- a/app/cells/decidim/comments/comment/show.erb +++ /dev/null @@ -1,64 +0,0 @@ -<%= content_tag :div, id: "comment_#{model.id}", class: comment_classes, data: { comment_id: model.id } do %> - <% if model.hidden? %> - <%= render :moderation_data %> - <% elsif model.deleted? %> - <%= render :deletion_data %> - <% else %> -
- <% if model.user_group && model.user_group.public? || model.author && model.author.public? %> -
-
- <%= render :author %> - - <%= time_tag created_at, l(created_at, format: :decidim_short) %> - - <% if edited? %> -
- - <%= t("decidim.components.comment.edited") %> - -
- <% end %> -
-
- <% else %> - - <%= time_tag created_at, l(created_at, format: :decidim_short) %> - - <% if edited? %> -
- - <%= t("decidim.components.comment.edited") %> - -
- <% end %> - <% end%> - <%= render :utilities %> -
-
- <%= alignment_badge %> - <%= comment_body %> -
- - <% end %> -
- <% if has_replies_in_children? %> - <% replies.each do |reply| %> - <%= cell("decidim/comments/comment", reply, root_depth: root_depth, order: order, reloaded: reloaded?) %> - <% end %> - <% end %> -
- <% if can_reply? %> -
"> - -
-
- <%== cell("decidim/comments/comment_form", model, root_depth: root_depth, order: order) %> -
- <% end %> -<% end %> diff --git a/app/cells/decidim/privacy/publish_account_modal/show.erb b/app/cells/decidim/privacy/publish_account_modal/show.erb index a44188c..c9005df 100644 --- a/app/cells/decidim/privacy/publish_account_modal/show.erb +++ b/app/cells/decidim/privacy/publish_account_modal/show.erb @@ -1,13 +1,13 @@ -