Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: includes/jobs/header.tmpl

Issue 29570571: Issue 5846 - Add support for greenhouse for jobs on eyeo.com (Closed) Base URL: https://hg.adblockplus.org/web.eyeo.com
Patch Set: Created Oct. 9, 2017, 11:49 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « includes/jobs/footer.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {# 1 {#
2 For each job opening you have to list the title and the name of the file under 2 For each job opening you have to list the title and the name of the file under
3 pages/jobs that contains the job description. 3 pages/jobs that contains the job description.
4 #} 4 #}
5 5
6 {% block head %} 6 {% block head %}
7 <style> 7 <style>
8 #tabs-openings .ui-tabs-nav-vertical 8 #tabs-openings .ui-tabs-nav-vertical
9 { 9 {
10 font-size: 16px; 10 font-size: 16px;
11 } 11 }
12 </style> 12 </style>
13 {% endblock %} 13 {% endblock %}
14 14
15 {% set GREENHOUSE = 1 %}
16 {% set TALENTTRACKER = 2 %}
17 {% set EMAIL = 3 %}
ire 2017/10/10 08:18:33 NIT: I found this a bit confusing to understand at
juliandoucette 2017/10/10 10:46:22 - variable / constant names are more commonly auto
juliandoucette 2017/10/10 10:57:12 @wspee Do you think that this makes a difference t
ire 2017/10/10 11:43:52 We probably don't need the EMAIL constant anymore
ire 2017/10/10 11:43:52 Okay, I agree with your decision
18
15 {% set openings = [ 19 {% set openings = [
16 ("IT System Administrator", "it-system-administrator", 189), 20 ("IT System Administrator", "it-system-administrator", TALENTTRACKER, 189),
17 ("Data Engineer", "data-engineer", 194), 21 ("Data Engineer", "data-engineer", TALENTTRACKER, 194),
18 ("Technical Support Analyst", "technical-support-analyst", 191), 22 ("Technical Support Analyst", "technical-support-analyst", TALENTTRACKER, 191) ,
19 ("Filter List Supporter", "filter-list-supporter", 127), 23 ("Filter List Supporter", "filter-list-supporter", TALENTTRACKER, 127),
20 ("Whitelist Maintainer", "whitelist-maintainer", 108), 24 ("Whitelist Maintainer", "whitelist-maintainer", TALENTTRACKER, 108),
21 ("Flattr Campaign Coordinator (Student Help)", "flattr-campaign-coordinator-st udent-help", 195), 25 ("Flattr Campaign Coordinator (Student Help)", "flattr-campaign-coordinator-st udent-help", TALENTTRACKER, 195),
22 ("Student Help Acceptable Ads Monitoring", "student-help-acceptable-ads-monito ring", 193), 26 ("Student Help Acceptable Ads Monitoring", "student-help-acceptable-ads-monito ring", TALENTTRACKER, 193),
23 ("Student Help Data Protection (m/w)", "student-help-data-protection", 178), 27 ("Student Help Data Protection (m/w)", "student-help-data-protection", TALENTT RACKER, 178),
24 ("Speculative Application", "speculative-application", 51), 28 ("Speculative Application", "speculative-application", TALENTTRACKER, 51),
25 ] %} 29 ] %}
26 30
27 {% set opening = openings|find(page.split("/")[-1], attribute=1) %} 31 {% set opening = openings|find(page.split("/")[-1], attribute=1) %}
28 {% set title = (opening or [title])[0] %} 32 {% set title = (opening or [title])[0] %}
29 {% set og_image = "https://eyeo.com/images/eyeo-meta-jobs.png" %} 33 {% set og_image = "https://eyeo.com/images/eyeo-meta-jobs.png" %}
30 34
31 <header class="page-title"> 35 <header class="page-title">
32 <h1>Working at eyeo</h1> 36 <h1>Working at eyeo</h1>
33 </header> 37 </header>
34 38
35 <div id="jobs-info" class="content-block"> 39 <div id="jobs-info" class="content-block">
36 <div id="tabs-openings" class="columns-container one-sidebar"> 40 <div id="tabs-openings" class="columns-container one-sidebar">
37 <div class="column sidebar-left"> 41 <div class="column sidebar-left">
38 <h3 class="heading centered"><span>Current openings:</span></h3> 42 <h3 class="heading centered"><span>Current openings:</span></h3>
39 43
40 <ul class="ui-tabs-nav ui-tabs-nav-vertical"> 44 <ul class="ui-tabs-nav ui-tabs-nav-vertical">
41 {% for title, file, _ in openings %} 45 {% for title, file, type, id in openings %}
42 <li {% if file == page.split("/")[-1] %} class="ui-tabs-active" {% end if %}> 46 <li {% if file == page.split("/")[-1] %} class="ui-tabs-active" {% end if %}>
43 {{("jobs/" + file)|linkify(class="ui-tabs-anchor")}} 47 {{("jobs/" + file)|linkify(class="ui-tabs-anchor")}}
44 {{ title }} 48 {{ title }}
45 {% if file in german_openings %} 49 {% if file in german_openings %}
46 <img src="/images/flags/germany.png" alt="German" width="15" hei ght="10"> 50 <img src="/images/flags/germany.png" alt="German" width="15" hei ght="10">
47 {% endif %} 51 {% endif %}
48 </a> 52 </a>
49 </li> 53 </li>
50 {% endfor %} 54 {% endfor %}
51 </ul> 55 </ul>
52 56
53 57
54 <div class="contact-person no-mobile"> 58 <div class="contact-person no-mobile">
55 <? include jobs/contact ?> 59 <? include jobs/contact ?>
56 </div> 60 </div>
57 61
58 <p id="hiring-badges" class="no-mobile"> 62 <p id="hiring-badges" class="no-mobile">
59 <img id="ihk-logo" src="/images/ihk.png" alt="IHK Ausbildungsbetrieb" wi dth="120" height="80"> 63 <img id="ihk-logo" src="/images/ihk.png" alt="IHK Ausbildungsbetrieb" wi dth="120" height="80">
60 <img id="fair-company-logo" src="/images/fair-company.png" alt="Fair Com pany" height="80"> 64 <img id="fair-company-logo" src="/images/fair-company.png" alt="Fair Com pany" height="80">
61 </p> 65 </p>
62 </div> 66 </div>
63 67
64 <div class="column"> 68 <div class="column">
65 <div id="panels-openings" class="ui-tabs-panel"> 69 <div id="panels-openings" class="ui-tabs-panel">
66 {% if opening %} 70 {% if opening %}
67 <h2>{{ title }}</h2> 71 <h2>{{ title }}</h2>
68 {% endif %} 72 {% endif %}
OLDNEW
« no previous file with comments | « includes/jobs/footer.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld