Beispiel #1
0
def learn():
    return render_template('learn.html',
                           nav_active='motivation',
                           subnav_tabs=HANDBOOK_SUBNAV_TABS,
                           subnav_active='learn',
                           stories_count=len(Story.listing()),
                           thumbnail=thumbnail(title='Jak se naučit programovat'))
Beispiel #2
0
def practice():
    return render_template(
        'practice.html',
        nav_active='motivation',
        subnav_tabs=HANDBOOK_SUBNAV_TABS,
        subnav_active='practice',
        thumbnail=thumbnail(title='Jak získat praxi v\u00a0programování'))
Beispiel #3
0
def hire_juniors():
    with db:
        metrics = GlobalMetric.as_dict()
    return render_template(
        'hire_juniors.html',
        metrics=metrics,
        thumbnail=thumbnail(title='Najímejte odhodlané juniory'))
Beispiel #4
0
def inject_defaults():
    now = arrow.utcnow()
    return dict(nav_tabs=NAV_TABS,
                year=now.year,
                now=now,
                handbook_release_at=arrow.get(2020, 9, 1),
                thumbnail=thumbnail())
Beispiel #5
0
def motivation():
    return render_template(
        'motivation.html',
        nav_active='motivation',
        subnav_tabs=HANDBOOK_SUBNAV_TABS,
        subnav_active='motivation',
        stories_count=len(Story.listing()),
        thumbnail=thumbnail(title='Proč se učit programování'))
Beispiel #6
0
def donate():
    with db:
        supporters_names_urls = Supporter.listing_names_urls()
        supporters_names = Supporter.listing_names()
    return render_template('donate.html',
                           supporters_names_urls=supporters_names_urls,
                           supporters_names=supporters_names,
                           thumbnail=thumbnail(title='Pošli LOVE'))
Beispiel #7
0
def candidate():
    with db:
        jobs_count = Job.count()
        companies_count = Job.companies_count()
    return render_template(
        'candidate.html',
        jobs_count=jobs_count,
        companies_count=companies_count,
        thumbnail=thumbnail(title='Příručka hledání první práce v\u00a0IT'))
Beispiel #8
0
def hire_juniors():
    with db:
        metrics = Metric.as_dict()
    return render_template('hire_juniors.html',
                           nav_active='jobs',
                           subnav_tabs=JOBS_SUBNAV_TABS,
                           subnav_active='hire_juniors',
                           metrics=metrics,
                           thumbnail=thumbnail(title='Najímejte odhodlané juniory'))
Beispiel #9
0
def motivation():
    with db:
        stories_by_tags = Story.tags_mapping()
    return render_template('motivation.html',
                           nav_active='motivation',
                           subnav_tabs=HANDBOOK_SUBNAV_TABS,
                           subnav_active='motivation',
                           stories_by_tags=stories_by_tags,
                           thumbnail=thumbnail(title='Proč se učit programování'))
Beispiel #10
0
def club():
    with db:
        members = Member.avatars_listing()
        members_total_count = Member.count()
        logos = Logo.listing()
    return render_template(
        'club.html',
        nav_active='club',
        logos=logos,
        members=members,
        members_total_count=members_total_count,
        thumbnail=thumbnail(title='Klub, který tě nastartuje'))
Beispiel #11
0
def job(job_id):
    with db:
        job = Job.get_by_id(job_id) or abort(404)
        jobs_count = Job.count()
        companies_count = Job.companies_count()
    return render_template('job.html',
                           job=job,
                           jobs_count=jobs_count,
                           companies_count=companies_count,
                           thumbnail=thumbnail(job_title=job.title,
                                               job_company=job.company_name,
                                               job_location=job.location))
Beispiel #12
0
def jobs():
    with db:
        metrics = dict(**Metric.as_dict(), **Job.aggregate_metrics())
        jobs = Job.listing()
    return render_template('jobs.html',
                           nav_active='jobs',
                           subnav_tabs=JOBS_SUBNAV_TABS,
                           subnav_active='jobs',
                           jobs=jobs,
                           regions=REGIONS,
                           metrics=metrics,
                           thumbnail=thumbnail(title='Práce v\u00a0IT pro začátečníky'))
Beispiel #13
0
def jobs():
    with db:
        jobs = Job.listing()
        jobs_count = Job.count()
        companies_count = Job.companies_count()
        jobs_bot = Job.bot_listing()
    return render_template(
        'jobs.html',
        jobs=jobs,
        jobs_count=jobs_count,
        companies_count=companies_count,
        jobs_bot=jobs_bot,
        thumbnail=thumbnail(title='Práce pro začínající programátory'))
