File tree 5 files changed +38
-9
lines changed
content/gsoc-2019/project-ideas
5 files changed +38
-9
lines changed Original file line number Diff line number Diff line change
1
+ _ model: project-ideas
2
+ ---
3
+ title: GSoC 2019: Project Ideas
Original file line number Diff line number Diff line change
1
+ _ model: project-ideas
2
+ ---
3
+ title: GSoC 2019: Project Ideas
Original file line number Diff line number Diff line change
1
+ _ model: project-ideas
2
+ ---
3
+ title: GSoC 2019: Project Ideas
Original file line number Diff line number Diff line change 22
22
"nav_label" : " Difficulty: Hard" ,
23
23
"field" : " difficulty" ,
24
24
"value" : " Hard"
25
+ },
26
+ "skill-python" : {
27
+ "path" : " /gsoc-2019/project-ideas/skill-python" ,
28
+ "nav_label" : " Skill: Python" ,
29
+ "field" : " skill" ,
30
+ "value" : " Python"
31
+ },
32
+ "skill-javascript" : {
33
+ "path" : " /gsoc-2019/project-ideas/skill-javascript" ,
34
+ "nav_label" : " Skill: JavaScript" ,
35
+ "field" : " skill" ,
36
+ "value" : " JavaScript"
37
+ },
38
+ "skill-wordpress" : {
39
+ "path" : " /gsoc-2019/project-ideas/skill-wordpress" ,
40
+ "nav_label" : " Skill: WordPress" ,
41
+ "field" : " skill" ,
42
+ "value" : " WordPress"
25
43
}
26
44
}
Original file line number Diff line number Diff line change 20
20
{% if ns.field == 'difficulty' %}
21
21
{% set ideas = ideas.filter(F.difficulty == ns.value) %}
22
22
{% endif %}
23
+ {% if ns.field == 'skill' %}
24
+ {% set ideas = ideas.filter(F.skills_recommended.contains(ns.value)) %}
25
+ {% endif %}
23
26
< div class ="mt-4 ">
24
27
< div >
25
- < ul class ="nav nav-pills ">
26
- {% for slug, data in bag('project-filters').iteritems() %}
27
- < li class ="nav-item ">
28
- < a class ="nav-link{% if this._path == data['path'] %} active{% endif
29
- %} " href ="{{ data['path'] }} "> {{ data['nav_label'] }}</ a >
30
- </ li >
31
- {% endfor %}
32
- </ ul >
33
- < ul class ="list-unstyled m3 ">
28
+ {% for slug, data in bag('project-filters').iteritems() %}
29
+ < a href ="{{ data['path'] }} ">
30
+ < button type ="button " class ="btn btn-sm {% if this._path == data['path'] %}btn-dark{% else %}btn-primary{% endif %} " {% if this._path == data[ 'path'] %}disabled{% endif %}>
31
+ {{ data['nav_label'] }}
32
+ </ button >
33
+ </ a >
34
+ {% endfor %}
35
+ < ul class ="list-unstyled m-3 ">
34
36
{% for idea in ideas %}
35
37
< li class ="my-2 "> < a href ="#{{ idea._slug }} "> {{ idea.title }}</ a > </ li >
36
38
{% endfor %}
You can’t perform that action at this time.
0 commit comments