Skip to content

Commit

Permalink
Merge pull request #1 from plone/master
Browse files Browse the repository at this point in the history
 Added a Missing HTML id for the comments section
  • Loading branch information
aadarsh-nagrath authored Mar 22, 2023
2 parents a2a4661 + 58fc40e commit 0612607
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions news/72.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
4.0.1 (2023-03-19)
------------------

Bug fixes:


- Added a Missing HTML id for the comments section [Coder-aadarsh] (#72)
//id attribute with the value "comments" to the div tag will make it possible to directly link to the comments section of a Plone document using the URL of the document followed by "#comments".
4 changes: 3 additions & 1 deletion plone/app/discussion/browser/comments.pt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
colorclass python:lambda x: 'state-private' if x=='rejected' else ('state-internal' if x=='spam' else 'state-'+x);"
tal:attributes="class python:'comment level-{depth} {state}'.format(depth= depth, state=colorclass(review_state));
id comment_id"
tal:condition="python:canReview or review_state == 'published'">
tal:condition="python:canReview or review_state == 'published'or has_replies"
tal:attributes-missing="skip"
id="comments">

<div class="d-flex flex-row align-items-center mb-3">

Expand Down

0 comments on commit 0612607

Please sign in to comment.