Skip to content

Commit

Permalink
Improve hover help text #233
Browse files Browse the repository at this point in the history
  • Loading branch information
krlawrence committed Jun 21, 2022
1 parent 92b9532 commit 0cba04c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/graph_notebook/magics/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def show_records(self, records):
html = '''<html><body><table style="border: 1px solid black">'''

html += '''<tr>
<th style="text-align: center" >Tx/Op#</th>
<th style="text-align: center">Operation</th>
<th style="text-align: center">LastOp</th>
<th style="text-align: center" title="The transaction or op number within a transaction">Tx/Op#</th>
<th style="text-align: center" title="The type of operation such as ADD or REMOVE">Operation</th>
<th style="text-align: center" title="Indicates if this is the final Op of a transaction. This feature requires a Neptune engine version of 1.1.1.0 or higher.">LastOp</th>
<th style="text-align: center;">Data</th>
</tr>'''

Expand All @@ -199,8 +199,8 @@ def show_records(self, records):

if commit_num is None or current_commit_num != commit_num:
commit_num = current_commit_num
html += '<tr title="The commit number for this transaction" style="border: 1px solid black; background-color: gainsboro ; font-weight: bold;">'
html += '<td style="border: 1px solid black; vertical-align: top; text-align: left;" colspan="4">{}'.format(commit_num)
html += '<tr style="border: 1px solid black; background-color: gainsboro ; font-weight: bold;">'
html += '<td title="The commit number for this transaction" style="border: 1px solid black; vertical-align: top; text-align: left;" colspan="4">{}'.format(commit_num)
if timestamp != None:
html += '&nbsp;&nbsp;&nbsp;Timestamp = {}'.format(timestamp)
html += '&nbsp;&nbsp;&nbsp;( {} UTC )'.format(utc_text)
Expand All @@ -212,11 +212,11 @@ def show_records(self, records):
if lastop:
lastop_text = 'Y'

html += '<tr title="The operation number within this transaction" style="border: 1px solid black; background-color: white;">'
html += '''<td style="border: 1px solid black; vertical-align: top;">{}</td>
<td style="border: 1px solid black; vertical-align: top;text-align: center;">{}</td>
<td style="border: 1px solid black; vertical-align: top;text-align: center;">{}</td>
<td style="border: 1px solid black; vertical-align: top; text-align: left;">{}</td></tr>'''.format(
html += '<tr style="border: 1px solid black; background-color: white;">'
html += '''<td title="The operation number within this transaction" style="border: 1px solid black; vertical-align: top;">{}</td>
<td title="The operation performed"style="border: 1px solid black; vertical-align: top;text-align: center;">{}</td>
<td title="A Y indicates the final Op for a transaction. Earlier Neptune versions do not support this option." style="border: 1px solid black; vertical-align: top;text-align: center;">{}</td>
<td title="Details of the change made by this operation" style="border: 1px solid black; vertical-align: top; text-align: left;">{}</td></tr>'''.format(
record['eventId']['opNum'],
record['op'],
lastop_text,
Expand Down

0 comments on commit 0cba04c

Please sign in to comment.