[Bps-public-commit] rt-extension-exampletheme branch, master, updated. 0ca4779ec8a6a8f953f2bebe2b4628306ee6e890
Maureen Mirville
maureen at bestpractical.com
Tue Sep 12 14:43:21 EDT 2017
The branch, master has been updated
via 0ca4779ec8a6a8f953f2bebe2b4628306ee6e890 (commit)
from 143e9f41ead1cdece4ea0529a4dc888dd1f9afd3 (commit)
Summary of changes:
README | 27 +++++--------
etc/ExampleTheme_Config.pm | 3 --
html/NoAuth/css/example-theme/main.css | 49 -----------------------
lib/RT/Extension/ExampleTheme.pm | 13 +++++-
static/css/example-theme/AfterMenus | 71 ---------------------------------
static/css/example-theme/InHeader | 50 -----------------------
static/css/example-theme/main.css | 18 ++++++---
static/images/bpssymbol.png | Bin 0 -> 5007 bytes
8 files changed, 36 insertions(+), 195 deletions(-)
delete mode 100644 etc/ExampleTheme_Config.pm
delete mode 100644 html/NoAuth/css/example-theme/main.css
delete mode 100644 static/css/example-theme/AfterMenus
delete mode 100644 static/css/example-theme/InHeader
create mode 100644 static/images/bpssymbol.png
- Log -----------------------------------------------------------------
commit 0ca4779ec8a6a8f953f2bebe2b4628306ee6e890
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date: Tue Sep 12 14:37:14 2017 -0400
Update README and theme colors
Added more details to README and changed theme colors to match
BPS logo.
diff --git a/README b/README
index 2d08efa..7b0efdc 100644
--- a/README
+++ b/README
@@ -1,15 +1,18 @@
NAME
- RT-Extension-ExampleTheme - [One line description of module's purpose
- here]
+ RT-Extension-ExampleTheme - Example Theme Extension
DESCRIPTION
- [Why would someone install this extension? What does it do? What problem
- does it solve?]
+ RT::Extension::ExampleTheme is a small example of the customizations
+ users can make to change the look and feel of RT. These changes are
+ saved as a theme for others to use.
RT VERSION
- Works with RT [What versions of RT is this known to work with?]
+ Works with RT 4.2, 4.4
- [Make sure to use requires_rt and rt_too_new in Makefile.PL]
+CONFIGURATION
+To set this theme as the default RT theme (optional), add the following line to your
+RT_SiteConfig.pm
+ Set( $WebDefaultStylesheet, ('example-theme'));
INSTALLATION
perl Makefile.PL
@@ -17,17 +20,9 @@ INSTALLATION
make install
May need root permissions
- Edit your /opt/rt4/etc/RT_SiteConfig.pm
- If you are using RT 4.2 or greater, add this line:
-
+ Edit your /opt/rt4/etc/RT_SiteConfig.pm Add this line:
Plugin('RT::Extension::ExampleTheme');
- For RT 4.0, add this line:
-
- Set(@Plugins, qw(RT::Extension::ExampleTheme));
-
- or add RT::Extension::ExampleTheme to your existing @Plugins line.
-
Clear your mason cache
rm -rf /opt/rt4/var/mason_data/obj
@@ -46,7 +41,7 @@ BUGS
L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-ExampleTheme>.
LICENSE AND COPYRIGHT
- This software is Copyright (c) 2017 by Maureen
+ This extension is Copyright (c) 2017 Best Practical Solutions, LLC.
This is free software, licensed under:
diff --git a/etc/ExampleTheme_Config.pm b/etc/ExampleTheme_Config.pm
deleted file mode 100644
index 5b076a3..0000000
--- a/etc/ExampleTheme_Config.pm
+++ /dev/null
@@ -1,3 +0,0 @@
-use utf8;
-
-Set( $WebDefaultStylesheet, ('example-theme'));
diff --git a/html/NoAuth/css/example-theme/main.css b/html/NoAuth/css/example-theme/main.css
deleted file mode 100644
index a6acc41..0000000
--- a/html/NoAuth/css/example-theme/main.css
+++ /dev/null
@@ -1,49 +0,0 @@
- at import "../rudder/main.css";
-
-body.example-theme {
- font-family: helvetica, verdana, sans-serif;
-}
-
-div#body {
- background-color: #d6f2f5;
-}
-
-div#header {
- background-color: #2dabb9;
-}
-
-input.button {
- background-color: #195f67;
-}
-
-.ticket-info-cfs .titlebox .titlebox-title .left, .ticket-info-basics .titlebox .titlebox-title .left {
- background-color: #666666;
- color: #fff;
-}
-
-.ticket-info-people .titlebox .titlebox-title .left, .ticket-info-reminders .titlebox .titlebox-title .left {
- background-color: #003366;
- color: #fff;
-}
-
-.ticket-info-requestor .titlebox .titlebox-title .left {
- white-space: nowrap;
- background-color: #003366;
- color: #fff;
-}
-
-.ticket-info-links .titlebox .titlebox-title .left, .ticket-info-merge .titlebox .titlebox-title .left {
- background-color: #999999;
- color: #fff;
-}
-
-.ticket-info-dates .titlebox .titlebox-title .left, .ticket-info-attachments .titlebox .titlebox-title .left {
- background-color: #0f373e;
- color: #fff;
-}
-
-.ticket-info-generic .titlebox .titlebox-title .left {
- background-color: #547ccc;
- color: #fff;
-}
-
diff --git a/lib/RT/Extension/ExampleTheme.pm b/lib/RT/Extension/ExampleTheme.pm
index ca62269..62a95c1 100644
--- a/lib/RT/Extension/ExampleTheme.pm
+++ b/lib/RT/Extension/ExampleTheme.pm
@@ -11,9 +11,20 @@ RT->AddStyleSheets('example-theme.css');
RT-Extension-ExampleTheme - Example Theme Extension
+=head1 DESCRIPTION
+
+RT::Extension::ExampleTheme is a small example of the customizations users can make
+to change the look and feel of RT. These changes are saved as a theme for others to use.
+
=head1 RT VERSION
-Works with RT 4.2, 4.4, 4.6
+Works with RT 4.2, 4.4
+
+=head1 CONFIGURATION
+To set this theme as the default RT theme (optional), add the following line to your
+RT_SiteConfig.pm
+
+ Set( $WebDefaultStylesheet, ('example-theme'));
=head1 INSTALLATION
diff --git a/static/css/example-theme/AfterMenus b/static/css/example-theme/AfterMenus
deleted file mode 100644
index 47231cd..0000000
--- a/static/css/example-theme/AfterMenus
+++ /dev/null
@@ -1,71 +0,0 @@
-%# BEGIN BPS TAGGED BLOCK {{{
-%#
-%# COPYRIGHT:
-%#
-%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
-%# <sales at bestpractical.com>
-%#
-%# (Except where explicitly superseded by other copyright notices)
-%#
-%#
-%# LICENSE:
-%#
-%# This work is made available to you under the terms of Version 2 of
-%# the GNU General Public License. A copy of that license should have
-%# been provided with this software, but in any event can be snarfed
-%# from www.gnu.org.
-%#
-%# This work is distributed in the hope that it will be useful, but
-%# WITHOUT ANY WARRANTY; without even the implied warranty of
-%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-%# General Public License for more details.
-%#
-%# You should have received a copy of the GNU General Public License
-%# along with this program; if not, write to the Free Software
-%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-%# 02110-1301 or visit their web page on the internet at
-%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
-%#
-%#
-%# CONTRIBUTION SUBMISSION POLICY:
-%#
-%# (The following paragraph is not intended to limit the rights granted
-%# to you to modify and distribute this software under the terms of
-%# the GNU General Public License and is only of importance to you if
-%# you choose to contribute your changes and enhancements to the
-%# community by submitting them to Best Practical Solutions, LLC.)
-%#
-%# By intentionally submitting any modifications, corrections or
-%# derivatives to this work, or any other work intended for use with
-%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-%# you are the copyright holder for those contributions and you grant
-%# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable,
-%# royalty-free, perpetual, license to use, copy, create derivative
-%# works based on those contributions, and sublicense and distribute
-%# those contributions and any derivatives thereof.
-%#
-%# END BPS TAGGED BLOCK }}}
-<script type="text/javascript">
-var initMenus = function() {
- jQuery.fn.supersubs.defaults = {
- maxWidth: 30,
- extraWidth: 2
- };
-
- jQuery("#app-nav.toplevel").addClass('sf-menu sf-js-enabled sf-shadow').supersubs().superfish({ speed: 'fast' });
- jQuery("#page-menu.toplevel").addClass('sf-menu sf-js-enabled sf-shadow').supersubs().superfish({ dropShadows: false, speed: 'fast' }).supposition();
-
- var originalOffset = jQuery("#page-menu").offset().top;
- var floatMenu = function () {
- jQuery("#page-menu").toggleClass("pinned", jQuery(document).scrollTop() > originalOffset);
- };
- floatMenu();
- jQuery(window).scroll(floatMenu);
-};
-
-// If everything is loaded, init NOW. Otherwise, defer to DOM ready.
-if (jQuery.fn.supersubs && jQuery.fn.superfish && jQuery.fn.supposition)
- initMenus();
-else
- jQuery(initMenus);
-</script>
diff --git a/static/css/example-theme/InHeader b/static/css/example-theme/InHeader
deleted file mode 100644
index a661930..0000000
--- a/static/css/example-theme/InHeader
+++ /dev/null
@@ -1,50 +0,0 @@
-%# BEGIN BPS TAGGED BLOCK {{{
-%#
-%# COPYRIGHT:
-%#
-%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC
-%# <sales at bestpractical.com>
-%#
-%# (Except where explicitly superseded by other copyright notices)
-%#
-%#
-%# LICENSE:
-%#
-%# This work is made available to you under the terms of Version 2 of
-%# the GNU General Public License. A copy of that license should have
-%# been provided with this software, but in any event can be snarfed
-%# from www.gnu.org.
-%#
-%# This work is distributed in the hope that it will be useful, but
-%# WITHOUT ANY WARRANTY; without even the implied warranty of
-%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-%# General Public License for more details.
-%#
-%# You should have received a copy of the GNU General Public License
-%# along with this program; if not, write to the Free Software
-%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-%# 02110-1301 or visit their web page on the internet at
-%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
-%#
-%#
-%# CONTRIBUTION SUBMISSION POLICY:
-%#
-%# (The following paragraph is not intended to limit the rights granted
-%# to you to modify and distribute this software under the terms of
-%# the GNU General Public License and is only of importance to you if
-%# you choose to contribute your changes and enhancements to the
-%# community by submitting them to Best Practical Solutions, LLC.)
-%#
-%# By intentionally submitting any modifications, corrections or
-%# derivatives to this work, or any other work intended for use with
-%# Request Tracker, to Best Practical Solutions, LLC, you confirm that
-%# you are the copyright holder for those contributions and you grant
-%# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable,
-%# royalty-free, perpetual, license to use, copy, create derivative
-%# works based on those contributions, and sublicense and distribute
-%# those contributions and any derivatives thereof.
-%#
-%# END BPS TAGGED BLOCK }}}
-<!--[if lt IE 8]>
-<link rel="stylesheet" href="<%RT->Config->Get('WebPath')%>/static/css/rudder/msie.css" type="text/css" media="all" />
-<![endif]-->
diff --git a/static/css/example-theme/main.css b/static/css/example-theme/main.css
index c361ae5..518e268 100644
--- a/static/css/example-theme/main.css
+++ b/static/css/example-theme/main.css
@@ -5,15 +5,19 @@ body.example-theme {
}
div#body {
- background-color: #d6f2f5;
+ background-color: transparent;
}
-div#header {
- background-color: #2dabb9;
+body.example-theme {
+ background-image: url("../../../static/images/bpssymbol.png");
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 40%;
+ background-attachment: fixed;
}
-input.button {
- background-color: #195f67;
+div#header {
+ background-color: #595959;
}
.ticket-info-cfs .titlebox .titlebox-title .left, .ticket-info-basics .titlebox .titlebox-title .left {
@@ -46,3 +50,7 @@ input.button {
background-color: #547ccc;
color: #fff;
}
+
+.titlebox-content {
+ background-color: #e6e6e6;
+}
diff --git a/static/images/bpssymbol.png b/static/images/bpssymbol.png
new file mode 100644
index 0000000..132fc02
Binary files /dev/null and b/static/images/bpssymbol.png differ
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list