-
Notifications
You must be signed in to change notification settings - Fork 198
package page adjustments #1355
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
Open
MangoIV
wants to merge
5
commits into
haskell:master
Choose a base branch
from
MangoIV:mangoiv/more-space
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
package page adjustments #1355
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c39d5e8
[chore] remove unnecessary padding and visual noise from the README
MangoIV d2630bc
[chore] build in a tiny bit of semantic html
MangoIV ec1fdd3
[chore] move maintainer's corner to the side bar and hide it by default
MangoIV 696eece
[chore] make clear what "Package Description" refers to
MangoIV 0014c94
[chore] apply some hints from code review
MangoIV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
<body> | ||
$hackagePageHeader()$ | ||
|
||
<div id="content"> | ||
<main id="content"> | ||
<h1><a href="$baseurl$/package/$package.name$">$package.name$</a>$if(package.optional.hasSynopsis)$: <small>$package.optional.synopsis$</small>$endif$</h1> | ||
<div style="font-size: small"> | ||
[ $tags$ ] | ||
|
@@ -95,34 +95,11 @@ | |
$downloadSection$ | ||
</div> | ||
|
||
<div id="maintainer-corner"> | ||
<h4>Maintainer's Corner</h4> | ||
<p><a href="$package.maintainerURL$">Package maintainers</a></p> | ||
<ul> | ||
<li> | ||
$maintainers$ | ||
</li> | ||
</ul> | ||
<p>For package maintainers and hackage trustees</p> | ||
<ul> | ||
<li> | ||
<a href="$baseurl$/package/$package.name$/maintain"> | ||
edit package information | ||
</a> | ||
</li> | ||
</ul> | ||
<p>Candidates</p> | ||
<ul> | ||
<li> | ||
$candidates$ | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div><!-- /left-pane --> | ||
|
||
|
||
<div id="properties"> | ||
<aside id="properties"> | ||
<table class="properties"> | ||
<tbody> | ||
|
||
|
@@ -283,9 +260,34 @@ | |
<th>Status</th> | ||
<td>$buildStatus$</td> | ||
</tr> | ||
<tr> | ||
<th>Maintainer's Corner</th> | ||
<td> | ||
<p><a href="$package.maintainerURL$">Package maintainers</a></p> | ||
<ul> | ||
<li> | ||
$maintainers$ | ||
</li> | ||
</ul> | ||
<p>For package maintainers and hackage trustees</p> | ||
<ul> | ||
<li> | ||
<a href="$baseurl$/package/$package.name$/maintain"> | ||
edit package information | ||
</a> | ||
</li> | ||
</ul> | ||
<p>Candidates</p> | ||
<ul> | ||
<li> | ||
$candidates$ | ||
</li> | ||
</ul> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> <!-- /properties --> | ||
</aside> <!-- /properties --> | ||
</div><!-- /flex-container --> | ||
|
||
$if(package.optional.hasReadme)$ | ||
|
@@ -298,7 +300,7 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/components/prism-core.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script> | ||
$endif$ | ||
</div> <!-- /content --> | ||
</main> <!-- /content --> | ||
|
||
$packagePageAssets()$ | ||
<div style="clear:both"></div> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div id="footer"> | ||
<footer id="footer"> | ||
<p> | ||
Produced by <a href="/">hackage</a> and <a href="http://haskell.org/cabal/">Cabal</a> $cabalVersion$. | ||
</p> | ||
</div> | ||
</footer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
<div id="page-header"> | ||
<header id="page-header"> | ||
|
||
<a class="caption" href="/">Hackage :: [Package]</a> | ||
|
||
<ul class="links" id="page-menu"> | ||
<nav> | ||
<ul class="links" id="page-menu"> | ||
|
||
<li> | ||
<form action="/packages/search" method="get" class="search"> | ||
<button type="submit">Search </button> | ||
<input type="text" name="terms" /> | ||
</form> | ||
</li> | ||
<li> | ||
<form action="/packages/search" method="get" class="search"> | ||
<button type="submit">Search </button> | ||
<input type="text" name="terms" /> | ||
</form> | ||
</li> | ||
|
||
<li><a href="/packages/browse">Browse</a></li> | ||
<li><a href="/packages/browse">Browse</a></li> | ||
|
||
<li><a href="/packages/recent">What's new</a></li> | ||
<li><a href="/packages/recent">What's new</a></li> | ||
|
||
<li><a href="/upload">Upload</a></li> | ||
<li><a href="/upload">Upload</a></li> | ||
|
||
<li><a href="/accounts">User accounts</a></li> | ||
$if(deauthPack)$ | ||
<li><a title="If authenticated" href="/packages/deauth">Logout</a></li> | ||
$elseif(deauthAdmin)$ | ||
<li><a title="If authenticated" href="/admin/deauth">Logout</a></li> | ||
$elseif(deauthUser)$ | ||
<li><a title="If authenticated" href="./deauth">Logout</a></li> | ||
$endif$ | ||
<li><a href="/accounts">User accounts</a></li> | ||
$if(deauthPack)$ | ||
<li><a title="If authenticated" href="/packages/deauth">Logout</a></li> | ||
$elseif(deauthAdmin)$ | ||
<li><a title="If authenticated" href="/admin/deauth">Logout</a></li> | ||
$elseif(deauthUser)$ | ||
<li><a title="If authenticated" href="./deauth">Logout</a></li> | ||
$endif$ | ||
|
||
</ul> | ||
</ul> | ||
</nav> | ||
|
||
</div> | ||
</header> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with moving to sidebar, but do not want it hidden by default. all the info except "edit package information" is generally relevant -- checking who the maintainers are, what the candidates are, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you still get the maintainer entry that is the cabal file - I feel like that the hackage maintainers and the candidates are technical details that don't matter for 99% of the people visiting a package page.
I can of course revert this change but I thought it would be nice to discuss this :)