[Rt-commit] rt branch, 4.4/polish-shredder-web-ui, created. rt-4.4.3-69-g933f8cd64
Maureen Mirville
maureen at bestpractical.com
Wed Nov 14 11:49:51 EST 2018
The branch, 4.4/polish-shredder-web-ui has been created
at 933f8cd643e0529ff1ab13e2cea7e94d3d20a77f (commit)
- Log -----------------------------------------------------------------
commit c2c9bb1d67b71423e0feeefc35a060286fff3e00
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date: Tue Aug 7 15:50:51 2018 -0400
LOCAL-siteconfig commit
diff --git a/etc/RT_SiteConfig.pm b/etc/RT_SiteConfig.pm
index 9944ebe97..660f67973 100644
--- a/etc/RT_SiteConfig.pm
+++ b/etc/RT_SiteConfig.pm
@@ -27,9 +27,20 @@ use utf8;
# after this file is loaded.
Set( $rtname, 'example.com');
+Set( $WebDomain, '127.0.0.1');
+Set( $WebPort, 8080);
+
+Set( $LogToSTDERR, 'debug');
+Set( $MailCommand, 'mbox');
+Set( $DevelMode, 1);
+Set( $RTAddressRegexp, qr/rt-(comment)?\@example.com/);
+Set( $LogToFile, 1 );
# You must install Plugins on your own, this is only an example
# of the correct syntax to use when activating them:
# Plugin( "RT::Authen::ExternalAuth" );
+Plugin('RT::Extension::ExampleTheme');
+#Set( $WebDefaultStylesheet, ('example-theme'));
+
1;
commit 933f8cd643e0529ff1ab13e2cea7e94d3d20a77f
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date: Wed Nov 14 11:49:17 2018 -0500
Update RT Shredder web UI styling
diff --git a/lib/RT/Shredder/POD.pm b/lib/RT/Shredder/POD.pm
index d867d13ea..3a67aef96 100644
--- a/lib/RT/Shredder/POD.pm
+++ b/lib/RT/Shredder/POD.pm
@@ -95,8 +95,11 @@ sub command
my $out_fh = $self->output_handle();
my $expansion = $self->interpolate($paragraph, $line_num);
$expansion =~ s/^\s+|\s+$//;
+ $expansion = lc( $expansion );
+ $expansion = ucfirst( $expansion );
- print $out_fh "<$tag>" if $tag;
+ print $out_fh "<$tag class=\"rt-general-header1\">" if $tag eq 'h1';
+ print $out_fh "<$tag class=\"rt-general-header2\">" if $tag eq 'h2';
print $out_fh $expansion;
print $out_fh "</$tag>" if $tag;
print $out_fh "\n";
@@ -107,7 +110,7 @@ sub verbatim
{
my ($self, $paragraph, $line_num) = @_;
my $out_fh = $self->output_handle();
- print $out_fh "<pre>";
+ print $out_fh "<pre class=\"rt-general-paragraph\">";
print $out_fh $paragraph;
print $out_fh "</pre>";
print $out_fh "\n";
@@ -119,7 +122,7 @@ sub textblock {
my $out_fh = $self->output_handle();
my $expansion = $self->interpolate($paragraph, $line_num);
$expansion =~ s/^\s+|\s+$//;
- print $out_fh "<p>";
+ print $out_fh "<p class=\"rt-general-paragraph\">";
print $out_fh $expansion;
print $out_fh "</p>";
print $out_fh "\n";
diff --git a/share/static/css/base/main.css b/share/static/css/base/main.css
index 7cc29066b..1bdf4b87b 100644
--- a/share/static/css/base/main.css
+++ b/share/static/css/base/main.css
@@ -32,3 +32,4 @@
@import "dropzone.css";
@import "dropzone.customized.css";
@import "keyboard-shortcuts.css";
+ at import "shredder.css"
diff --git a/share/static/css/base/shredder.css b/share/static/css/base/shredder.css
new file mode 100644
index 000000000..dc57f2441
--- /dev/null
+++ b/share/static/css/base/shredder.css
@@ -0,0 +1,17 @@
+.rt-general-header1 {
+ color: #3858a3;
+ font-size: 1.3em;
+}
+
+.rt-general-header2 {
+ font-style: italic;
+ font-size: 1.1em;
+}
+
+.rt-general-paragraph {
+ padding-left: 2em;
+}
+
+.shredder-form {
+ padding-left: 4em;
+}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list