Exemple #1
0
def show_students_projects():
    """Shows a list of students and list of projects"""

    githubs = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("homepage.html", githubs=githubs, projects=projects)
def show_home():
    """Display homepage with list of students and list of projects"""
    student_rows = hackbright.get_students()
    project_rows = hackbright.get_projects()
    html = render_template("home.html",
                           student_rows=student_rows,
                           project_rows=project_rows)
    return html
def index():
    """Displays the homepage with student and project names."""

    students = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("index.html", students=students,
                                         projects=projects)
def display_all():

    students = hackbright.get_students()
    projects = hackbright.get_projects()

    return render_template("homepage.html",
                           students=students,
                           projects=projects)
Exemple #5
0
def homepage():

    student_rows = hackbright.get_students()

    project_rows = hackbright.get_projects()


    return render_template("homepage.html", student_rows=student_rows, 
                                            project_rows=project_rows)
def grade_student_project():

    students = hackbright.get_students()
    print students
    projects = hackbright.get_projects()

    return render_template("assign_grades.html",
                           students=students,
                           projects=projects)
Exemple #7
0
def show_homepage():
    """Display homepage."""
    # get all students from db (list of tuples with first name, last name)
    students = hackbright.get_students()

    # get all projects from db
    projects = hackbright.get_projects()

    return render_template("index.html",
                           all_students=students,
                           all_projects=projects)
def get_all_info():
    """Show main page.
    Make a homepage that has two lists – one for all students, and one for all projects. Both should be bulleted lists and both should be made up live links to the full student and project pages.

    """

    students = hackbright.get_students()
    projects = hackbright.get_projects()
    return render_template("home.html",
                           students=students,
                           projects=projects,
                           )
def home():

    students = hackbright.get_students()

    projects = hackbright.get_projects()


    html = render_template("home.html",
                            students=students,
                            projects=projects)

    return html