Skip to content

Commit

Permalink
Add links from participant profiles to contest results.
Browse files Browse the repository at this point in the history
  • Loading branch information
kodek16 committed Feb 3, 2020
1 parent d8a9fc6 commit a54a49a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _data/participants/kirik_00560.json
Expand Up @@ -2,10 +2,10 @@
"id": 560,
"name": {
"ru": {
"first": "Анастатсия",
"first": "Анастасия",
"patronymic": "Григорьевна",
"last": "Кирик"
}
},
"graduation": 2016
}
}
5 changes: 4 additions & 1 deletion _layouts/participant_profile.html
Expand Up @@ -54,7 +54,10 @@ <h2 class="entity-subtitle">
{% include grade_text.html result=entry %}
</td>
<td>
{% include contest_result.html result=entry long=true %}
<a href='{{ "/results/" | append: entry.region | append: "/" | append: year | relative_url }}'
class="entity-link">
{% include contest_result.html result=entry long=true %}
</a>
</td>
</tr>
{% endfor %}
Expand Down
1 change: 1 addition & 0 deletions _plugins/regionals.rb
Expand Up @@ -50,6 +50,7 @@ def initialize(site)
participant['results'] ||= {}
participant['results']['regionals'] ||= {}
participant['results']['regionals'][year] = entry
participant['results']['regionals'][year]['region'] = region
end
end
end
Expand Down

0 comments on commit a54a49a

Please sign in to comment.