Diff of /Allura/allura/ext/admin/admin_main.py [c4f76a] .. [9d8474]  Maximize  Restore

Switch to side-by-side view

--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -93,7 +93,7 @@
         admin_url = c.project.url()+'admin/'
 
 
-        if c.project.shortname == '--init--':
+        if c.project.is_nbhd_project:
             links.append(SitemapEntry('Add Project', c.project.url()+'add_project', ui_icon=g.icons['plus']))
             nbhd_admin_url = c.project.neighborhood.url()+'_admin/'
             links = links + [
@@ -114,7 +114,7 @@
         if len(c.project.neighborhood_invitations):
             links.append(SitemapEntry('Invitation(s)', admin_url+'invitations'))
         links.append(SitemapEntry('Audit Trail', admin_url+ 'audit/'))
-        if c.project.shortname == '--init--':
+        if c.project.is_nbhd_project:
             links.append(SitemapEntry('Statistics', nbhd_admin_url+ 'stats/'))
             links.append(None)
             links.append(SitemapEntry('Help', nbhd_admin_url+ 'help/'))