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'))
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í'))
def hire_juniors(): with db: metrics = GlobalMetric.as_dict() return render_template( 'hire_juniors.html', metrics=metrics, thumbnail=thumbnail(title='Najímejte odhodlané juniory'))
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())
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í'))
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'))
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'))
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'))
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í'))
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'))
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))
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'))
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'))
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))
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'))
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']}"))
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'))
def practice(): return render_template( 'practice.html', thumbnail=thumbnail(title='Jak získat praxi v\u00a0programování'))
def events(): return render_template('events.html', nav_active='club', subnav_tabs=CLUB_SUBNAV_TABS, subnav_active='events', thumbnail=thumbnail(title='Klubové akce'))
def inject_defaults(): now = arrow.utcnow() return dict(year=now.year, updated_at=now, thumbnail=thumbnail())
def learn(): return render_template( 'learn.html', stories_count=len(Story.listing()), thumbnail=thumbnail(title='Jak se naučit programovat'))
def hire_juniors(): return render_template( 'hire_juniors.html', thumbnail=thumbnail(title='Najímejte odhodlané juniory'))
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'))
def press(): with db: press_releases = PressRelease.listing() return render_template('press.html', press_releases=press_releases, thumbnail=thumbnail(title='Pro média'))
def membership(): return render_template( 'membership.html', nav_active='club', thumbnail=thumbnail(title='Rozcestník pro členy klubu'))
def donate(): return render_template('donate.html', thumbnail=thumbnail(title='Pošli LOVE'))
def thanks(): return render_template('thanks.html', thumbnail=thumbnail(title='Díky!'))
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'))