Add show_if and hide_if methods for routes and APIs, as well as proper comparison of feature values

This commit is contained in:
Joseph Schorr 2014-04-03 19:32:09 -04:00
parent 0abbf042dd
commit 4f4112b18d
5 changed files with 71 additions and 5 deletions

View file

@ -14,7 +14,7 @@ from auth.permissions import AdministerOrganizationPermission
from util.invoice import renderInvoiceToPdf
from util.seo import render_snapshot
from util.cache import no_cache
from endpoints.common import common_login, render_page_template
from endpoints.common import common_login, render_page_template, route_show_if, route_hide_if
from endpoints.csrf import csrf_protect, generate_csrf_token
from util.names import parse_repository_name
from util.gravatar import compute_hash