Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebouChu committed Sep 16, 2024
1 parent fdec759 commit abdb671
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/server/universities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def index
end

def show
@websites = @university.websites.ordered(current_language)
@websites = @university.websites.ordered(current_language).page(params[:page])
breadcrumb
end

Expand Down
3 changes: 2 additions & 1 deletion app/views/server/universities/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
</div>
</div>

<h2 class="mt-5 h3"><%= Communication::Website.model_name.human(count: @websites.count) %></h2>
<h2 class="mt-5 h3"><%= Communication::Website.model_name.human(count: @websites.total_count) %></h2>
<%= render 'server/websites/list', websites: @websites %>
<%= paginate @websites %>

<% content_for :action_bar_right do %>
<%= link_to t('edit'), edit_server_university_path(@university), class: button_classes %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/server/websites/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
clean_and_rebuild_all_websites_server_websites_path(current_scopes),
method: :post,
class: button_classes %>
<% end %>
<% end %>

0 comments on commit abdb671

Please sign in to comment.