Skip to content

Commit

Permalink
Fix uninitialized value error and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
krauselukas committed Aug 21, 2017
1 parent e942d6e commit 1a306a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/OpenQA/WebAPI/Controller/Main.pm
Expand Up @@ -89,7 +89,7 @@ sub group_overview {
my $only_tagged = $self->param('only_tagged') // 0;
my $group = $self->db->resultset($resultset)->find($self->param('groupid'));
return $self->reply->not_found unless $group;
$self->stash('fullscreen', $self->param('fullscreen'));
$self->stash('fullscreen', $self->param('fullscreen') // 0);

my @comments;
my @pinned_comments;
Expand Down
6 changes: 3 additions & 3 deletions templates/main/more_builds.html.ep
Expand Up @@ -8,11 +8,11 @@
%= b join(' / ', map { $_ eq $selected ? "<b>$_</b>" : link_to($_ => url_with->query([only_tagged => $tagged{$_}])) } reverse sort keys %tagged);
</div>

<div id="more_comments">
<div id="mode_section">
Set mode to
% if ($fullscreen == 0) {
<%= link_to url_for->query(fullscreen => 1)->to_abs => begin %>Full screen<% end %>
<%= link_to url_for->query(fullscreen => 1)->to_abs => begin %>full screen<% end %>
% } else {
<%= link_to url_for->query(fullscreen => 0)->to_abs => begin %>Default view<% end %>
<%= link_to url_for->query(fullscreen => 0)->to_abs => begin %>default view<% end %>
% }
</div>

0 comments on commit 1a306a2

Please sign in to comment.