Skip to content

Commit

Permalink
style username bold
Browse files Browse the repository at this point in the history
  • Loading branch information
davemenninger committed Nov 20, 2014
1 parent 1282992 commit dd7100d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Lrrr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ sub startup {
'/*whatever' => {whatever => ''} => sub {
my $c = shift;
my $whatever = $c->param('whatever');
$c->render(text => "/$whatever did not match and route. go <a href=\"/\" >home</a>.", status => 404);
$c->render(text => "/$whatever did not match any route. go <a href=\"/\" >home</a>.", status => 404);
}
);

Expand Down
2 changes: 1 addition & 1 deletion templates/nav-menu.html.ep
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<nav>
<a href="/">home</a>
% if( my $authentication = stash '__authentication__' ) {
Logged in as: <a href="/user"><%= $authentication->{user}->{username} %></a> <a href="/logout">logout</a>
Logged in as: <b><a href="/user"><%= $authentication->{user}->{username} %></a></b> <a href="/logout">logout</a>
% } else {
<a href="/login">login</a>
% }
Expand Down
4 changes: 2 additions & 2 deletions templates/user.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

% if( my $authentication = stash '__authentication__' ) {
<p>
You are logged in as <%= $authentication->{user}->{username} %>.
You are logged in as <b><%= $authentication->{user}->{username} %></b>.
Here is <a href="/hidden">a page</a> with something you can only see if logged in.
</p>
<p>
Your role is <%= role %> and your privs are
Your role is <b><%= role %></b> and your privs are
% for my $p ( privileges() ){
<li><%= $p %></li>
% }
Expand Down

0 comments on commit dd7100d

Please sign in to comment.