Skip to content
Browse files

Remove the admin link from the breadcrumb trail

  • Loading branch information...
1 parent fdbc8c0 commit 49f1475775a867dc1cadb69166ac28f610a3deb1 @kimrutherford kimrutherford committed Apr 6, 2013
Showing with 0 additions and 24 deletions.
  1. +0 −10 root/breadcrumbs.mhtml
  2. +0 −14 root/curs/breadcrumbs.mhtml
View
10 root/breadcrumbs.mhtml
@@ -4,21 +4,11 @@
href="<% $instance_top_uri %>" title="Go to <% $instance_text %>">
<% $instance_text %>
</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>
<%init>
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_top_uri = $c->uri_for('/');
</%init>
View
14 root/curs/breadcrumbs.mhtml
@@ -4,12 +4,6 @@
href="<% $instance_top_uri %>" title="Go to <% $instance_text %>">
<% $instance_text %>
</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">
<a href="<% $curs_root_uri %>" title="Go to the home page">
<% defined $pub ? $pub->uniquename() : "UNKNOWN PUBLICATION" %> summary
@@ -23,15 +17,11 @@
</div>
% }
</div>
-% if ($is_admin) {
- </div>
-% }
</div>
</div>
<%init>
my $config = $c->config();
-my $current_path_uri = $c->stash()->{current_path_uri};
my $gene = $c->stash()->{gene};
my $pub = $c->stash()->{pub};
my $curs_root_uri = $c->stash()->{curs_root_uri};
@@ -42,8 +32,4 @@ my $gene_url;
if (defined $gene) {
$gene_url = $curs_root_uri . '/gene/' . $gene->gene_id();
}
-
-my $admin_path = $c->uri_for('/');
-
-my $is_admin = $c->stash()->{is_admin_user};
</%init>

0 comments on commit 49f1475

Please sign in to comment.
Something went wrong with that request. Please try again.