Skip to content

Commit

Permalink
Merge pull request #592 from plural/decklist-id-for-jnet
Browse files Browse the repository at this point in the history
Add a link for legacy decklist url
  • Loading branch information
plural authored Feb 9, 2022
2 parents 332a157 + 6d23914 commit 335a8fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/Resources/views/Decklist/decklist.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ NRDB.user.params.decklist_id = Decklist.id;
<a id="social-icon-comment" href="#comments" class="social-icon-comment" data-toggle="tooltip" data-placement="bottom" title="Comment">
<span class="glyphicon glyphicon-comment"></span> <span class="num">{{ decklist.nbcomments }}</span>
</a>
|
<input type="hidden" id="legacy_decklist_url" value="{{ app.request.getSchemeAndHttpHost() }}{{ path('legacy_decklist', { decklist_id: decklist.id }) }}" />
<a href=""
onClick="navigator.clipboard.writeText($('#legacy_decklist_url').val()).then(function() {
alert('Copied ' + $('#legacy_decklist_url').val());
}, function() {
alert('Copy to clipboard failed. Sorry!');
});
return false;">Copy Legacy URL for Jinteki.net</a>
</div>
{% if duplicate %}
| <small>Duplicate of <a href="{{ path('decklist_view', { 'decklist_uuid': duplicate.uuid, 'decklist_name': duplicate.prettyname|e('url') }) }}">{{ duplicate.name }}</a></small>
Expand Down

0 comments on commit 335a8fd

Please sign in to comment.