Skip to content

Commit

Permalink
minor layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-o-e-d-o-e committed Oct 10, 2018
1 parent d179ed9 commit c8fd242
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions MvcSecSql.Ui/MvcSecSql.Ui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<Content Update="Views\Membership\Band.cshtml">
<Pack>$(IncludeRazorContentInPack)</Pack>
</Content>
<Content Update="Views\Membership\_BandMemberPartial.cshtml">
<Pack>$(IncludeRazorContentInPack)</Pack>
</Content>
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions MvcSecSql.Ui/Views/Membership/Band.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@

@if (module.Videos != null)
{
@await Html.PartialAsync("_ModuleVideosPartial", module.Videos)
@await Html.PartialAsync("_AlbumPartial", module.Videos)
}

@if (module.Downloads != null)
{
<hr class="no-margin">
<div class="panel-body download-panel">
<h5 class="text-dark">Album info</h5>
@await Html.PartialAsync("_ModuleDownloadsPartial", module.Downloads)
@await Html.PartialAsync("_AlbumInfoPartial", module.Downloads)
</div>
}
</div>
Expand All @@ -65,7 +65,7 @@
<div class="row">
@if (Model.Instructor != null)
{
@await Html.PartialAsync("_InstructorBioPartial", Model.Instructor)
@await Html.PartialAsync("_BandMemberPartial", Model.Instructor)
}
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion MvcSecSql.Ui/Views/Membership/Dashboard.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="row">
@foreach (var course in dashboardRow)
{
@await Html.PartialAsync("_CoursePanelPartial", course)
@await Html.PartialAsync("_GenrePanelPartial", course)
}
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion MvcSecSql.Ui/Views/Membership/Genre.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@if (Model.Instructor != null)
{
<a href="~/Membership/Band/1" style="text-decoration: none;">
@await Html.PartialAsync("_InstructorBioPartial", Model.Instructor)
@await Html.PartialAsync("_BandPartial", Model.Instructor)

</a>
}
Expand Down
10 changes: 10 additions & 0 deletions MvcSecSql.Ui/Views/Membership/_BandMemberPartial.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@model InstructorDto

<div class="instructor-bio panel">
<div class="panel-body">
<img src="@Model.InstructorAvatar" class="avatar avatar-bandmember img-circle">
<h5 class="text-dark">@Model.InstructorName</h5>
<h6 class="text-dark">Singer</h6>
@* <p class="text-dark">@Model.InstructorDescription</p> *@
</div>
</div>
5 changes: 5 additions & 0 deletions MvcSecSql.Ui/wwwroot/css/instructor-bio.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
padding: 8px;
height: 100px;
width: 100px;
}

.avatar-bandmember {
height: 80px;
width: 80px;
}
2 changes: 1 addition & 1 deletion MvcSecSql.Ui/wwwroot/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8fd242

Please sign in to comment.