Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a section with all maintainer github names #878

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions frontend/src/Page/Packages.elm
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,21 @@ viewResultItem nixosChannels channel showInstallDetails show item =
)
)

linkAllMaintainers maintainers =
let
ghHandles =
List.filterMap (\m -> (Maybe.map (String.append "@") m.github)) maintainers
in
optionals (List.length ghHandles > 1)
[ li []
(
[ text "Maintainer Github handles: " ]
++ [ code []
[ text (String.join " " ghHandles) ]
]
)
]

mailtoAllMaintainers maintainers =
let
maintainerMails =
Expand Down Expand Up @@ -483,6 +498,7 @@ viewResultItem nixosChannels channel showInstallDetails show item =
[ ul []
(List.map showMaintainer item.source.maintainers
++ mailtoAllMaintainers item.source.maintainers
++ linkAllMaintainers item.source.maintainers
)
]
)
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,14 @@ header .navbar.navbar-static-top {
margin-top: 1em;
display: grid;
grid-template-columns: auto auto;

// make it easy to copy only the list of Github handles
& > :first-child > ul > :last-child {
user-select: none;
}
& > :first-child > ul > :last-child > code {
user-select: text;
}
}
}
}
Expand Down
Loading