mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -1,126 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>
|
||||
</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{DFD137A2-DDB5-4D22-BE0D-FA9AD4C8B059}</ProjectGuid>
|
||||
<ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Futures.Modules.Packaging</RootNamespace>
|
||||
<AssemblyName>Futures.Modules.Packaging</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<MvcBuildViews>false</MvcBuildViews>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Web.DynamicData" />
|
||||
<Reference Include="System.Web.Entity" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web" />
|
||||
<Reference Include="System.Web.Extensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Web.Abstractions" />
|
||||
<Reference Include="System.Web.Routing" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Configuration" />
|
||||
<Reference Include="System.Web.Services" />
|
||||
<Reference Include="System.EnterpriseServices" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AdminMenu.cs" />
|
||||
<Compile Include="Commands\PackagingCommands.cs" />
|
||||
<Compile Include="Controllers\DownloadStreamResult.cs" />
|
||||
<Compile Include="Controllers\PackagingController.cs" />
|
||||
<Compile Include="ViewModels\PackagingHarvestViewModel.cs" />
|
||||
<Compile Include="ViewModels\PackagingModulesViewModel.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ViewModels\PackagingSourcesViewModel.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Module.txt" />
|
||||
<Content Include="Views\Packaging\Harvest.ascx" />
|
||||
<Content Include="Views\Packaging\Modules.ascx" />
|
||||
<Content Include="Views\Packaging\Sources.ascx" />
|
||||
<Content Include="Views\Packaging\_Subnav.ascx" />
|
||||
<Content Include="Views\Web.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Content\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="Scripts\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
|
||||
<Project>{2D1D92BB-4555-4CBE-8D0E-63563D6CE4C6}</Project>
|
||||
<Name>Orchard.Framework</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Web.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target> -->
|
||||
<Target Name="AfterBuild" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
|
||||
</Target>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
<WebProjectProperties>
|
||||
<UseIIS>False</UseIIS>
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>40980</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>
|
||||
</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>True</UseCustomServer>
|
||||
<CustomServerUrl>http://orchard.codeplex.com</CustomServerUrl>
|
||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
|
||||
</WebProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
</Project>
|
@@ -1,6 +1,20 @@
|
||||
@model Orchard.ArchiveLater.ViewModels.ArchiveLaterViewModel
|
||||
@using System.Web.Mvc.Html
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("datetime.css"); %>
|
||||
<% Html.RegisterStyle("jquery-ui-1.7.2.custom.css"); %>
|
||||
<% Html.RegisterStyle("ui.datepicker.css"); %>
|
||||
<% Html.RegisterStyle("ui.timepickr.css"); %>
|
||||
<% Html.RegisterFootScript("jquery.ui.core.js"); %>
|
||||
<% Html.RegisterFootScript("jquery.ui.widget.js"); %>
|
||||
<% Html.RegisterFootScript("jquery.ui.datepicker.js"); %>
|
||||
<% Html.RegisterFootScript("jquery.utils.js"); %>
|
||||
<% Html.RegisterFootScript("ui.timepickr.js"); %>
|
||||
*/
|
||||
|
||||
|
||||
<fieldset>
|
||||
<legend>@T("Archive Settings")</legend>
|
||||
<div>
|
||||
|
@@ -1,5 +1,10 @@
|
||||
@model Orchard.Indexing.ViewModels.IndexViewModel
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Search Index Management").ToString())</h1>
|
||||
@using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Indexing"})) {
|
||||
<fieldset>
|
||||
|
@@ -1,8 +1,12 @@
|
||||
@model Orchard.Media.ViewModels.MediaItemAddViewModel
|
||||
|
||||
@using Orchard.Media.Helpers
|
||||
@using Orchard.Media.Models
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Add Media").ToString())</h1>
|
||||
<div class="breadCrumbs">
|
||||
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") >
|
||||
|
@@ -1,8 +1,12 @@
|
||||
@model Orchard.Media.ViewModels.MediaFolderCreateViewModel
|
||||
|
||||
@using Orchard.Media.Helpers
|
||||
@using Orchard.Media.Models
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Add a Folder").ToString())</h1>
|
||||
<div class="breadCrumbs">
|
||||
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") >
|
||||
|
@@ -1,8 +1,12 @@
|
||||
@model Orchard.Media.ViewModels.MediaFolderEditViewModel
|
||||
|
||||
@using Orchard.Media.Helpers
|
||||
@using Orchard.Media.Models
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Manage Folder").ToString())</h1>
|
||||
|
||||
<div class="breadCrumbs">
|
||||
|
@@ -1,8 +1,12 @@
|
||||
@model Orchard.Media.ViewModels.MediaItemEditViewModel
|
||||
|
||||
@using Orchard.Media.Helpers
|
||||
@using Orchard.Media.Models
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Edit Media - {0}", Model.Name).ToString())</h1>
|
||||
|
||||
<div class="breadCrumbs">
|
||||
|
@@ -1,8 +1,12 @@
|
||||
@model Orchard.Media.ViewModels.MediaFolderEditPropertiesViewModel
|
||||
|
||||
@using Orchard.Media.Helpers
|
||||
@using Orchard.Media.Models
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("admin.css"); %>
|
||||
*/
|
||||
|
||||
<h1>@Html.TitleForPage(T("Folder Properties").ToString())</h1>
|
||||
<div class="breadCrumbs">
|
||||
<p>@Html.ActionLink(T("Media Folders").ToString(), "Index") >
|
||||
|
@@ -1,5 +1,11 @@
|
||||
@model Orchard.Search.ViewModels.SearchViewModel
|
||||
|
||||
@/*
|
||||
migrate to new resource manager
|
||||
<% Html.RegisterStyle("search.css"); %>
|
||||
*/
|
||||
|
||||
|
||||
<h1>@Html.TitleForPage(T("Search").Text)</h1>
|
||||
@Html.Zone("search")
|
||||
@if (!string.IsNullOrWhiteSpace(Model.Query)) {
|
||||
|
@@ -3,6 +3,7 @@ using System.Linq;
|
||||
using System.Web.Mvc;
|
||||
using JetBrains.Annotations;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.DisplayManagement;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Logging;
|
||||
using Orchard.Security;
|
||||
@@ -15,10 +16,12 @@ namespace Orchard.Tags.Controllers {
|
||||
public class HomeController : Controller {
|
||||
private readonly ITagService _tagService;
|
||||
private readonly IContentManager _contentManager;
|
||||
private readonly IShapeHelperFactory _shapeHelperFactory;
|
||||
|
||||
public HomeController(ITagService tagService, IContentManager contentManager) {
|
||||
public HomeController(ITagService tagService, IContentManager contentManager, IShapeHelperFactory shapeHelperFactory) {
|
||||
_tagService = tagService;
|
||||
_contentManager = contentManager;
|
||||
_shapeHelperFactory = shapeHelperFactory;
|
||||
T = NullLocalizer.Instance;
|
||||
}
|
||||
|
||||
@@ -40,13 +43,15 @@ namespace Orchard.Tags.Controllers {
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
var items =
|
||||
_tagService.GetTaggedContentItems(tag.Id).Select(
|
||||
ic => _contentManager.BuildDisplayModel(ic, "SummaryForSearch"));
|
||||
var shape = _shapeHelperFactory.CreateHelper();
|
||||
var list = shape.List();
|
||||
foreach (var taggedContentItem in _tagService.GetTaggedContentItems(tag.Id)) {
|
||||
list.Add(_contentManager.BuildDisplayModel(taggedContentItem, "Summary"));
|
||||
}
|
||||
|
||||
var viewModel = new TagsSearchViewModel {
|
||||
TagName = tag.TagName,
|
||||
Items = (IList<IContent>) items.ToList<object>()
|
||||
List = list
|
||||
};
|
||||
|
||||
return View(viewModel);
|
||||
|
@@ -4,6 +4,6 @@ using Orchard.ContentManagement;
|
||||
namespace Orchard.Tags.ViewModels {
|
||||
public class TagsSearchViewModel {
|
||||
public string TagName { get; set; }
|
||||
public IEnumerable<IContent> Items { get; set; }
|
||||
public dynamic List { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -1,8 +1,17 @@
|
||||
@model Orchard.Tags.Models.TagsPart
|
||||
@{
|
||||
var tagsHtml = new List<IHtmlString>();
|
||||
foreach(var t in Model.CurrentTags) {
|
||||
if (tagsHtml.Any()) {
|
||||
tagsHtml.Add(new HtmlString(","));
|
||||
}
|
||||
tagsHtml.Add(Html.ActionLink(t.TagName, "Search", "Home", new { area = "Orchard.Tags", tagName = t.TagName }, new { }));
|
||||
}
|
||||
}
|
||||
|
||||
@if (Model.CurrentTags.Count > 0) {
|
||||
@if (tagsHtml.Any()) {
|
||||
<p class="tags">
|
||||
<span>@T("Tags:")</span>
|
||||
<%=string.Join(", ", Model.CurrentTags.Select(t => Html.ActionLink(Html.Encode(t.TagName), "Search", "Home", new { area = "Orchard.Tags", tagName = t.TagName }, new { }).ToHtmlString()).ToArray())%>
|
||||
@foreach(var htmlString in tagsHtml) { @htmlString }
|
||||
</p>
|
||||
}
|
@@ -1,5 +1,11 @@
|
||||
@model Orchard.Tags.ViewModels.TagsSearchViewModel
|
||||
|
||||
@Html.AddTitleParts(T("Tags").ToString(), T("Contents tagged with {0}", Model.TagName).ToString());
|
||||
<h1 class="page-title">@T("Contents tagged with <span>{0}</span>", Html.Encode(Model.TagName))</h1>
|
||||
@Html.UnorderedList(Model.Items, (c, i) => Html.DisplayForItem(c), "taggedPosts contentItems")
|
||||
@{
|
||||
Html.AddTitleParts(T("Tags").ToString());
|
||||
Html.AddTitleParts(T("Contents tagged with {0}", Model.TagName).ToString());
|
||||
Model.List.Classes.Add("taggedPosts");
|
||||
Model.List.Classes.Add("contentItems");
|
||||
}
|
||||
|
||||
<h1 class="page-title">@T("Contents tagged with <span>{0}</span>", Model.TagName)</h1>
|
||||
@Display(Model.List)
|
||||
|
Reference in New Issue
Block a user