Fix subnav of Upvoted Comments (#1143)

This commit is contained in:
Pipecraft 2022-12-04 08:58:23 +08:00 committed by GitHub
parent 0ca4dbf146
commit fccb22679e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ class CommentsController < ApplicationController
}
@title = "Upvoted Comments"
@saved_subnav = true
@above = 'saved/subnav'
@page = params[:page].to_i
if @page == 0

View File

@ -1,4 +1,4 @@
<% render partial: 'upvoted/subnav' if @upvoted %>
<%= render partial: @above if @above %>
<ol class="comments comments1">
<% @comments.each do |comment| %>