Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
web: Remove top menu
We can select the pages via a header line now, so there is no need to
have a separate selection page. Start with groups page right away.
  • Loading branch information
donald committed Jan 3, 2017
1 parent 6ab5d3b commit 1d33658
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions web/pages/mxq/mxq.in
Expand Up @@ -859,14 +859,6 @@ sub selfurl {
return $q->url().$path_info;
}

sub top {
return $q->ul(
$q->li(a({href=>selfurl('/groups')},'groups')),
$q->li(a({href=>selfurl('/active_jobs')},'active_jobs')),
$q->li(a({href=>selfurl('/server')},'server')),
);
}

sub top_menu {
return '<table class="menu">' . $q->Tr(
$q->td(a({href=>selfurl('/groups')},'groups')),$q->td('&nbsp;'),
Expand All @@ -887,7 +879,7 @@ my $path_info=$q->path_info()||'';

$path_info=~s/\/$//;
if ($path_info eq '') {
print header().HEAD().top_menu().top();
print header().HEAD().top_menu().groups();
} elsif ($path_info eq '/server') {
print header().HEAD().top_menu().server();
} elsif ($path_info eq '/groups') {
Expand Down

0 comments on commit 1d33658

Please sign in to comment.