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:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||||
<xsl:output method="html" encoding="utf-8" indent="yes" />
|
<xsl:output method="html" encoding="utf-8" indent="yes" />
|
||||||
<xsl:template match="/">
|
<xsl:template match="/">
|
||||||
|
@ -9,9 +9,10 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> - GalleryShare</h1>
|
<h1><xsl:value-of select="/DirectoryListing/CurrentDirectory" /> - GalleryShare</h1>
|
||||||
<p>This is a test</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<xsl:apply-templates select="//ListingEntry" />
|
||||||
|
</main>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html, body { font-size: 100%; }
|
html, body { font-size: 100%; }
|
||||||
|
@ -23,4 +24,15 @@
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
</xsl:template>
|
</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>
|
</xsl:stylesheet>
|
|
@ -8,6 +8,8 @@
|
||||||
<RootNamespace>GalleryShare</RootNamespace>
|
<RootNamespace>GalleryShare</RootNamespace>
|
||||||
<AssemblyName>GalleryShare</AssemblyName>
|
<AssemblyName>GalleryShare</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||||
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
@ -42,9 +44,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="XSLT\" />
|
<Folder Include="Embed\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Include="XSLT\DirectoryListing.xslt" />
|
<EmbeddedResource Include="Embed\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in a new issue