Moved MyAMS resources to dedicated package
authorThierry Florac <tflorac@ulthar.net>
Wed, 15 Jul 2020 18:02:59 +0200
changeset 1404 8be1cfb23338
parent 1403 4c936511ece4
child 1405 a123fc2a6f69
Moved MyAMS resources to dedicated package
src/pyams_content/component/extfile/__init__.py
src/pyams_content/component/gallery/zmi/templates/gallery-media.pt
src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt
--- a/src/pyams_content/component/extfile/__init__.py	Mon Jul 06 17:16:35 2020 +0200
+++ b/src/pyams_content/component/extfile/__init__.py	Wed Jul 15 18:02:59 2020 +0200
@@ -99,7 +99,7 @@
         if filename:
             name, ext = os.path.splitext(filename)
             return '<img class="margin-left-5 align-top" ' \
-                'src="/--static--/pyams_skin/img/mimetypes/16x16/{thumb}" />'.format(
+                'src="/--static--/myams/img/mimetypes/16x16/{thumb}" />'.format(
                  thumb=EXTENSIONS_THUMBNAILS.get(ext, 'unknown.png'))
 
     @property
--- a/src/pyams_content/component/gallery/zmi/templates/gallery-media.pt	Mon Jul 06 17:16:35 2020 +0200
+++ b/src/pyams_content/component/gallery/zmi/templates/gallery-media.pt	Wed Jul 15 18:02:59 2020 +0200
@@ -44,7 +44,7 @@
 			</tal:if>
 		</tal:if>
 		<tal:if condition="not:thumbnails">
-			<img class="thumbnail hint" src="/--static--/pyams_skin/img/mimetypes/unknown.png"
+			<img class="thumbnail hint" src="/--static--/myams/img/mimetypes/unknown.png"
 				 tal:attributes="title i18n:media.title"
 				 style="padding: 48px;" />
 		</tal:if>
--- a/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt	Mon Jul 06 17:16:35 2020 +0200
+++ b/src/pyams_content/component/gallery/zmi/templates/gallery-medias.pt	Wed Jul 15 18:02:59 2020 +0200
@@ -77,7 +77,7 @@
 						</tal:if>
 					</tal:if>
 					<tal:if condition="not:thumbnails">
-						<img class="thumbnail hint" src="/--static--/pyams_skin/img/mimetypes/unknown.png"
+						<img class="thumbnail hint" src="/--static--/myams/img/mimetypes/unknown.png"
 							 tal:attributes="title i18n:media.title"
 							 style="padding: 48px;" />
 					</tal:if>