Added direct link to favorites from dashboards
authorThierry Florac <thierry.florac@onf.fr>
Fri, 29 Sep 2017 10:41:06 +0200
changeset 184 de7099d89ba4
parent 183 6a4964dad8aa
child 185 ccf447563b12
Added direct link to favorites from dashboards
src/pyams_content/root/zmi/templates/dashboard.pt
src/pyams_content/shared/common/zmi/templates/dashboard.pt
--- a/src/pyams_content/root/zmi/templates/dashboard.pt	Fri Sep 29 10:29:36 2017 +0200
+++ b/src/pyams_content/root/zmi/templates/dashboard.pt	Fri Sep 29 10:41:06 2017 +0200
@@ -3,7 +3,12 @@
 		<span tal:condition="view.widget_icon_class | nothing"
 			  class="widget-icon"><i tal:attributes="class view.widget_icon_class"></i>
 		</span>
-		<h2 i18n:translate="">Your contents dashboard</h2>
+		<h2>
+			<i18n:var translate="">Your contents dashboard</i18n:var>
+			<a href="#my-favorites.html" class="hint" title="My favorites" i18n:attributes="title">
+				<i class="fa fa-fw fa-star txt-color-blue"></i>
+			</a>
+		</h2>
 		<tal:var content="structure provider:pyams.widget_title" />
 		<tal:var content="structure provider:pyams.toolbar" />
 	</header>
--- a/src/pyams_content/shared/common/zmi/templates/dashboard.pt	Fri Sep 29 10:29:36 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/dashboard.pt	Fri Sep 29 10:41:06 2017 +0200
@@ -3,7 +3,12 @@
 		<span tal:condition="view.widget_icon_class | nothing"
 			  class="widget-icon"><i tal:attributes="class view.widget_icon_class"></i>
 		</span>
-		<h2 tal:content="view.title">Title</h2>
+		<h2>
+			<tal:var content="view.title">Title</tal:var>
+			<a href="#my-favorites.html" class="hint" title="My favorites" i18n:attributes="title">
+				<i class="fa fa-fw fa-star txt-color-blue"></i>
+			</a>
+		</h2>
 		<tal:var content="structure provider:pyams.widget_title" />
 		<tal:var content="structure provider:pyams.toolbar" />
 	</header>