-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Show correct title tag for tenant-specific content
- Loading branch information
Showing
7 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(TenantContext.OrganizationContext.Name); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">OtherOrg Index</h2> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) Index</h2> | ||
Content goes here... | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(string.Concat("News - ", TenantContext.OrganizationContext.ShortName)); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">OtherOrg News</h2> | ||
News Content goes here. | ||
</div> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) News</h2> | ||
Content goes here... | ||
</div> |
12 changes: 8 additions & 4 deletions
12
League.Demo/Views/TenantContent/OtherOrg/Info_RuleOfGame.cshtml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(string.Concat("Rule of Game - ", TenantContext.OrganizationContext.ShortName)); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">OtherOrg Rule of Game</h2> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) - Rule of Game</h2> | ||
Content goes here... | ||
</div> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(TenantContext.OrganizationContext.Name); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">TestOrg Index</h2> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) Index</h2> | ||
Content goes here... | ||
</div> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(string.Concat("News - ", TenantContext.OrganizationContext.ShortName)); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">TestOrg News</h2> | ||
News Content goes here... | ||
</div> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) News</h2> | ||
Content goes here... | ||
</div> |
12 changes: 8 additions & 4 deletions
12
League.Demo/Views/TenantContent/TestOrg/Info_RuleOfGame.cshtml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
@{ | ||
ViewData["Title"] = "Index"; | ||
@using League.Helpers | ||
@using TournamentManager.MultiTenancy | ||
@inject ITenantContext TenantContext | ||
@{ | ||
ViewData.Title(string.Concat("Rule of Game - ", TenantContext.OrganizationContext.ShortName)); | ||
ViewData.Description(TenantContext.OrganizationContext.Description); | ||
} | ||
<div class="mb-0 pb-1"> | ||
<h2 class="h2">TestOrg Rule of Game</h2> | ||
<h2 class="h2">@(TenantContext.OrganizationContext.ShortName) - Rule of Game</h2> | ||
Content goes here... | ||
</div> | ||
</div> |
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