[Rt-commit] [rtir] 01/02: Move the 'Work with constituency' widget to be a regular RTIR dashboard widget
Jesse Vincent
jesse at bestpractical.com
Thu Mar 19 05:03:32 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 9bf53bacfdb3b28075f3f31e1e93de4fbad01876
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Thu Mar 19 01:30:16 2015 -0700
Move the 'Work with constituency' widget to be a regular RTIR dashboard widget
---
etc/RTIR_Config.pm | 1 +
etc/initialdata | 3 ++-
html/RTIR/Elements/WorkWithConstituency | 1 +
html/RTIR/index.html | 2 --
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/etc/RTIR_Config.pm b/etc/RTIR_Config.pm
index 0f3fd2e..60794dd 100644
--- a/etc/RTIR_Config.pm
+++ b/etc/RTIR_Config.pm
@@ -496,6 +496,7 @@ Set(@RTIR_HomepageComponents, qw(
/RTIR/Elements/NobodyDueIncidents
/RTIR/Elements/DueIncidents
/RTIR/Elements/QueueSummary
+ /RTIR/Elements/WorkWithConstituency
));
=item C<@Active_MakeClicky>
diff --git a/etc/initialdata b/etc/initialdata
index d541796..6d4d344 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -598,8 +598,9 @@ for my $cf (@CustomFields) {
{ type => 'component', name => '/RTIR/Elements/DueIncidents' },
],
sidebar => [
- { type => 'component', name => 'RefreshHomepage' },
+ { type => 'component', name => '/RTIR/Elements/WorkWithConstituency' },
{ type => 'component', name => '/RTIR/Elements/QueueSummary' },
+ { type => 'component', name => 'RefreshHomepage' },
]
},
} );
diff --git a/html/RTIR/Elements/WorkWithConstituency b/html/RTIR/Elements/WorkWithConstituency
index b718936..68123dc 100644
--- a/html/RTIR/Elements/WorkWithConstituency
+++ b/html/RTIR/Elements/WorkWithConstituency
@@ -1,5 +1,6 @@
<&| /Widgets/TitleBox, title => 'Work with constituency' &>
<ul>
+<li><a href="<% RT::IR->HREFTo('',Constituency => '')%>">All constituencies</a></li>
% for my $constituency (keys %known_constituencies) {
<li><a href="<% RT::IR->HREFTo('', Constituency => $constituency)%>"><%$constituency%></a></li>
% }
diff --git a/html/RTIR/index.html b/html/RTIR/index.html
index 1c7d720..007f15d 100644
--- a/html/RTIR/index.html
+++ b/html/RTIR/index.html
@@ -49,8 +49,6 @@
<& /Elements/Tabs &>
<& /Elements/ListActions, actions => \@results &>
<& /Elements/MyRT, Portlets => $portlets &>
-
-<& /RTIR/Elements/WorkWithConstituency &>
<%INIT>
# XXX: this should be automated!!!
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list