File tree Expand file tree Collapse file tree 7 files changed +83
-56
lines changed Expand file tree Collapse file tree 7 files changed +83
-56
lines changed Original file line number Diff line number Diff line change
1
+ .adjust-height {
2
+ height : 100% ;
3
+ }
4
+
5
+ .top {
6
+ margin-top : 20px ;
7
+ }
Original file line number Diff line number Diff line change 1
- < div >
2
- < h3 >
3
- < a href ="{{ url_for('job', job_id=job['id']) }} ">
4
- {{ job['title'] }}
5
- </ a >
6
- </ h3 >
7
- < div class ="description ">
8
- < h4 >
9
- < a href ="{{ url_for('employer', employer_id=job['employer_id']) }} "> {{ job['employer_name'] }}</ a >
10
- </ h4 >
11
- < p >
12
- ${{ job['salary'] }}< br >
13
- {{ job['description'] }}
1
+ < div class ="card adjust-height ">
2
+ < header class ="card-header ">
3
+ < p class ="card-header-title ">
4
+ < a href ="{{ url_for('job', job_id=job['id']) }} ">
5
+ {{ job['title'] }}
6
+ </ a >
14
7
</ p >
8
+ </ header >
9
+ < div class ="card-content ">
10
+ < div class ="content ">
11
+ < p >
12
+ < a href ="{{ url_for('employer', employer_id=job['employer_id']) }} "> {{ job['employer_name'] }}</ a > < br >
13
+ ${{ job['salary'] }}< br >
14
+ {{ job['description'] }}
15
+ </ p >
16
+ </ div >
15
17
</ div >
16
18
</ div >
Original file line number Diff line number Diff line change 1
1
{% extends 'layout.html' %}
2
2
3
3
{% block content %}
4
+
4
5
< div class ="columns ">
5
6
< div class ="column ">
6
7
< h1 > Jobs</ h1 >
7
8
</ div >
8
9
< div class ="column is-one-fifth ">
9
- < a href ="/admin/create " class ="button is-info "> New Job</ a >
10
+ < a href ="/admin/create " class ="button is-info is-pulled-right "> New Job</ a >
10
11
</ div >
11
12
</ div >
12
-
13
- {% for job in jobs %}
14
- {% with job=job %}
15
- {% include "_job.html" %}
16
- {% endwith %}
17
- {% if not loop.last %}
18
- < hr >
19
- {% endif %}
20
- {% endfor %}
13
+ < div class ="columns is-multiline ">
14
+ {% for job in jobs %}
15
+ < div class ="column is-half ">
16
+ {% with job=job %}
17
+ {% include "_job.html" %}
18
+ {% endwith %}
19
+ </ div >
20
+ {% endfor %}
21
+ </ div >
22
+
21
23
{% endblock %}
Original file line number Diff line number Diff line change @@ -7,34 +7,42 @@ <h1>{{ employer['name'] }}</h1>
7
7
< p > {{ employer['description'] }}</ p >
8
8
</ div >
9
9
</ div >
10
+
10
11
< h2 > Jobs</ h2 >
11
- {% for job in jobs %}
12
- {% with job=job %}
13
- {% include "_job.html" %}
14
- {% endwith %}
15
- {% if not loop.last %}
16
- < hr >
17
- {% endif %}
18
- {% endfor %}
12
+ < div class ="columns is-multiline ">
13
+ {% for job in jobs %}
14
+ < div class ="column is-half ">
15
+ {% with job=job %}
16
+ {% include "_job.html" %}
17
+ {% endwith %}
18
+ </ div >
19
+ {% endfor %}
20
+ </ div >
21
+
19
22
< h2 > Reviews</ h2 >
20
23
{% for review in reviews %}
21
- < div >
22
- < h3 > {{ review['title'] }}</ h3 >
23
- < div class ="review ">
24
- < p > {{ review['date'] }}</ p >
25
- {% for _ in range(1, review['rating']): %}
26
- < span class ="fa fa-star checked "> </ span >
27
- {% endfor %}
28
- < p > {{ review['review'] }}</ p >
29
- </ div >
24
+ < div class ="box ">
25
+ < article class ="media ">
26
+ < div class ="media-left ">
27
+ {% for _ in range(1, review['rating']): %}
28
+ < span class ="fa fa-star checked "> </ span >
29
+ {% endfor %}
30
+ </ div >
31
+ < div class ="media-content ">
32
+ < div class ="content ">
33
+ < p >
34
+ < strong > {{ review['title'] }}</ strong > < small > {{ review['status'] }} employee</ small > < small > {{ review['date'] }}</ small >
35
+ < br >
36
+ {{ review['review'] }}
37
+ </ p >
38
+ </ div >
39
+ </ div >
40
+ </ article >
30
41
</ div >
31
- {% if not loop.last %}
32
- < hr >
33
- {% endif %}
34
42
{% endfor %}
35
43
< div class ="columns ">
36
- < div class ="column is-one-fifth ">
37
- < a href ="{{ url_for('review', employer_id=employer['id']) }} " class ="button is-info "> Create Review</ a >
44
+ < div class ="column ">
45
+ < a href ="{{ url_for('review', employer_id=employer['id']) }} " class ="button is-info is-pulled-right "> Create Review</ a >
38
46
</ div >
39
47
</ div >
40
- {% endblock %}
48
+ {% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends 'layout.html' %}
2
2
3
3
{% block content %}
4
- < h1 > Jobs</ h1 >
5
- {% for job in jobs %}
6
- {% with job=job %}
7
- {% include "_job.html" %}
8
- {% endwith %}
9
- {% if not loop.last %}
10
- < hr >
11
- {% endif %}
12
- {% endfor %}
4
+ < div class ="columns ">
5
+ < div class ="column ">
6
+ < h1 > Jobs</ h1 >
7
+ </ div >
8
+ < div class ="column is-one-fifth ">
9
+ < a href ="/admin " class ="button is-info is-pulled-right "> Admin</ a >
10
+ </ div >
11
+ </ div >
12
+ < div class ="columns is-multiline ">
13
+ {% for job in jobs %}
14
+ < div class ="column is-half ">
15
+ {% with job=job %}
16
+ {% include "_job.html" %}
17
+ {% endwith %}
18
+ </ div >
19
+ {% endfor %}
20
+ </ div >
13
21
{% endblock %}
Original file line number Diff line number Diff line change 8
8
</ head >
9
9
< body >
10
10
11
- < div class ="container ">
11
+ < div class ="container top ">
12
12
< div class ="content ">
13
13
{% block content %}
14
14
{% endblock %}
You can’t perform that action at this time.
0 commit comments