Skip to content

Commit

Permalink
improve usability of the docker button (#110)
Browse files Browse the repository at this point in the history
added a pointer + tooltip
fixed namespace field in the URL
  • Loading branch information
jaimergp authored and costrouc committed Aug 20, 2021
1 parent 7d27ee5 commit 61233dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,10 @@

<!-- icons -->
<script src="https://unpkg.com/[email protected]/dist/ionicons.js"></script>

<!-- Initialize popovers globally -->
<script>
$(function () { $('[data-toggle="popover"]').popover() });
</script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h5 class="card-title">
<a class="card-link" href="/build/{{ environment.build_id }}/yaml/"><ion-icon name="code-download"></ion-icon> YAML</a>
<a class="card-link" href="/build/{{ environment.build_id }}/lockfile/"><ion-icon name="lock-closed-outline"></ion-icon> Lockfile</a>
<a class="card-link" href="/build/{{ environment.build_id }}/archive/"><ion-icon name="archive-outline"></ion-icon> Archive</a>
<a class="card-link" onclick="setClipboard('localhost:5000/{{ environment.namespace }}/{{ environment.name }}:{{ environment.build.specification.sha256 }}')"><ion-icon name="logo-docker"></ion-icon> Docker</a>
<a class="card-link" onclick="setClipboard('localhost:5000/{{ environment.namespace.name }}/{{ environment.name }}:{{ environment.build.specification.sha256 }}')" role="button" data-toggle="popover" data-trigger="hover focus" data-content="Click to copy!"><ion-icon name="logo-docker"></ion-icon> Docker</a>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 61233dc

Please sign in to comment.