Skip to content

consolidate code that generates links#1487

Merged
dwradcliffe merged 1 commit into
rubygems:masterfrom
kbrock:dry_up_links
Nov 12, 2016
Merged

consolidate code that generates links#1487
dwradcliffe merged 1 commit into
rubygems:masterfrom
kbrock:dry_up_links

Conversation

@kbrock
Copy link
Copy Markdown
Contributor

@kbrock kbrock commented Nov 7, 2016

In wanting to push #1234 (or #724) forward, I extracted the common logic around generating links.

The other PRs generate the documentation link much the same way as the wiki link.
So this makes them generated with a common function.

The larger goal being to just have show.html.erb generate the list of links in a single loop.

  1. We lookup the localized labels using the full form "rubygems.show.links.#{name}" and .links.#{name} - this PR converges them. (I can converge on the full version if you prefer)
  2. This adds an :id to all links, in order to simplify generation.

Thanks

@dwradcliffe dwradcliffe merged commit 5351e7a into rubygems:master Nov 12, 2016
@rubygems-deployer rubygems-deployer temporarily deployed to staging November 12, 2016 16:14 Inactive
@dwradcliffe dwradcliffe temporarily deployed to production November 12, 2016 20:50 Inactive
@kbrock kbrock deleted the dry_up_links branch November 14, 2016 22:06
@kbrock
Copy link
Copy Markdown
Contributor Author

kbrock commented Nov 14, 2016

thanks all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants