Add copy button to submission source
This commit is contained in:
parent
d42d47a674
commit
2f50c7e218
2 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "common-content.html" %}
|
||||
|
||||
{% block header %}
|
||||
<span class="submission-info">
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
a:active .line .highlighter {
|
||||
background: rgba(255, 212, 0, 0.48);
|
||||
}
|
||||
|
||||
.copy-clipboard {
|
||||
margin-top: 0;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -41,9 +45,9 @@
|
|||
<hr>
|
||||
<br>
|
||||
<div class="source-wrap">
|
||||
<table>
|
||||
<table style="width: 100%">
|
||||
<tr>
|
||||
<td class="source-ln">
|
||||
<td class="source-ln" style="width: 0">
|
||||
<div>
|
||||
{% for line in raw_source.split('\n') %}
|
||||
<a href="#line-{{ loop.index }}" name="line-{{ loop.index }}">
|
||||
|
|
Loading…
Reference in a new issue