Skip to content

Commit

Permalink
Fix some permission page titles.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 11, 2017
1 parent 93a01c4 commit bd4460f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Web/Controller/Permission.pm
Expand Up @@ -39,7 +39,7 @@ sub get : Private {
$c->detach('/not_found');
}

$c->stash( { name => $name, permission => $perms } );
$c->stash( { search_term => $name, permission => $perms } );
}

__PACKAGE__->meta->make_immutable;
Expand Down
4 changes: 2 additions & 2 deletions root/permission/author.html
@@ -1,5 +1,5 @@
<% title = 'author module permissions for ' . name %>
<% title = 'author module permissions for ' . search_term %>

<h1>Author Module Permissions for <% $name %></h1>
<h1>Author Module Permissions for <% search_term %></h1>

<% INCLUDE 'inc/permission.html' %>
4 changes: 2 additions & 2 deletions root/permission/distribution.html
@@ -1,5 +1,5 @@
<% title = 'module permissions for ' . name %>
<% title = 'module permissions for ' . search_term %>

<h1>Module Permissions for <% $name %></h1>
<h1>Module Permissions for <% search_term %></h1>

<% INCLUDE 'inc/permission.html' %>
4 changes: 2 additions & 2 deletions root/permission/module.html
@@ -1,6 +1,6 @@
<% title = 'module permissions for ' . name %>
<% title = 'module permissions for ' . search_term %>

<h1>Module Permissions</h1>
<h1>Module Permissions for <% search_term %></h1>

<p>
<a href="/pod/<% permission.module_name %>"><% permission.module_name %></a> is owned by <a href="/author/<% permission.owner %>"><% permission.owner %></a>.
Expand Down

0 comments on commit bd4460f

Please sign in to comment.