Skip to content

Commit d2df210

Browse files
Akshat453Akshat Singhgautamjajoo
authored
Fix #4591: Adds Github Icon to link with challenge repository on UI (#4610)
* Merged challenge.html from upstream/master * Github Icon * Github Icon * Changes * Changes * Changes * Changes * Changes * Changes * Changes * Changes * Changes * Changes --------- Co-authored-by: Akshat Singh <[email protected]> Co-authored-by: Gautam Jajoo <[email protected]>
1 parent f63fa7c commit d2df210

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

frontend/src/css/modules/challenge.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,8 @@ md-select .md-select-value span:first-child:after {
432432
}
433433
}
434434

435+
.github-icon-link {
436+
margin-right: 10px;
437+
display: inline-block;
438+
vertical-align: middle;
439+
}

frontend/src/views/web/challenge/challenge-page.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ <h4 class="challenge-step-title w-300">{{challenge.page.title}}
9393
</div>
9494
</div>
9595
<div class="col m2 l2 fs-16 w-300 center">
96+
<a ng-if="(challenge.isChallengeHost ) && challenge.page.github_repository"
97+
ng-href="{{ 'https://github.com/' + challenge.page.github_repository }}"
98+
target="_blank"
99+
class="github-icon-link">
100+
<i class="fa fa-github fa-2x black-text" aria-hidden="true"></i>
101+
</a>
96102
<button class="waves-effect waves-dark btn ev-btn-dark w-300 fs-14" type="submit"
97103
ng-click="challenge.starChallenge()" ng-init="challenge.isStarred()"><i class="fa fa-star star"></i>
98104
{{challenge.data}}&nbsp;&nbsp;{{challenge.count}}</button>

0 commit comments

Comments
 (0)