mirror of
https://gitlab.com/sbrl/GalleryShare.git
synced 2018-06-12 22:45:16 +00:00
Move embedded resources to folder
This commit is contained in:
parent
6d3064b79f
commit
c3ee7b06a0
2 changed files with 20 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" encoding="utf-8" indent="yes" />
|
||||
<xsl:template match="/">
|
||||
|
@ -9,9 +9,10 @@
|
|||
</head>
|
||||
<body>
|
||||
<h1><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> - GalleryShare</h1>
|
||||
<p>This is a test</p>
|
||||
|
||||
|
||||
<main>
|
||||
<xsl:apply-templates select="//ListingEntry" />
|
||||
</main>
|
||||
|
||||
<style>
|
||||
html, body { font-size: 100%; }
|
||||
|
@ -23,4 +24,15 @@
|
|||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ListingEntry[@Type='File']">
|
||||
<figure class='preview file'>
|
||||
<img src="{Name}?thumbnail" />
|
||||
</figure>
|
||||
</xsl:template>
|
||||
<xsl:template match="ListingEntry[@Type='Directory']">
|
||||
<figure class='preview directory'>
|
||||
(coming soon)
|
||||
</figure>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -8,6 +8,8 @@
|
|||
<RootNamespace>GalleryShare</RootNamespace>
|
||||
<AssemblyName>GalleryShare</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
@ -42,9 +44,9 @@
|
|||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Folder Include="XSLT\" />
|
||||
<Folder Include="Embed\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="XSLT\DirectoryListing.xslt" />
|
||||
<EmbeddedResource Include="Embed\**" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Reference in a new issue