Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/views/admin/communication/authors/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
<%= total_posts.count %>
<%= Communication::Website::Post.model_name.human(count: total_posts.count).downcase %>
</p>
<%= render 'admin/communication/websites/posts/list', posts: recent_posts %>
<%= render 'admin/communication/websites/posts/list',
posts: recent_posts,
website: website %>
</div>
</div>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<%= osuny_panel t('admin.communication.website.pages.special_page') do %>
<p><%= t('admin.communication.website.pages.special_pages.communication_post.native', count: @posts.total_count) %></p>
<%= create_link Communication::Website::Post %>
<%= render 'admin/communication/websites/posts/list', posts: @posts %>
<%= render 'admin/communication/websites/posts/list',
posts: @posts,
website: @website %>
<%= paginate @posts, param_name: :posts_page %>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ link_to_all ||= false
<%= Communication::Website::Post::Localization.human_attribute_name('pinned') %>
</span>
<% end %>
<% if @website.archive_content && post.is_lasting %>
<% if website.archive_content && post.is_lasting %>
<span class="badge border border-subtle text-dark">
<%= t('admin.content_archive.is_lasting.label') %>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<%= @posts.total_count %>
<%= Communication::Website::Post.model_name.human(count: @posts.total_count).downcase %>
</p>
<%= render 'admin/communication/websites/posts/list', posts: @posts %>
<%= render 'admin/communication/websites/posts/list',
posts: @posts,
website: @website %>
<%= paginate @posts if @posts.total_pages > 1 %>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
<%= @posts.total_count %>
<%= Communication::Website::Post.model_name.human(count: @posts.total_count).downcase %>
</p>
<%= render 'admin/communication/websites/posts/list', posts: @posts, hide_category: true %>
<%= render 'admin/communication/websites/posts/list',
posts: @posts,
website: @website,
hide_category: true %>
<%= paginate @posts %>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<%= form_tag publish_batch_admin_communication_website_posts_path do %>
<%= render 'admin/communication/websites/posts/list',
posts: @posts,
website: @website,
selectable: (params.dig(:lifecycle) != 'trash') %>
<%= paginate @posts %>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<%= form_tag do_move_batch_admin_communication_website_posts_path do %>
<%= render "admin/communication/websites/posts/list",
posts: @objects,
website: @website,
selectable: (params.dig(:lifecycle) != 'trash') %>
<%= paginate @objects %>
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<%= osuny_panel @website.feature_posts_name(current_language) do %>
<%= render 'admin/communication/websites/posts/list',
posts: @posts,
website: @website,
small: true,
link_to_all: true %>
<% end %>
Loading