~dooferlad/offspring/linaro_offspring_pass_ssh_auth_to_builder

« back to all changes in this revision

Viewing changes to lib/offspring/web/templates/queuemanager/project_details.html

This branch disables the ability to subscribe to notifications of private projects as well as the sending of notifications about private projects

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
            contents:"${isSubscribed ? 'Unsubscribe' : 'Subscribe'} to Notifications",
538
538
            dynamicContents:true,
539
539
            icon: "/assets/images/mail--plus.png",
 
540
{% if not user.is_authenticated %}
 
541
            prompt: "You must login to manage your project build notification subscription",
 
542
            disabled: true,
 
543
{% else %} {% if project.is_private %}
 
544
            prompt: "Build notification subscription disabled for private projects",
 
545
            disabled: true,
 
546
{% else %}
540
547
            prompt: "Manage project build notification subscription",
541
 
            disabled: {% if user.is_authenticated %}false{% else %}true{% endif %},
 
548
            disabled: false,
 
549
{% endif %} {% endif %}
542
550
            click: function() {
543
551
                toggle_subscription();
544
552
                return false;