Skip to content

Commit b47fd96

Browse files
authored
Add link for github tasks (hexlet-codebattle#1064)
1 parent 75a8870 commit b47fd96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services/app/lib/codebattle_web/templates/task/show.html.slim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
h3.text-center.mt-4 Params
55
.d-flex.flex-wrap.align-items-center.justify-content-around.text-muted
66
span Played count: #{@played_count}
7-
span Origin: #{@task.origin}
7+
= if @task.origin == "github" do
8+
a href="https://github.com/hexlet-codebattle/battle_asserts/tree/master/src/battle_asserts/issues/#{@task.name}.clj" Origin: #{@task.origin}
9+
- else
10+
span Origin: #{@task.origin}
811
span Visibility: #{@task.visibility}
912
span State: #{@task.state}
1013
= if @task.creator_id do

0 commit comments

Comments
 (0)