Skip to content

Commit

Permalink
Remove the admin link from the breadcrumb trail
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Apr 6, 2013
1 parent fdbc8c0 commit 49f1475
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
10 changes: 0 additions & 10 deletions root/breadcrumbs.mhtml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,21 +4,11 @@
href="<% $instance_top_uri %>" title="Go to <% $instance_text %>"> href="<% $instance_top_uri %>" title="Go to <% $instance_text %>">
<% $instance_text %> <% $instance_text %>
</a> </a>
% if ($current_path =~ m|/view/|) {
<div class="breadcrumbs-link">
<a id="breadcrumbs-admin-link"
href="<% $admin_path %>" title="Go to the admin page">
Admin page
</a>
</div>
% }
</div> </div>
</div> </div>


<%init> <%init>
my $config = $c->config(); my $config = $c->config();
my $admin_path = $c->uri_for('/track/');
my $current_path = $c->local_path();
my $instance_text = $config->{database_name} . ' ' . $config->{name}; my $instance_text = $config->{database_name} . ' ' . $config->{name};
my $instance_top_uri = $c->uri_for('/'); my $instance_top_uri = $c->uri_for('/');
</%init> </%init>
14 changes: 0 additions & 14 deletions root/curs/breadcrumbs.mhtml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
href="<% $instance_top_uri %>" title="Go to <% $instance_text %>"> href="<% $instance_top_uri %>" title="Go to <% $instance_text %>">
<% $instance_text %> <% $instance_text %>
</a> </a>
% if ($is_admin) {
<div id="breadcrumbs-admin-link" class="breadcrumbs-link">
<a href="<% $admin_path %>" title="Go to the admin page">
Admin
</a>
% }
<div id="breadcrumbs-gene-summary-link" class="breadcrumbs-link"> <div id="breadcrumbs-gene-summary-link" class="breadcrumbs-link">
<a href="<% $curs_root_uri %>" title="Go to the home page"> <a href="<% $curs_root_uri %>" title="Go to the home page">
<% defined $pub ? $pub->uniquename() : "UNKNOWN PUBLICATION" %> summary <% defined $pub ? $pub->uniquename() : "UNKNOWN PUBLICATION" %> summary
Expand All @@ -23,15 +17,11 @@
</div> </div>
% } % }
</div> </div>
% if ($is_admin) {
</div>
% }
</div> </div>
</div> </div>


<%init> <%init>
my $config = $c->config(); my $config = $c->config();
my $current_path_uri = $c->stash()->{current_path_uri};
my $gene = $c->stash()->{gene}; my $gene = $c->stash()->{gene};
my $pub = $c->stash()->{pub}; my $pub = $c->stash()->{pub};
my $curs_root_uri = $c->stash()->{curs_root_uri}; my $curs_root_uri = $c->stash()->{curs_root_uri};
Expand All @@ -42,8 +32,4 @@ my $gene_url;
if (defined $gene) { if (defined $gene) {
$gene_url = $curs_root_uri . '/gene/' . $gene->gene_id(); $gene_url = $curs_root_uri . '/gene/' . $gene->gene_id();
} }

my $admin_path = $c->uri_for('/');

my $is_admin = $c->stash()->{is_admin_user};
</%init> </%init>

0 comments on commit 49f1475

Please sign in to comment.