Skip to content

Commit

Permalink
Add bluesky icon, some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 21, 2024
1 parent bbcec39 commit 110830a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 deletions views/layout.pug
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ html
p.fs-6.float-end
a#github-user-github(href=`https://github.com/${_universe_name}` target='_blank' class=`${_universe_type !== 'user' ? 'd-none' : ''}`)
span.fa-brands.fa-github.fa-fw.me-1.text-dark.grow-on-over
a#github-user-mastodon.d-none(target='_blank')
a#github-user-mastodon.d-none(target='_blank' rel='nofollow me')
span.fa-brands.fa-mastodon.fa-fw.me-1.grow-on-over(style="color: #6364FF;")
a#github-user-twitter.d-none(target='_blank')
a#github-user-twitter.d-none(target='_blank' rel='nofollow me')
span.fa-brands.fa-square-x-twitter.fa-fw.me-1.grow-on-over
a#github-user-orcid.d-none(target='_blank')
a#github-user-bluesky.d-none(target='_blank' rel='nofollow me')
span.fa-brands.fa-bluesky.fa-fw.me-1.grow-on-over
a#github-user-orcid.d-none(target='_blank' rel='nofollow me')
span.fa-brands.fa-orcid.fa-fw.me-1.text-success.grow-on-over
.card-body
h5.card-title
Expand Down
10 changes: 7 additions & 3 deletions views/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,17 @@ function load_maintainer_list(){
}
x.sort(order).slice(0,25).forEach(function(maintainer){
if(maintainer.login == universe && maintainer.orcid){
$("#github-user-orcid").toggleClass("d-none").attr('href', 'https://orcid.org/' + maintainer.orcid);
$("#github-user-orcid").removeClass("d-none").attr('href', 'https://orcid.org/' + maintainer.orcid);
}
if(maintainer.login == universe && maintainer.mastodon){
$("#github-user-mastodon").toggleClass("d-none").attr('href', maintainer.mastodon);
$("#github-user-mastodon").removeClass("d-none").attr('href', maintainer.mastodon);
}
if(maintainer.login == universe && maintainer.bluesky){
$("#github-user-bluesky").removeClass("d-none").attr('href', maintainer.bluesky);
$("#github-user-twitter").hide();
}
if(maintainer.login == universe && maintainer.emails && maintainer.emails.length){
$("#github-user-emails").toggleClass("d-none").find(".content").append(maintainer.emails.join("<br/>"));
$("#github-user-emails").removeClass("d-none").find(".content").append(maintainer.emails.join("<br/>"));
$("#github-user-emails").tooltip({title: `Maintainer email address from package descriptions`});
}
if(maintainer.login == universe && maintainer.orgs){
Expand Down

0 comments on commit 110830a

Please sign in to comment.