Beispiel #14
0
def job(job_id):
    with db:
        metrics = dict(**Metric.as_dict(), **Job.aggregate_metrics())
        job = Job.juniorguru_get_by_id(job_id)
    return render_template('job.html',
                           nav_active='jobs',
                           subnav_tabs=JOBS_SUBNAV_TABS,
                           subnav_active='jobs',
                           job=job,
                           metrics=metrics,
                           thumbnail=thumbnail(job_title=job.title,
                                               job_company=job.company_name,
                                               job_location=job.location))
Beispiel #15
0
def jobs():
    with db:
        jobs = Job.listing()
        jobs_count = Job.count()
        companies_count = Job.companies_count()
        jobs_bot = Job.bot_listing()
    return render_template(
        'jobs.html',
        jobs=jobs,
        jobs_count=jobs_count,
        companies_count=companies_count,
        jobs_bot=jobs_bot,
        thumbnail=thumbnail(title='Práce v\u00a0IT pro začátečníky'))
Beispiel #16
0
def jobs_region(region_id):
    region = [reg for reg in REGIONS if reg['id'] == region_id][0]
    with db:
        metrics = dict(**Metric.as_dict(), **Job.aggregate_metrics())
        jobs = Job.region_listing(region['name'])
    return render_template('jobs_region.html',
                           nav_active='jobs',
                           subnav_tabs=JOBS_SUBNAV_TABS,
                           subnav_active='jobs',
                           jobs=jobs,
                           region=region,
                           regions=REGIONS,
                           metrics=metrics,
                           thumbnail=thumbnail(title=f"Práce v\u00a0IT pro začátečníky —\u00a0{region['name']}"))
Beispiel #17
0
def candidate_handbook():
    with db:
        jobs = Job.listing()
        jobs_remote = Job.remote_listing()
        jobs_internship = Job.internship_listing()
        jobs_volunteering = Job.volunteering_listing()
        supporters_count = Supporter.count()
        last_modified = LastModified.get_value_by_path('candidate_handbook.html')
        logos = Logo.listing()
    return render_template('candidate_handbook.html',
                           nav_active='motivation',
                           subnav_tabs=HANDBOOK_SUBNAV_TABS,
                           subnav_active='candidate_handbook',
                           jobs=jobs,
                           jobs_remote=jobs_remote,
                           jobs_internship=jobs_internship,
                           jobs_volunteering=jobs_volunteering,
                           supporters_count=supporters_count,
                           last_modified=last_modified,
                           logos=logos,
                           thumbnail=thumbnail(title='Příručka o\u00a0hledání první práce v\u00a0IT'))
Beispiel #18
0
def practice():
    return render_template(
        'practice.html',
        thumbnail=thumbnail(title='Jak získat praxi v\u00a0programování'))
Beispiel #19
0
def events():
    return render_template('events.html',
                           nav_active='club',
                           subnav_tabs=CLUB_SUBNAV_TABS,
                           subnav_active='events',
                           thumbnail=thumbnail(title='Klubové akce'))
Beispiel #20
0
def inject_defaults():
    now = arrow.utcnow()
    return dict(year=now.year, updated_at=now, thumbnail=thumbnail())
Beispiel #21
0
def learn():
    return render_template(
        'learn.html',
        stories_count=len(Story.listing()),
        thumbnail=thumbnail(title='Jak se naučit programovat'))
Beispiel #22
0
def hire_juniors():
    return render_template(
        'hire_juniors.html',
        thumbnail=thumbnail(title='Najímejte odhodlané juniory'))
Beispiel #23
0
def press_release(id):
    with db:
        press_release = PressRelease.get_by_id(id)
    return render_template('press_release.html',
                           press_release=press_release,
                           thumbnail=thumbnail(title='Tisková zpráva'))
Beispiel #24
0
def press():
    with db:
        press_releases = PressRelease.listing()
    return render_template('press.html',
                           press_releases=press_releases,
                           thumbnail=thumbnail(title='Pro média'))
Beispiel #25
0
def membership():
    return render_template(
        'membership.html',
        nav_active='club',
        thumbnail=thumbnail(title='Rozcestník pro členy klubu'))
Beispiel #26
0
def donate():
    return render_template('donate.html',
                           thumbnail=thumbnail(title='Pošli LOVE'))
Beispiel #27
0
def thanks():
    return render_template('thanks.html', thumbnail=thumbnail(title='Díky!'))
Beispiel #28
0
def membership():
    return render_template('membership.html',
                           nav_active='club',
                           subnav_tabs=CLUB_SUBNAV_TABS,
                           subnav_active='membership',
                           thumbnail=thumbnail(title='Rozcestník pro členy klubu'))