File tree Expand file tree Collapse file tree 6 files changed +23
-22
lines changed
Views/Blogifier/Themes/OneFour/_Shared
Packages/Widgets/Newsletter
Views/Shared/Components/Newsletter Expand file tree Collapse file tree 6 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -97,16 +97,12 @@ public static IEnumerable<Assembly> GetAssemblies()
9797 var assembly = Assembly . LoadFile ( dll ) ;
9898 var product = assembly . GetCustomAttribute < AssemblyProductAttribute > ( ) . Product ;
9999
100- if ( ! string . IsNullOrEmpty ( product ) && product . StartsWith ( "Blogifier." ) )
100+ if ( product . StartsWith ( "Blogifier." ) && ! product . StartsWith ( "Blogifier.Web " ) )
101101 {
102- if ( ! product . StartsWith ( "Blogifier.Web" ) )
103- {
104- assemblies . Add ( assembly ) ;
105- }
102+ assemblies . Add ( assembly ) ;
106103 }
107104 }
108- catch ( FileLoadException ) { }
109- catch ( BadImageFormatException ) { }
105+ catch { }
110106 }
111107 }
112108 catch { }
Original file line number Diff line number Diff line change 33using Blogifier . Core . Data . Interfaces ;
44using Blogifier . Core . Data . Models ;
55using Blogifier . Core . Middleware ;
6- using Blogifier . Core . Services . Search ;
76using Microsoft . AspNetCore . Authorization ;
87using Microsoft . AspNetCore . Mvc ;
98using Microsoft . AspNetCore . Mvc . ViewEngines ;
1514namespace Blogifier . Core . Controllers
1615{
1716 [ Authorize ]
18- [ Route ( "packages " ) ]
19- public class PackagesController : Controller
17+ [ Route ( "admin/[controller] " ) ]
18+ public class PackagesController : Controller
2019 {
2120 private readonly string _theme ;
2221 private readonly ILogger _logger ;
2322 private readonly ICompositeViewEngine _engine ;
2423 IUnitOfWork _db ;
25- ISearchService _search ;
2624
2725 public PackagesController ( IUnitOfWork db , ILogger < AdminController > logger , ICompositeViewEngine engine )
2826 {
Original file line number Diff line number Diff line change 2929 <ProjectReference Include =" ..\Blogifier.Core\Blogifier.Core.csproj" />
3030 </ItemGroup >
3131
32-
32+ <Target Name =" PostBuild" AfterTargets =" PostBuildEvent" Condition =" Exists('$(SolutionDir)Packages\Widgets\Newsletter\bin\Debug\netcoreapp2.0\Newsletter.dll')" >
33+ <Exec Command =" xcopy " $(SolutionDir)Packages\Widgets\Newsletter\bin\Debug\netcoreapp2.0\Newsletter.dll" " $(TargetDir)" /Y" />
34+ <Exec Command =" xcopy " $(SolutionDir)Packages\Widgets\PostList\bin\Debug\netcoreapp2.0\PostList.dll" " $(TargetDir)" /Y" />
35+ </Target >
3336
3437 <ItemGroup >
3538 <Folder Include =" Logs\" />
Original file line number Diff line number Diff line change 11@using Blogifier .Core .Common
2- @using Blogifier .Core .Data .Models
3- @using Blogifier .Core .Extensions
42@model Pager
5-
63@if (Model != null )
74{
85 @if (Model .ShowOlder || Model .ShowNewer )
96 {
107 <ul class =" pagination justify-content-center" >
118 @if (Model .ShowOlder )
129 {
13- <li class =" item item-prev" ><a class =" item-link" href =" ~/@ApplicationSettings.BlogRoute@Model.RouteValue@Model.Older" ><i class =" item-icon fa fa-angle-left" ></i ></a ></li >
10+ <li class =" item item-prev" ><a class =" item-link" href =" ~/@ApplicationSettings.BlogRoute@Model.RouteValue?page= @Model.Older" ><i class =" item-icon fa fa-angle-left" ></i ></a ></li >
1411 }
1512 @if (Model .ShowNewer )
1613 {
17- <li class =" item item-next" ><a class =" item-link" href =" ~/@ApplicationSettings.BlogRoute@Model.RouteValue@Model.Newer" ><i class =" item-icon fa fa-angle-right" ></i ></a ></li >
14+ <li class =" item item-next" ><a class =" item-link" href =" ~/@ApplicationSettings.BlogRoute@Model.RouteValue?page= @Model.Newer" ><i class =" item-icon fa fa-angle-right" ></i ></a ></li >
1815 }
1916 </ul >
2017 }
21-
22- }
18+ }
Original file line number Diff line number Diff line change 33using Blogifier . Core . Data . Interfaces ;
44using Blogifier . Core . Data . Models ;
55using Blogifier . Core . Middleware ;
6+ using Microsoft . AspNetCore . Authorization ;
67using Microsoft . AspNetCore . Mvc ;
78using System . Collections . Generic ;
89using System . Linq ;
910using System . Threading . Tasks ;
1011
1112namespace Newsletter
1213{
13- public class NewsletterController : Controller
14+ [ Authorize ]
15+ [ Route ( "admin/[controller]" ) ]
16+ public class PackagesController : Controller
1417 {
1518 IUnitOfWork _db ;
1619 static readonly string key = "NEWSLETTER" ;
1720
18- public NewsletterController ( IUnitOfWork db )
21+ public PackagesController ( IUnitOfWork db )
1922 {
2023 _db = db ;
2124 }
2225
2326 [ VerifyProfile ]
24- [ HttpGet ( "admin/packages/ widgets/Newsletter" ) ]
27+ [ HttpGet ( "widgets/Newsletter" ) ]
2528 public IActionResult Settings ( string search = "" )
2629 {
2730 var profile = _db . Profiles . Single ( b => b . IdentityName == User . Identity . Name ) ;
Original file line number Diff line number Diff line change 99 <!-- Toolbar -->
1010 <div class =" bf-toolbar d-flex" >
1111 <label class =" custom-control custom-checkbox my-auto mr-3" ><input class =" custom-control-input item-checkbox" type =" checkbox" id =" selectAll" name =" selectAll" ><span class =" item-control custom-control-indicator" ></span ></label >
12+ <div id =" postActionButtons" class =" btn-group mr-3" >
13+ <a asp-controller =" Packages" asp-action =" Widgets" class =" btn btn-outline-secondary btn-sm btn-rounded" style =" padding : 0 20px " >
14+ <i class =" fa fa-arrow-left" ></i >   ; Back
15+ </a >
16+ </div >
1217 <div id =" postActionButtons" class =" btn-group mr-3" >
1318 <button type =" button" class =" btn btn-outline-secondary btn-icon btn-sm btn-rounded" disabled =" disabled" data-tooltip onclick =" return newsletter.remove()" title =" Remove" ><i class =" fa fa-trash" ></i ></button >
1419 </div >
You can’t perform that action at this time.
0 commit comments