]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/node/permanent_link.html
make sure that we pre-wrap the lines of code in the markdown code blocks
[osqa.git] / forum / skins / default / templates / node / permanent_link.html
1 {% load i18n %}
2
3 <p>
4 {% blocktrans %}
5 Would you like to copy the permanent link to your clipboard?
6 {% endblocktrans %}
7 </p>
8
9 <p>
10 {% spaceless %}
11 <table>
12     <tr>
13         <td><label for="permanent_link_url">{% trans "Permanent link" %}:</label></td>
14         <td><input id="permanent_link_url" name="permanent_link_url" readonly="readonly" type="text" value="{{ url }}" /></td>
15     </tr>
16 </table>
17 {% endspaceless %}
18 </p>
19
20 <script type="text/javascript">
21 $(document).ready(function() {
22     // We highlight the content of the text field on click event
23     $('#permanent_link_url').click(function() {
24         $(this).select();
25     })
26 })
27 </script>