mirror of
https://github.com/ivabus/www
synced 2024-11-22 22:35:06 +03:00
Added release version to navbar and footer GH links
This commit is contained in:
parent
9cb60155c2
commit
6241b51166
2 changed files with 16 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
<ul class="list-group list-group-flush">
|
<ul class="list-group list-group-flush">
|
||||||
<a class="list-group-item" role="button" href="https://twitter.com/teaxyz"><i class="icon-twitter social-icon"></i>Twitter</a>
|
<a class="list-group-item" role="button" href="https://twitter.com/teaxyz"><i class="icon-twitter social-icon"></i>Twitter</a>
|
||||||
<a class="list-group-item" role="button" href="https://discord.gg/KCZsXfJphn"><i class="icon-discord social-icon"></i>Discord</a>
|
<a class="list-group-item" role="button" href="https://discord.gg/KCZsXfJphn"><i class="icon-discord social-icon"></i>Discord</a>
|
||||||
<a class="list-group-item" role="button" href="https://github.com/teaxyz"><i class="icon-github social-icon"></i>GitHub <span style="font-size:16px;">(☆<span id="starcount"></span>)</span></a>
|
<a class="list-group-item" role="button" href="https://github.com/teaxyz"><i class="icon-github social-icon"></i>GitHub <span style="font-size:16px;">(☆<span id="starcount"></span>, <span class="release"></span>)</span></a>
|
||||||
<a class="list-group-item" role="button" href="https://t.me/tea_xyz"><i class="icon-telegram social-icon"></i>Telegram</a>
|
<a class="list-group-item" role="button" href="https://t.me/tea_xyz"><i class="icon-telegram social-icon"></i>Telegram</a>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -200,3 +200,17 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', repo());
|
document.addEventListener('DOMContentLoaded', repo());
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
var repository = "teaxyz/cli";
|
||||||
|
var url = "https://api.github.com/repos/"+ repository +"/releases/latest";
|
||||||
|
|
||||||
|
$.get(url, function(data) {
|
||||||
|
var release = data.tag_name;
|
||||||
|
$(".release").html(release);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
|
<li class="nav-item mt-lg-0 mt-md-0 mt-sm-3 mt-3">
|
||||||
<a class="nav-link" aria-current="page" href="https://github.com/teaxyz">GITHUB (☆<span id="starcount2"></span>)</a>
|
<a class="nav-link" aria-current="page" href="https://github.com/teaxyz">GITHUB (☆<span id="starcount2"></span>, <span class="release"></span>)</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in a new issue