Created
November 1, 2018 06:45
-
-
Save codehaks/137d74cd91604bf7985e45be6e851e86 to your computer and use it in GitHub Desktop.
Star Rating PartialView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model int | |
@for (var i = 0; i < 5; i++) | |
{ | |
if (i < Model) | |
{ | |
<i class="fa fa-star" style="color:#ffd800"></i> | |
} | |
else | |
{ | |
<i class="fa fa-star-o"></i> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment