Browse Source

Job Affinity Updated and Fixed for good.

master
miladkdz 10 years ago
parent
commit
c8ed6f0008
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      Sevomin.Models/DovominJobViewModel.cs
  2. +3
    -3
      Sevomin.WebFrontend/Views/Job/Apply.cshtml
  3. +1
    -1
      Sevomin.WebFrontend/Views/Job/SingleJob.cshtml

+ 1
- 1
Sevomin.Models/DovominJobViewModel.cs View File

@ -66,7 +66,7 @@ namespace Sevomin.Models
this.JobId = dovominJob.JobId;
this.ApplyDate = dovominJob.ApplyDate;
this.CoverLetter = dovominJob.CoverLetter;
this.Affinity = dovominJob.Affinity;
this.Affinity = (int)(dovominJob.Affinity * 100);
this.MinimumRequirement = dovominJob.MinimumRequirement;
this.AvalinSeen = dovominJob.AvalinSeen;
this.AvalinComment = dovominJob.AvalinComment;


+ 3
- 3
Sevomin.WebFrontend/Views/Job/Apply.cshtml View File

@ -12,10 +12,10 @@
{
<div class="row">
<div class="col-md-4 rtl">
<span>میزان مطابقت شما با این فرصت شغلی @(Model.Affinity * 100) درصد می باشد.</span>
<span>میزان مطابقت شما با این فرصت شغلی @(Model.Affinity) درصد می باشد.</span>
<div class="progress progress-striped">
<div class="progress-bar @(Model.MinimumRequirement ? "progress-bar-success" : "progress-bar-warning")" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: @((float)(Model.Affinity * 100))%">
<span class="sr-only">@((float)(Model.Affinity * 100))%</span>
<div class="progress-bar @(Model.MinimumRequirement ? "progress-bar-success" : "progress-bar-warning")" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: @((float)(Model.Affinity))%">
<span class="sr-only">@((float)(Model.Affinity))%</span>
</div>
</div>
</div>


+ 1
- 1
Sevomin.WebFrontend/Views/Job/SingleJob.cshtml View File

@ -79,4 +79,4 @@
</table>
</div>
</div>
</div>
</div>

Loading…
Cancel
Save