Skip to content

Commit

Permalink
fix display of deprecated (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpholguera authored Nov 2, 2024
1 parent 2d02911 commit 58ac229
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/hooks/create_dynamic_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ def get_all_weaknessess():
frontmatter['status'] = '<span class="md-tag md-tag-icon md-tag--new">new</span><span style="display: none;">status:new</span>'
elif status == 'draft':
frontmatter['status'] = f'<a href="https://github.com/OWASP/owasp-mastg/issues?q=is%3Aissue+is%3Aopen+{weaknesses_id}" target="_blank"><span class="md-tag md-tag-icon md-tag--draft" style="min-width: 4em">draft</span></a><span style="display: none;">status:draft</span>'
elif status == 'deprecated':
frontmatter['status'] = '<span class="md-tag md-tag-icon md-tag--deprecated">deprecated</span><span style="display: none;">status:deprecated</span>'
frontmatter['platform'] = "".join([get_platform_icon(platform) for platform in frontmatter['platform']])
weaknesses.append(frontmatter)

Expand Down

0 comments on commit 58ac229

Please sign in to comment.