Commit graph

79 commits

Author SHA1 Message Date
Graham Knop
6fa07671cd use HTTP::BrowserDetect for browser detection 2010-09-11 03:09:27 -05:00
Graham Knop
29d1908e15 remove Tie::CPHash 2010-08-24 16:20:10 -05:00
Doug Bell
0f9500b2cc fix my tyops 2010-08-06 18:05:03 -05:00
Doug Bell
fd524c9e2a add revisions to asset data in admin console 2010-08-06 17:50:57 -05:00
Doug Bell
ba72d1914a get asset name from i18n 2010-07-29 14:38:35 -05:00
Doug Bell
f0d4bfff13 update Admin with asset even in operations 2010-07-29 14:35:40 -05:00
Doug Bell
2e1589121a display asset helpers 2010-07-15 17:20:46 -05:00
Doug Bell
e891410075 tests and such 2010-07-15 11:55:24 -05:00
Colin Kuskie
e0177dc666 Remove Session::Env, migrate code to Plack::Request object in Session, and WebGUI::Session::Request 2010-07-01 17:40:12 -07:00
Colin Kuskie
385931aaab Merge commit 'f2e0fb509a' into WebGUI8. Some tests still failing. 2010-06-27 22:32:31 -07:00
Colin Kuskie
3fbc109429 Update Session->Style setScript to default to text/javascript. Update the entire codebase to take advantage of it. 2010-06-24 13:07:03 -07:00
Doug Bell
cc87552a22 weaken all session refs 2010-06-01 16:23:48 -05:00
Graham Knop
2b78fe913b classes under session should weaken their session references 2010-04-16 20:56:49 -05:00
Doug Bell
439eda2da2 back button/menu working 2010-04-14 15:32:40 -05:00
Graham Knop
2400f19099 Merge branch 'master' into WebGUI8 2010-04-13 07:50:02 -05:00
Colin Kuskie
c835344813 Fixing require loops. Moose overrides for canEdit using packages. 2010-04-08 15:13:13 -07:00
Colin Kuskie
a62e7b7ed0 Update Session for new Asset instanciators and exceptions. 2010-03-03 19:35:32 -08:00
Doug Bell
f240635a3d style doesn't need WebGUI all the time 2010-02-22 18:07:56 -06:00
Colin Kuskie
6863f66e12 Update Session/Style for exceptions. 2010-01-28 13:22:15 -08:00
Colin Kuskie
91029e8140 Remove inline JS from the Date and DateTime forms by putting the user's firstDayOfWeek preference
into the getWebuiProps.
2009-06-23 19:25:50 +00:00
Graham Knop
1f3ab6a419 export cleanups and mobile style 2009-05-15 09:30:20 +00:00
Paul Driver
f4df3b1280 template attachments (scripts and stylesheets) 2009-05-01 23:03:36 +00:00
Doug Bell
faca68256c Added: Packing of templates, snippets, and head tags. 2009-04-30 17:57:26 +00:00
Doug Bell
026f7ff47e Added #10145: Global Head Tags in Settings 2009-04-29 21:51:22 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
149337d77d encode html entities when used in a setLink or setScript attribute value 2008-11-12 21:28:18 +00:00
JT Smith
ef120fb06b Added isVisitor, isAdmin, and isRegistered methods to User object instead
of hard coding checks everywhere with group ids. And updated the code base 
   to match.
2008-09-16 22:32:36 +00:00
JT Smith
d18f081683 Made the charset metatag the highest thing in the head block. 2008-09-15 15:08:40 +00:00
Graham Knop
90983496ca don't remove the included js and css lists after generating headers, prevents later code from generating them again 2008-08-11 21:52:04 +00:00
Colin Kuskie
fba93ebcbe bugfix: more debug output when style cannot instance your template 2008-06-11 02:38:34 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
JT Smith
2c1f56a009 - rfe: Admin bar doesn't resize with the browser
- fix: Left Admin Bar overlap problem
2007-07-26 23:05:22 +00:00
JT Smith
2082506efb Added Site Starter to WebGUI Initial Configuration. 2007-07-23 19:44:05 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
JT Smith
3a8bd77cde - Made Weather Data asset more fault tollerant.
- Made CS related upgrades more fault tollerant.
 - Enhanced HTTP caching directives.
2007-03-07 19:12:37 +00:00
Doug Bell
6e8547169a fixed changelog and some formatting issues 2007-02-01 20:24:00 +00:00
JT Smith
600118b40a - fix: Styles were printing double head block headers. 2007-01-07 17:38:24 +00:00
JT Smith
4f68a0933c added YUI and YUI-ext
fixed the resizable text area with IE problem
fixed the ad space with IE problem
merged the 7.2.0 and 7.1.4 change logs
2006-11-07 23:15:57 +00:00
Roy Johnson
0ce287c212 fix - Style templates now process metadata properties assigned to them 2006-11-07 16:42:41 +00:00
Colin Kuskie
eadb9ada36 Implemented the last few tests to give Session::Style 100% coverage.
There are still a few functional tests that need to be written, they're
codified as TODOs.

In Session/Style.pm, in all methods that have a send immediate option
(when sent=1), they no longer send and cache.  This prevents duplicate
heag tags from being generated if generateAdditionalHeadTags was
ever called twice.
2006-10-12 22:43:33 +00:00
Colin Kuskie
514c2263fc Added tests to cover userStyle.
fixed a bug in userStyle where it would not process data that was false.
process will do this, so I made userStyle do it as well by adding
in a definedness check on $output.
2006-10-12 04:53:43 +00:00
Colin Kuskie
01a09cbea9 Add tests for printableStyleTemplateId.
Found a fixed an infinite loop in WebGUI::Style::process

If an asset was requested to be printed who does not have a
printableStyleTemplateId then process would recurse back up the
lineage until it does find an asset with a printableStyleTemplateId.
Eventually, if none is found, it will find the Asset Root, whose
parent is itself, and it will loop forever.

I added code to jump out of the loop if it recurses back to the
assetRoot.
2006-10-12 04:06:13 +00:00
Colin Kuskie
7867ce3573 more POD docs for WebGUI::Session::Style->process that describe hierarchy if templates 2006-10-12 01:13:41 +00:00
Colin Kuskie
a86c34df84 Added 5 more tests for Style's process method, checking for meta tags
for default processing and for meta tags when cache busting is enabled.

Fixed a bug where the default meta tag Generator did not contain the
WebGUI version.

Added lots of POD to the Style module detailing how meta tags are
handled in various cases.
2006-10-11 04:15:21 +00:00
Colin Kuskie
b1bb5d0b58 Fix broken templateId in Session/Style/process when useEmptyStyle was
requested.  It used to be 6, but at somepoint in the 6.x cycle it
was changed to be PBtmpl0000000000000132 in the database.

Added tests that verify that it works correctly.
2006-10-11 00:32:42 +00:00
Colin Kuskie
6cf1afc6a7 Add more POD to Style.pm to document that sent is set to true after this method
is called.

Add tests to check personalStyleTemplate and sent inside process method.
2006-10-10 23:10:31 +00:00
Colin Kuskie
5920a6d482 10 more tests for methods in Session/Style.pm
Refactored generateAdditionalHeadTags to remove two loops.
2006-10-05 03:40:39 +00:00
Colin Kuskie
ff2344cdad Added comments to the POD in Var.pm that creating a Var object overwrites
the Session Id.  This is by design.

Added a check to Style.pm so that if no params are passed to setLink that
it won't die by trying to deref undef into a hashref.

First set of tests for Session/Style added.
2006-10-03 23:27:08 +00:00