-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.html
78 lines (75 loc) · 3.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% extends "inc/layout.html" %}
{% block titletags -%}
<title>{{ config['SITE_TITLE'] }}</title>
<meta name="DC.title" content="{{ config['SITE_TITLE'] }}"/>
{%- endblock %}
{% block pageheaders %}
{%- if jobtype %}<link rel="alternate" type="application/atom+xml" title="{{ jobtype.title }} – {{ config['SITE_TITLE']|e }}" href="{{ url_for('feed_by_type', slug=jobtype.slug) }}" />{% endif -%}
{%- if jobcategory %}<link rel="alternate" type="application/atom+xml" title="{{ jobcategory.title }} – {{ config['SITE_TITLE']|e }}" href="{{ url_for('feed_by_category', slug=jobcategory.slug) }}" />{% endif -%}
{%- if md5sum %}<link rel="alternate" type="application/atom+xml" title="Jobs at {{ employer_name }} – {{ config['SITE_TITLE'] }}" href="{{ url_for('feed_by_email', md5sum=md5sum) }}" />{% endif -%}
{% endblock %}
{% block header %}
<p id="pitch">
HasGeek reaches out to thousands of developers via events, blogs and discussion groups.
Job listings made here reach the entire network. <a href="{{ url_for('newjob')|usessl }}">Post a job →</a>
</p>
{% endblock %}
{% block content %}
{# {% include "inc/logo.html" %} #}
<ul id="stickie-area">
{% if jobtype or jobcategory %}
<li id="filtered" class="stickie">
<a href="{{ url_for('index') }}">
<span class="filtered">
You are viewing
{% if jobtype %}{{ jobtype.title.lower() }}{% endif %}
{% if jobcategory %}{{ jobcategory.title.lower() }}{% endif %}
jobs. View all jobs?
</span>
</a>
</li>
{%- elif md5sum %}
<li id="filtered" class="stickie">
<a href="{{ url_for('index') }}">
<span class="filtered">
You are viewing jobs at {{ employer_name }}. View all jobs?
</span>
</a>
</li>
{%- else -%}
<li id="newpost" class="stickie">
<form action="{{ url_for('newjob')|usessl }}" method="POST">
<input type="hidden" name="_charset_"/>
<input type="hidden" name="form.id" value="newheadline"/>
<label id="newpost_title" for="newpost_headline">Post a job:</label>
<textarea id="newpost_headline" name="job_headline" class="expand">Awesome Coder wanted at Awesome Company</textarea>
<div id="newpost_details"><input type="submit" value="Add details →"/></div>
</form>
</li>
{%- endif -%}
{%- for post in posts -%}
<li class="stickie">
<a href="{{ url_for('jobdetail', hashid=post.hashid) }}" rel="bookmark">
<span class="location">{{ post.location }}</span>
<span class="date">{{ post.datetime|shortdate }}</span>
<span class="headline">{{ post.headline }}</span>
{%- if now - post.datetime < newlimit %}<span class="new">New!</span>{% endif %}
</a>
</li>
{%- else -%}
<li class="stickie" id="nojobs">
Sorry, no jobs listed.
</li>
{% endfor %}
</ul>
{% endblock %}
{% block footerscripts %}
<script type="text/javascript">
$(function() {
$("#newpost_details").hide();
$("#newpost_headline").focus(function() {
$("#newpost_details").slideDown();
});
});
</script>
{% endblock %}