-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
353 additions
and
12 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@inherits Custom.Hybrid.Razor14 | ||
|
||
@{ | ||
// get helper commands | ||
var linkHelper = CreateInstance("../Shared/LinkHelper.cs"); | ||
|
||
var fileMetadataToolbar = Kit.Toolbar.Empty().Edit().Add(); | ||
|
||
Kit.Page.Activate("Fontawesome5"); | ||
} | ||
|
||
<div class="app-filelist mb-4" @Kit.Toolbar.Default(Content)> | ||
<h1>@Content.Title</h1> | ||
<div class="list-group"> | ||
@foreach (var file in AsList(AsAdam(Content,"Files").Files as object)) { | ||
<a href="@file.Url" class="list-group-item list-group-item-action ps-2" aria-current="true" @fileMetadataToolbar.For(file.Metadata)> | ||
<i class="co-icon fas @file.Metadata.Icon" aria-hidden="true"></i> | ||
<span> | ||
<strong>@file.Metadata.Title</strong> | ||
@{ | ||
var sizeInfo = Kit.Adam.File(file.Id).SizeInfo; | ||
} | ||
@if(sizeInfo.BestSize > 0){ | ||
<text>(@sizeInfo.BestSize.ToString("#.##") @sizeInfo.BestUnit)</text> | ||
} | ||
<span class="description-wrapper"> | ||
@Html.Raw(file.Metadata.Description) | ||
</span> | ||
</span> | ||
</a> | ||
} | ||
|
||
@foreach(var folder in AsList(AsAdam(Content, "Files").Folders as object)){ | ||
@Html.Partial("_Subfolder.cshtml", new { Folder = folder, Level = 2 }) | ||
} | ||
</div> | ||
</div> | ||
|
||
@Html.Partial("../Shared/_Assets.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@inherits Custom.Hybrid.Razor14 | ||
@using System.Text.RegularExpressions; | ||
@using ToSic.Razor.Blade; | ||
@{ | ||
var Folder = DynamicModel.Folder; | ||
|
||
var level = DynamicModel.Level; | ||
|
||
var fileMetadataToolbar = Kit.Toolbar.Empty().Edit().Add(); | ||
} | ||
<a class="list-group-item ps-@level" href="#[email protected]" data-bs-toggle="collapse" role="button" aria-expanded="false" aria-controls="[email protected]"> | ||
<i class="co-icon fas fa-folder" aria-hidden="true"></i> | ||
<strong>@Folder.Name</strong> | ||
</a> | ||
|
||
@{ | ||
level = level + 1; | ||
} | ||
<div id="[email protected]" class="collapse"> | ||
@if(AsList(Folder.Files) != null){ | ||
foreach(var file in AsList(Folder.Files)){ | ||
<a href="@file.Url" class="list-group-item list-group-item-action ps-@level" aria-current="true" @fileMetadataToolbar.For(file.Metadata)> | ||
<i class="co-icon fas @file.Metadata.Icon" aria-hidden="true"></i> | ||
<span> | ||
<strong>@file.Metadata.Title</strong> | ||
@{ | ||
var sizeInfo = Kit.Adam.File(file.Id).SizeInfo; | ||
} | ||
@if(sizeInfo.BestSize > 0){ | ||
<text>(@sizeInfo.BestSize.ToString("#.##") @sizeInfo.BestUnit)</text> | ||
} | ||
<span class="description-wrapper"> | ||
@Html.Raw(file.Metadata.Description) | ||
</span> | ||
</span> | ||
</a> | ||
} | ||
} | ||
@if(AsList(Folder.Files) != null){ | ||
foreach(var folder in AsList(Folder.Folders)){ | ||
@Html.Partial("_Subfolder.cshtml", new { Folder = folder, Level = level }) | ||
} | ||
} | ||
</div> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -14,5 +14,11 @@ | |
} | ||
} | ||
} | ||
|
||
.description-wrapper{ | ||
p{ | ||
margin: 0!important; | ||
} | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@inherits Custom.Hybrid.Razor14 | ||
|
||
@{ | ||
// get helper commands | ||
var linkHelper = CreateInstance("../Shared/LinkHelper.cs"); | ||
|
||
var fileMetadataToolbar = Kit.Toolbar.Empty().Edit().Add(); | ||
|
||
Kit.Page.Activate("Fontawesome5"); | ||
} | ||
|
||
<div class="app-filelist mb-4" @Kit.Toolbar.Default(Content)> | ||
<h1>@Content.Title</h1> | ||
<div class="list-group"> | ||
@foreach (var file in AsList(AsAdam(Content,"Files").Files as object)) { | ||
<a href="@file.Url" class="list-group-item list-group-item-action pl-2" aria-current="true" @fileMetadataToolbar.For(file.Metadata)> | ||
<i class="co-icon fas @file.Metadata.Icon" aria-hidden="true"></i> | ||
<span> | ||
<strong>@file.Metadata.Title</strong> | ||
@{ | ||
var sizeInfo = Kit.Adam.File(file.Id).SizeInfo; | ||
} | ||
@if(sizeInfo.BestSize > 0){ | ||
<text>(@sizeInfo.BestSize.ToString("#.##") @sizeInfo.BestUnit)</text> | ||
} | ||
<span class="description-wrapper"> | ||
@Html.Raw(file.Metadata.Description) | ||
</span> | ||
</span> | ||
</a> | ||
} | ||
|
||
@foreach(var folder in AsList(AsAdam(Content, "Files").Folders as object)){ | ||
@Html.Partial("_Subfolder.cshtml", new { Folder = folder, Level = 2 }) | ||
} | ||
</div> | ||
</div> | ||
|
||
@Html.Partial("../Shared/_Assets.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@inherits Custom.Hybrid.Razor14 | ||
@using System.Text.RegularExpressions; | ||
@using ToSic.Razor.Blade; | ||
@{ | ||
var Folder = DynamicModel.Folder; | ||
|
||
var level = DynamicModel.Level; | ||
|
||
var fileMetadataToolbar = Kit.Toolbar.Empty().Edit().Add(); | ||
} | ||
<a class="list-group-item pl-@level" href="#[email protected]" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="[email protected]"> | ||
<i class="co-icon fas fa-folder" aria-hidden="true"></i> | ||
<strong>@Folder.Name</strong> | ||
</a> | ||
|
||
@{ | ||
level = level + 1; | ||
} | ||
<div id="[email protected]" class="collapse"> | ||
@if(AsList(Folder.Files) != null){ | ||
foreach(var file in AsList(Folder.Files)){ | ||
<a href="@file.Url" class="list-group-item list-group-item-action pl-@level" aria-current="true" @fileMetadataToolbar.For(file.Metadata)> | ||
<i class="co-icon fas @file.Metadata.Icon" aria-hidden="true"></i> | ||
<span> | ||
<strong>@file.Metadata.Title</strong> | ||
@{ | ||
var sizeInfo = Kit.Adam.File(file.Id).SizeInfo; | ||
} | ||
@if(sizeInfo.BestSize > 0){ | ||
<text>(@sizeInfo.BestSize.ToString("#.##") @sizeInfo.BestUnit)</text> | ||
} | ||
<span class="description-wrapper"> | ||
@Html.Raw(file.Metadata.Description) | ||
</span> | ||
</span> | ||
</a> | ||
} | ||
} | ||
@if(AsList(Folder.Files) != null){ | ||
foreach(var folder in AsList(Folder.Folders)){ | ||
@Html.Partial("_Subfolder.cshtml", new { Folder = folder, Level = level }) | ||
} | ||
} | ||
</div> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -13,4 +13,10 @@ | |
} | ||
} | ||
} | ||
|
||
.description-wrapper{ | ||
p{ | ||
margin: 0!important; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@inherits Custom.Hybrid.Razor14 | ||
@using ToSic.Razor.Blade; | ||
@{ | ||
// get helper commands | ||
var linkHelper = CreateInstance("../Shared/LinkHelper.cs"); | ||
|
||
Kit.Page.Activate("Fontawesome5"); | ||
|
||
var fileMetadataToolbar = Kit.Toolbar.Empty().Edit().Add(); | ||
} | ||
|
||
<div class="app-filelist mb-4" @Kit.Toolbar.Default(Content)> | ||
<h1>@Content.Title</h1> | ||
<div class="list-group"> | ||
@foreach (var file in AsAdam(Content,"Files").Files) { | ||
var fileTitle = Text.First(file.Metadata.Title, file.Name); | ||
|
||
<a href="@file.Url" class="list-group-item list-group-item-action ps-2" aria-current="true" @fileMetadataToolbar.For(file.Metadata)> | ||
<i class="co-icon fas @file.Metadata.Icon" aria-hidden="true"></i> | ||
<span> | ||
<strong>@fileTitle</strong> | ||
@{ | ||
var sizeInfo = Kit.Adam.File(file.Id).SizeInfo; | ||
} | ||
@if(sizeInfo.BestSize > 0){ | ||
<text>(@sizeInfo.BestSize.ToString("#.##") @sizeInfo.BestUnit)</text> | ||
} else { | ||
<text>(0 KB)</text> | ||
} | ||
<span class="description-wrapper"> | ||
@Html.Raw(file.Metadata.Description) | ||
</span> | ||
</span> | ||
</a> | ||
} | ||
|
||
@foreach(var folder in AsAdam(Content, "Files").Folders) { | ||
@Html.Partial("_Subfolder.cshtml", new { Folder = folder, Level = 2 }) | ||
} | ||
</div> | ||
</div> | ||
|
||
@Html.Partial("../Shared/_Assets.cshtml") |
Oops, something went wrong.