Skip to content

Commit

Permalink
Add links to documentation (#7909)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffard authored Dec 17, 2020
1 parent 6e9f57d commit 32d2b68
Show file tree
Hide file tree
Showing 23 changed files with 133 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="SanitizeHtml" checked="@Model.SanitizeHtml" />
<label class="custom-control-label" asp-for="SanitizeHtml">@T["Sanitize Html"]</label>
<span class="hint dashed">@T["Whether the Html is sanitized to prevent custom scripts."]</span>
<span class="hint dashed">
@T["Whether the Html is sanitized to prevent custom scripts."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/core/Sanitizer" target="_blank">@T["See documentation"]</a>
</span>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@using OrchardCore.Facebook.Login.ViewModels;
@model FacebookLoginSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Facebook/#facebook-login" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Login Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@using OrchardCore.Facebook.ViewModels;
@model FacebookSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Facebook/#core-components" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Facebook Integration"]</h3>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@using OrchardCore.GitHub.ViewModels;
@model GitHubAuthenticationSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/GitHub/#authenticate-with-github" target="_blank">@T["See documentation"]</a>
</p>


<h3>@T["GitHub Authentication Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
@using OrchardCore.Google.Analytics.ViewModels;
@model GoogleAnalyticsSettingsViewModel;

<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Google/#google-analytics" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Google Analytics Settings"]</h3>

<div class="form-group row" asp-validation-class-for="TrackingID">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@using OrchardCore.Google.Authentication.ViewModels;
@model GoogleAuthenticationSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Google/#google-authentication" target="_blank">@T["See documentation"]</a>
</p>


<h3>@T["Google Authentication Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Admin.Abstractions\OrchardCore.Admin.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Apis.GraphQL.Abstractions\OrchardCore.Apis.GraphQL.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentLocalization.Abstractions\OrchardCore.ContentLocalization.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentManagement\OrchardCore.ContentManagement.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="SanitizeHtml" checked="@Model.SanitizeHtml" />
<label class="custom-control-label" asp-for="SanitizeHtml">@T["Sanitize Html"]</label>
<span class="hint dashed">@T["Whether the Html is sanitized to prevent custom scripts."]</span>
<span class="hint dashed">
@T["Whether the Html is sanitized to prevent custom scripts."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/core/Sanitizer" target="_blank">@T["See documentation"]</a>
</span>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<form asp-action="Index">
@if (Model.Zones == null || !Model.Zones.Any())
{
<p class="alert alert-warning">@T["Please <a href=\"{0}\">define the available zones</a> before adding Widgets", Url.Action("Index", "Admin", new { area = "OrchardCore.Settings", groupId = LayerSiteSettingsDisplayDriver.GroupId })]</p>
<p class="alert alert-warning">@T["Please <a href=\"{0}\">define the available zones</a> before adding Widgets", Url.Action("Index", "Admin", new { area = "OrchardCore.Settings", groupId = LayerSiteSettingsDisplayDriver.GroupId })]</p>
}
else
{
Expand All @@ -53,21 +53,21 @@
{
contentItemSummary.Tags.Add(Html.Raw("<span class=\"badge ta-badge font-weight-normal\"><i class=\"fa fa-bookmark-o text-info\" aria-hidden=\"true\"></i> " + contentItemSummary.ContentItem.Content.LayerMetadata.Layer + "</span>"));
maxPosition = Math.Max(maxPosition, (double)contentItemSummary.ContentItem.Content.LayerMetadata.Position);

<text>
<li class="list-group-item">
<div class="properties cursor-move">
@await DisplayAsync(contentItemSummary)
</div>
<input type="hidden"
class="layer-metadata"
data-zone="@zone"
data-layer="@contentItemSummary.ContentItem.Content.LayerMetadata.Layer"
data-position="@contentItemSummary.ContentItem.Content.LayerMetadata.Position.ToString(CultureInfo.InvariantCulture)"
data-content-item-id="@contentItemSummary.ContentItem.ContentItemId" />
class="layer-metadata"
data-zone="@zone"
data-layer="@contentItemSummary.ContentItem.Content.LayerMetadata.Layer"
data-position="@contentItemSummary.ContentItem.Content.LayerMetadata.Position.ToString(CultureInfo.InvariantCulture)"
data-content-item-id="@contentItemSummary.ContentItem.ContentItemId" />
</li>
</text>
}
}
</ul>
</div>
}
Expand Down Expand Up @@ -99,7 +99,10 @@
<div class="col-md-4 col-md-pull-right">
<h3>@T["Layers"]</h3>
<p>
<span class="hint">@T["Select a layer to reveal its associated widgets."]</span>
<span class="hint">
@T["Select a layer to reveal its associated widgets."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Layers/#rules" target="_blank">@T["See documentation"]</a>
</span>
</p>
<div class="form-group">
<ul class="list-group">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Admin.Abstractions\OrchardCore.Admin.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentTypes.Abstractions\OrchardCore.ContentTypes.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Data.Abstractions\OrchardCore.Data.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.DisplayManagement\OrchardCore.DisplayManagement.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,31 @@
<div class="form-group">
<label asp-for="Liquid">@T["Body"]</label>
<textarea asp-for="Liquid" rows="5" class="form-control content-preview-text"></textarea>
<span class="hint">@T["The body of the content item, in Liquid format."]</span>
<span class="hint">
@T["The body of the content item, in Liquid format."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Liquid" target="_blank">@T["See documentation"]</a>
</span>
</div>

<script at="Foot">
$(function () {
var textArea = document.getElementById('@Html.IdFor(x => x.Liquid)');
$(function () {
var textArea = document.getElementById('@Html.IdFor(x => x.Liquid)');
if (textArea == null) {
return;
}
if (textArea == null) {
return;
}
var editor = CodeMirror.fromTextArea(textArea, {
autoRefresh: true,
lineNumbers: true,
styleActiveLine: true,
matchBrackets: true,
mode: { name: "liquid" },
});
var editor = CodeMirror.fromTextArea(textArea, {
autoRefresh: true,
lineNumbers: true,
styleActiveLine: true,
matchBrackets: true,
mode: { name: "liquid" },
});
editor.on('change', function (cm) {
document.getElementById('@Html.IdFor(x => x.Liquid)').value = cm.getValue();
$(document).trigger('contentpreview:render');
editor.on('change', function (cm) {
document.getElementById('@Html.IdFor(x => x.Liquid)').value = cm.getValue();
$(document).trigger('contentpreview:render');
});
});
});
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Admin.Abstractions\OrchardCore.Admin.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.Apis.GraphQL.Abstractions\OrchardCore.Apis.GraphQL.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentLocalization.Abstractions\OrchardCore.ContentLocalization.Abstractions.csproj" />
<ProjectReference Include="..\..\OrchardCore\OrchardCore.ContentManagement.Abstractions\OrchardCore.ContentManagement.Abstractions.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="SanitizeHtml" checked="@Model.SanitizeHtml" />
<label class="custom-control-label" asp-for="SanitizeHtml">@T["Sanitize Html"]</label>
<span class="hint dashed">@T["Whether the Html output from the Markdown is sanitized to prevent custom scripts."]</span>
<span class="hint dashed">
@T["Whether the Html output from the Markdown is sanitized to prevent custom scripts."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/core/Sanitizer" target="_blank">@T["See documentation"]</a>
</span>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="SanitizeHtml" checked="@Model.SanitizeHtml" />
<label class="custom-control-label" asp-for="SanitizeHtml">@T["Sanitize Html"]</label>
<span class="hint dashed">@T["Whether the Html output is sanitized to prevent custom scripts."]</span>
<span class="hint dashed">
@T["Whether the Html output is sanitized to prevent custom scripts."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/core/Sanitizer" target="_blank">@T["See documentation"]</a>
</span>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
@model OrchardCore.Media.Azure.ViewModels.OptionsViewModel
<h1>@RenderTitleSegments(T["Azure Blob storage options"])</h1>

<p class="alert alert-secondary">@T["Azure Blob storage is configured with appsettings.json."]</p>
<p class="alert alert-secondary">
@T["Azure Blob storage is configured with appsettings.json."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Media.Azure/#configuration" target="_blank">@T["See documentation"]</a>
</p>

<a href="https://docs.orchardcore.net/en/dev/docs/reference/modules/Media.Azure/#configuration">@T["See documentation"]</a>
<div class="form-group row">
<label asp-for="ConnectionString" class="col-sm-2 col-form-label">@T["Connection String"]</label>
<div class="col-sm-10">
<code>
@if(!String.IsNullOrEmpty(Model.ConnectionString))
{
@T["Configured"]
}
else
{
@T["Not Configured"]
}
</code>
@if (!String.IsNullOrEmpty(Model.ConnectionString))
{
@T["Configured"]
}
else
{
@T["Not Configured"]
}
</code>
</div>
</div>
</div>

<div class="form-group row">
<label asp-for="ContainerName" class="col-sm-2 col-form-label">@T["Container Name"]</label>
<div class="col-sm-10">
<code><input type="text" class="form-control-plaintext" value="@Model.ContainerName" /></code>
<div class="form-group row">
<label asp-for="ContainerName" class="col-sm-2 col-form-label">@T["Container Name"]</label>
<div class="col-sm-10">
<code><input type="text" class="form-control-plaintext" value="@Model.ContainerName" /></code>
</div>
</div>
</div>

<div class="form-group row">
<label asp-for="BasePath" class="col-sm-2 col-form-label">@T["Base Path"]</label>
<div class="col-sm-10">
<code><input type="text" class="form-control-plaintext" value="@Model.BasePath" /></code>
<div class="form-group row">
<label asp-for="BasePath" class="col-sm-2 col-form-label">@T["Base Path"]</label>
<div class="col-sm-10">
<code><input type="text" class="form-control-plaintext" value="@Model.BasePath" /></code>
</div>
</div>
</div>

<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="CreateContainer" checked="@Model.CreateContainer" disabled />
<label class="custom-control-label" asp-for="CreateContainer">@T["Create Container"]</label>
<span class="hint">@T["Whether a blob container is created on startup if it does not exist."]</span>
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="CreateContainer" checked="@Model.CreateContainer" disabled />
<label class="custom-control-label" asp-for="CreateContainer">@T["Create Container"]</label>
<span class="hint">@T["Whether a blob container is created on startup if it does not exist."]</span>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
}
<h1>@RenderTitleSegments(T["Media options"])</h1>

<p class="alert alert-secondary">@T["Media is configured with appsettings.json."]</p>
<p class="alert alert-secondary">
@T["Media is configured with appsettings.json."]
<i class="fa fa-book"></i> <a href="https://docs.orchardcore.net/en/latest/docs/reference/modules/Media/#configuration" target="_blank">@T["See documentation"]</a>
</p>

<a href="https://docs.orchardcore.net/en/latest/docs/reference/modules/Media/#configuration">@T["See documentation"]</a>
<div class="form-group row">
<label asp-for="SupportedSizes" class="col-sm-2 col-form-label">@T["Supported sizes"]</label>
<div class="col-sm-10">
<div class="col-sm-10">
<code><input type="text" class="form-control-plaintext" value="@supportedSizes" /></code>
<span class="hint">@T["The accepted sizes for custom width and height."]</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@using OrchardCore.Microsoft.Authentication.ViewModels;
@model AzureADSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Microsoft.Authentication/#azure-active-directory" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Azure AD Authentication Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@using OrchardCore.Microsoft.Authentication.ViewModels;
@model MicrosoftAccountSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Microsoft.Authentication/#microsoft-account" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Microsoft Account Authentication Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<li class="list-group-item">
<div class="alert alert-info mb-0" role="alert">
@T["<strong>Nothing here!</strong> There are no shortcodes for the moment."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Shortcodes/#example-shortcode-templates" target="_blank">@T["See documentation"]</a>
</div>
</li>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ else
<li class="list-group-item">
<div class="alert alert-info mb-0" role="alert">
@T["<strong>Nothing here!</strong> There are no templates for the moment."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Templates" target="_blank">@T["See documentation"]</a>
</div>
</li>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@using OrchardCore.Twitter.ViewModels;
@model TwitterSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Twitter/#twitter-integration" target="_blank">@T["See documentation"]</a></p>

<h3>@T["Twitter Integration Settings"]</h3>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
@using OrchardCore.Twitter.Signin.ViewModels;
@model TwitterSigninSettingsViewModel;

<p class="alert alert-warning">@T["The current tenant will be reloaded when the settings are saved."]</p>
<p class="alert alert-warning">
@T["The current tenant will be reloaded when the settings are saved."]
<i class="fa fa-book"></i> <a href="@(OrchardCore.Admin.Constants.DocsUrl)reference/modules/Twitter/#sign-in-with-twitter" target="_blank">@T["See documentation"]</a>
</p>

<h3>@T["Sign in with Twitter Settings"]</h3>

Expand Down
Loading

0 comments on commit 32d2b68

Please sign in to comment.