diff options
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 2154c06c..85f79f18 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -79,11 +79,18 @@ <span class="annotate long">{{line.annotate_long}}</span>{#-#} {% endif -%} {% if line.contexts -%} - <span class="context-button">{{ line.contexts|len }} ctx</span>{#-#} - <span class="context-list"> - {% for context in line.contexts -%} - <span class="context-line">{{context}}</span>{#-#} - {% endfor -%} + <span class="ctx"> + {% if line.context_list -%} + <input type="checkbox" id="ctxs{{line.number}}" /> + {% endif -%} + <label for="ctxs{{line.number}}">{{ line.contexts_label }}</label>{#-#} + {% if line.context_list -%} + <span class="ctxs"> + {% for context in line.context_list -%} + <span>{{context}}</span>{#-#} + {% endfor -%} + </span>{#-#} + {% endif -%} </span>{#-#} {% endif -%} </p> |