Skip to content

Commit

Permalink
Fix graph help modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Nov 24, 2023
1 parent e4963d3 commit e058ac1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ford/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,17 +917,17 @@ def __str__(self):
graph_help_name = f"{self.__class__.__name__}-help-text"

legend_graph = f"""\
<div><a type="button" class="graph-help" data-toggle="modal" href="#{graph_help_name}">Help</a></div>
<div>
<a type="button" class="graph-help" data-bs-toggle="modal" href="#{graph_help_name}">Help</a>
</div>
<div class="modal fade" id="{graph_help_name}" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="-graph-help-label">Graph Key</h4>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">{self._legend} {COLOURED_NOTICE if self.data.coloured_edges else ""}</div>
<div class="modal-body">{self._legend} {COLOURED_NOTICE if self.data.coloured_edges else ""}</div>
</div>
</div>
</div>"""
Expand Down

0 comments on commit e058ac1

Please sign in to comment.