(u, p)
return render_template(
        'project_details.html',
        project=p,
        user=u,
        visible_channels=visible_channels,
        can_modify=can_modify,
        page_title='Notifico! - {u.username}/{p.name}'.format(
            u=u,
            p=p
        )
    )
Show the details for an existing project.
Show the details for an existing project.
Show the details for an existing project .
def details(u, p):
    """
    Show the details for an existing project.
    """
    if not p.can_see(g.user):
        return redirect(url_for('public.landing'))

    can_modify = p.can_modify(g.user)

    visible_channels = p.channels
    if not can_modify:
        visible_channels = visible_channels.filter_by(public=True)

    return render_template(
        'project_details.html',
        project=p,
        user=u,
        visible_channels=visible_channels,
        can_modify=can_modify,
        page_title='Notifico! - {u.username}/{p.name}'.format(
            u=u,
            p=p
        )
    )
def details ( u , p ) : if not p . can_see ( g . user ) : return redirect ( url_for ( 'public.landing' ) ) can_modify = p . can_modify ( g . user ) visible_channels = p . channels if not can_modify : visible_channels = visible_channels . filter_by ( public = True ) return render_template ( 'project_details.html' , project = p , user = u , visible_channels = visible_channels , can_modify = can_modify , page_title = 'Notifico! - {u.username}/{p.name}' . format ( u = u , p = p ) )