Temporary tweak to join mechanism
TODO: move this to the external app (blender-cloud).
This commit is contained in:
parent
48ebdf11b3
commit
e72f02711d
@ -271,6 +271,12 @@ def error_403():
|
||||
return render_template('errors/403_embed.html')
|
||||
|
||||
|
||||
@blueprint.route('/join-agent')
|
||||
def join_agent():
|
||||
"""Custom page to support Agent 327 barbershop campaign"""
|
||||
return render_template('join.html')
|
||||
|
||||
|
||||
# Shameful redirects
|
||||
@blueprint.route('/p/blender-cloud/')
|
||||
def redirect_cloud_blog():
|
||||
|
@ -361,7 +361,13 @@ script.
|
||||
if (nodeId.substring(0, 2) == 'n_') {
|
||||
nodeId = nodeId.substr(2);
|
||||
}
|
||||
|
||||
{% if subscription not in ['demo', 'subscriber', 'admin'] and project.url == 'agent-327' %}
|
||||
var url = '/join-agent';
|
||||
{% else %}
|
||||
var url = '/nodes/' + nodeId + '/view';
|
||||
// var url = '/join-agent';
|
||||
{% endif %}
|
||||
loadNodeContent(url, nodeId);
|
||||
|
||||
// Determine whether we should push the new state or not.
|
||||
|
Loading…
x
Reference in New Issue
Block a user