Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Aug 29, 2020
1 parent ad3c503 commit 9df7d22
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
4 changes: 2 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ no_index:
requires:
perl: 5.10.1
resources:
repository: https://github.com/bestpractical/rt-extension-toggletheme
repository: https://github.com/craigkai/rt-extension-toggletheme
version: '0.01'
x_module_install_rtx_version: '0.41'
x_requires_rt: 4.4.0
x_requires_rt: 5.0.0
x_rt_too_new: 5.2.0
5 changes: 4 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ INSTALLATION
make install
May need root permissions

Edit your /opt/rt4/etc/RT_SiteConfig.pm
Edit your /opt/rt5/etc/RT_SiteConfig.pm
Add this line:

Plugin('RT::Extension::ToggleTheme');

Apply patch to RT5
patch -d /opt/r5 -p1 < patches/header-callback.patch

Clear your mason cache
rm -rf /opt/rt5/var/mason_data/obj

Expand Down
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#### NAME

RT-Extension-ToggleTheme - Toggle elevator light and dark theme.

#### DESCRIPTION

To save your eyes in the dark.

![Demo](./static/images/demo.gif)

#### RT VERSION

Works with RT 5

#### INSTALLATION

perl Makefile.PL
make
make install

##### May need root permissions

##### Edit your /opt/rt4/etc/RT_SiteConfig.pm

##### Add this line:

Plugin('RT::Extension::ToggleTheme');

##### Apply patch to RT5

patch -d /opt/r5 -p1 < patches/header-callback.patch

##### Clear your mason cache

rm -rf /opt/rt5/var/mason_data/obj

##### Restart your webserver

#### AUTHOR

Craig Kaiser <[email protected]>

6 changes: 5 additions & 1 deletion lib/RT/Extension/ToggleTheme.pm
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ Works with RT 5
May need root permissions
=item Edit your F</opt/rt4/etc/RT_SiteConfig.pm>
=item Edit your F</opt/rt5/etc/RT_SiteConfig.pm>
Add this line:
Plugin('RT::Extension::ToggleTheme');
=item Apply patch to RT5
patch -d /opt/r5 -p1 < patches/header-callback.patch
=item Clear your mason cache
rm -rf /opt/rt5/var/mason_data/obj
Expand Down
Binary file added static/images/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9df7d22

Please sign in to comment.