[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.6-96-g7d77692

Jesse Vincent jesse at bestpractical.com
Tue Nov 23 16:27:58 EST 2010


The branch, 3.9-trunk has been updated
       via  7d77692665adc1e258acdaa4320c63892fcee574 (commit)
      from  076b60e18f75196b2003e91b170c761342f67cce (commit)

Summary of changes:
 etc/RT_Config.pm.in                  |   29 +++++++++++++++++++++++++++++
 share/html/Admin/Elements/Newsbox    |    5 +++++
 share/html/Admin/index.html          |   10 ++++++----
 share/html/NoAuth/css/base/admin.css |   16 ++++++++++++++++
 4 files changed, 56 insertions(+), 4 deletions(-)
 create mode 100644 share/html/Admin/Elements/Newsbox

- Log -----------------------------------------------------------------
commit 7d77692665adc1e258acdaa4320c63892fcee574
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Nov 23 16:21:07 2010 -0500

    Add a new "inline RT news" component in the adminui

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 17a1acd..92cde9a 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -2208,6 +2208,35 @@ C<Set($JSMinPath, '/path/to/jsmin');>
 
 =back
 
+=head1 Administrative Interface
+
+=over 4
+
+=item C<$ShowRTNews>
+
+RT can show administrators a feed of recent RT releases
+and other related announcements from Best Practical
+on the top level Configuration page.
+
+This feature helps you stay up to date on RT security
+announcements and version updates.
+
+RT provides this feature using an "iframe" on
+C</Admin/index.html> which asks the administrator's
+browser to show an inline news page from Best Practical's
+website.
+
+If you'd rather not make this feature available to
+your administrators, set C<$ShowRTNews> to a false
+value.
+
+=back
+
+=cut
+
+Set($ShowRTNews => 1);
+
+
 =head1 Development Configuration
 
 =over 4
diff --git a/share/html/Admin/Elements/Newsbox b/share/html/Admin/Elements/Newsbox
new file mode 100644
index 0000000..412f4a5
--- /dev/null
+++ b/share/html/Admin/Elements/Newsbox
@@ -0,0 +1,5 @@
+<div id="rt-news">
+<&| /Widgets/TitleBox, title => 'RT News' &>
+<iframe src="http://bestpractical.com/rt/integration/news?version=<%$RT::VERSION%>"></iframe>
+</&>
+</div>
diff --git a/share/html/Admin/index.html b/share/html/Admin/index.html
index 7d40475..57b4bae 100755
--- a/share/html/Admin/index.html
+++ b/share/html/Admin/index.html
@@ -47,12 +47,14 @@
 %# END BPS TAGGED BLOCK }}}
 <& /Admin/Elements/Header, Title => loc('RT Administration') &>
 <& /Elements/Tabs &>
-
-<& /Elements/ListMenu, items => $tabs &>
+<div class="listmenu" id="admin-toplevel">
+    <& /Elements/ListMenu, items => $tabs &>
+</div>
+% if (RT->Config->Get('ShowRTNews')) {
+<& /Admin/Elements/Newsbox &>
+% }
 <%init>
 
-
-
 my $tabs = {
     A => {
         title       => loc('Users'),
diff --git a/share/html/NoAuth/css/base/admin.css b/share/html/NoAuth/css/base/admin.css
index 26dbaaa..d3388d7 100644
--- a/share/html/NoAuth/css/base/admin.css
+++ b/share/html/NoAuth/css/base/admin.css
@@ -50,6 +50,7 @@ ul.list-menu .menu-item {
 }
 ul.list-menu {
  list-style: none;
+    width: 45%;
 
 }
 ul.list-menu .description {
@@ -58,3 +59,18 @@ ul.list-menu .description {
  font-style: italic;
  padding-left: 1em;
 }
+
+#rt-news .titlebox iframe {
+    height: 100%;
+    width: 100%;
+    border: 0;
+}
+
+#rt-news .titlebox {
+    position: absolute;
+    top: 1em;;
+    right: 1em;
+    bottom: 0em;
+    width: 45%;
+    padding-bottom: 1em;
+}

-----------------------------------------------------------------------


More information about the Rt-commit mailing list