Skip to content

Commit

Permalink
[fix] jump to review #id in links of search review results
Browse files Browse the repository at this point in the history
  • Loading branch information
bojieli committed Aug 23, 2024
1 parent 0034a3e commit 4c2eba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/templates/review-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a href="{{ url_for('user.view_profile', user_id=review.author.id) }}">{{ review.author.username }}</a>
{% endif %}
{% if review.publish_time == review.update_time %}点评了{% else %}更新了点评{% endif %}
<a href="{{ url_for('course.view_course', course_id=review.course.id) }}">{{ review.course.name }}{% if review.course.teachers %}({{ review.course.teacher_names_display|name_display_short }}){% endif %}</a>
<a href="{{ url_for('course.view_course', course_id=review.course.id) }}#review-{{ review.id }}">{{ review.course.name }}{% if review.course.teachers %}({{ review.course.teacher_names_display|name_display_short }}){% endif %}</a>

<span class="float-right localtime" style="display: none;">{{ review.update_time|utctime }}</span>
</div>
Expand Down

0 comments on commit 4c2eba9

Please sign in to comment.