diff --git a/README.md b/README.md index 2a2b79e..1590617 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ http://qasample.aspnetboilerplate.com/ To run the sample: - Open the solution with Visual Studio. -- Set `ModuleZeroSampleProject.Web` as your startup project. -- Check the connection string in Web.config and change if necessary. -- Run database migrations: Run 'Update-Database' command from Package Manager Console while ModuleZeroSampleProject.EntityFramework is selected as default project. This creates database and populates initial data. +- Run database migrations by running.`QuestionsAnswers.Migrator` project. +- Set `QuestionsAnswers.Web` as your startup project. +- Check the connection string in `appsettings.json` and change if necessary. - Run the application! That's it. ![alt login form](https://raw.githubusercontent.com/aspnetboilerplate/questions-answers/master/doc/login-form.png) diff --git a/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers-tr.json b/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers-tr.json index e34b617..0874535 100644 --- a/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers-tr.json +++ b/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers-tr.json @@ -26,7 +26,7 @@ "SortedBy": "Şuna Göre Sırala", "SortAscending": "Artan Sırala", "SortDescending": "Azalan Sırala", - "RememberMe": "Beni Hatırla" - + "RememberMe": "Beni Hatırla", + "ThereAreNoQuestionsToShow" : "Gösterilecek soru bulunmuyor!" } } \ No newline at end of file diff --git a/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers.json b/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers.json index b05311d..61cb818 100644 --- a/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers.json +++ b/src/QuestionsAnswers.Core/Localization/SourceFiles/QuestionsAnswers.json @@ -26,8 +26,7 @@ "SortedBy": "Sorted by", "SortAscending": "Sort by Ascending", "SortDescending": "Sort by Descending", - "RememberMe": "Remember me" - - + "RememberMe": "Remember me", + "ThereAreNoQuestionsToShow" : "There are no questions to show!" } } \ No newline at end of file diff --git a/src/QuestionsAnswers.Migrator/Program.cs b/src/QuestionsAnswers.Migrator/Program.cs index c57ee6e..05cf2d0 100644 --- a/src/QuestionsAnswers.Migrator/Program.cs +++ b/src/QuestionsAnswers.Migrator/Program.cs @@ -18,8 +18,8 @@ namespace QuestionsAnswers.Migrator using (var bootstrapper = AbpBootstrapper.Create()) { bootstrapper.IocManager.IocContainer - .AddFacility( - f => f.UseAbpLog4Net().WithConfig("log4net.config") + .AddFacility(f => f.UseAbpLog4Net() + .WithConfig("log4net.config") ); bootstrapper.Initialize(); diff --git a/src/QuestionsAnswers.Migrator/QuestionsAnswers.Migrator.csproj b/src/QuestionsAnswers.Migrator/QuestionsAnswers.Migrator.csproj index ba9b015..6166df8 100644 --- a/src/QuestionsAnswers.Migrator/QuestionsAnswers.Migrator.csproj +++ b/src/QuestionsAnswers.Migrator/QuestionsAnswers.Migrator.csproj @@ -19,6 +19,12 @@ + + + PreserveNewest + + + diff --git a/src/QuestionsAnswers.Web/Views/Question/Index.cshtml b/src/QuestionsAnswers.Web/Views/Question/Index.cshtml index fdc70fb..bfe7288 100644 --- a/src/QuestionsAnswers.Web/Views/Question/Index.cshtml +++ b/src/QuestionsAnswers.Web/Views/Question/Index.cshtml @@ -7,7 +7,6 @@ @section scripts { - }
diff --git a/src/QuestionsAnswers.Web/Views/Shared/_Layout.cshtml b/src/QuestionsAnswers.Web/Views/Shared/_Layout.cshtml index d64f240..c9f6460 100644 --- a/src/QuestionsAnswers.Web/Views/Shared/_Layout.cshtml +++ b/src/QuestionsAnswers.Web/Views/Shared/_Layout.cshtml @@ -1,4 +1,5 @@ @using System.Globalization +@using Abp.Runtime.Session @using Abp.Timing @using QuestionsAnswers.Web.Views.Shared.Components.LanguageSelection @using QuestionsAnswers.Web.Views.Shared.Components.TopMenu @@ -6,6 +7,7 @@ @inject IAbpAntiForgeryManager AbpAntiForgeryManager @using Abp.Web.Mvc.Alerts @inject IAlertManager AlertManager +@inject IAbpSession AbpSession @{ AbpAntiForgeryManager.SetCookie(Context); } @@ -25,139 +27,122 @@ - - - - + + + + - + - + @RenderSection("styles", required: false) - - @**@ - - - @**@ - - @*@Scripts.Render("~/Bundles/vendor/js/top")*@ - -