Permalink
Browse files

Don't lose the package name and version in the hero unit when display…

…ing /package/version
  • Loading branch information...
yrashk committed Oct 10, 2012
1 parent 2173f90 commit 268b0d28afd53f296a0f4625a659fc76e87faade
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/server/handlers/package_version.ex
@@ -15,7 +15,10 @@ defmodule Expm.Server.Http.PackageVersion do
end
def to_html(req, State[repository: repository, package: pkg] = state) do
out = Expm.Server.Http.render_page(Expm.Server.Templates.package(pkg, repository), req, state)
tpl = Expm.Server.Templates.package(pkg, repository)
out = Expm.Server.Http.render_page(tpl, req, state,
title: "#{pkg.name} (#{pkg.version})",
subtitle: pkg.description)
{out, req, state}
end

0 comments on commit 268b0d2

Please sign in to comment.