[Rt-commit] r15706 - in rt/3.8/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Sep 2 22:13:51 EDT 2008
Author: sartak
Date: Tue Sep 2 22:13:49 2008
New Revision: 15706
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/share/html/Dashboards/Queries.html
rt/3.8/trunk/share/html/Dashboards/Subscription.html
Log:
r70877 at onn: sartak | 2008-09-02 22:05:52 -0400
Display all portlets (not just searches) on the subscription page
Modified: rt/3.8/trunk/share/html/Dashboards/Queries.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Queries.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Queries.html Tue Sep 2 22:13:49 2008
@@ -170,6 +170,7 @@
portlet_type => $portlet_type,
component => $item,
path => "/Elements/$item",
+ description => $item,
};
}
}
Modified: rt/3.8/trunk/share/html/Dashboards/Subscription.html
==============================================================================
--- rt/3.8/trunk/share/html/Dashboards/Subscription.html (original)
+++ rt/3.8/trunk/share/html/Dashboards/Subscription.html Tue Sep 2 22:13:49 2008
@@ -71,20 +71,14 @@
<tr><td class="label">
<&|/l&>Queries</&>:
</td><td class="value">
-% my @searches = grep { defined } $DashboardObj->Searches;
-% if (!@searches) {
+% my @portlets = grep { defined } $DashboardObj->Portlets;
+% if (!@portlets) {
(none)
% } else {
<ol class="dashboard-queries">
-% for my $query (@searches) {
-% my $name;
-% if ($query->{Attribute}->Name =~ /^Search - (.*)$/) {
-% $name = $1;
-% } else {
-% $name = $query->Name;
-% }
+% for my $portlet (@portlets) {
<li class="dashboard-query">
- <% loc($name, $fields{'Rows'}) %>
+ <% loc($portlet->{description}, $fields{'Rows'}) %>
</li>
% }
</ol>
More information about the Rt-commit
mailing list