[Jifty-commit] r588 - in jifty/trunk: . lib/Jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Feb 15 22:02:43 EST 2006
Author: alexmv
Date: Wed Feb 15 22:02:42 2006
New Revision: 588
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Web.pm
jifty/trunk/share/web/static/css/base.css
Log:
r9098 at zoq-fot-pik: chmrr | 2006-02-15 22:01:16 -0500
* Remove very application-specific css from base.css
* Add accessors for failed (and successful, just because) request actions
Modified: jifty/trunk/lib/Jifty/Web.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web.pm (original)
+++ jifty/trunk/lib/Jifty/Web.pm Wed Feb 15 22:02:42 2006
@@ -562,6 +562,43 @@
);
}
+=head3 failed_actions
+
+Returns an array of L<Jifty::Action> objects, one for each
+L<Jifty::Request::Action> that is marked as failed in the current
+response.
+
+=cut
+
+sub failed_actions {
+ my $self = shift;
+ my @actions;
+ for my $req_action ($self->request->actions) {
+ next unless $self->response->result($req_action->moniker);
+ next unless $self->response->result($req_action->moniker)->failure;
+ push @actions, $self->new_action_from_request($req_action);
+ }
+ return @actions;
+}
+
+=head3 succeeded_actions
+
+As L</failed_actions>, but for actions that completed successfully;
+less often used.
+
+=cut
+
+sub succeeded_actions {
+ my $self = shift;
+ my @actions;
+ for my $req_action ($self->request->actions) {
+ next unless $self->response->result($req_action->moniker);
+ next unless $self->response->result($req_action->moniker)->success;
+ push @actions, $self->new_action_from_request($req_action);
+ }
+ return @actions;
+}
+
=head2 REDIRECTS AND CONTINUATIONS
=head3 next_page [VALUE]
Modified: jifty/trunk/share/web/static/css/base.css
==============================================================================
--- jifty/trunk/share/web/static/css/base.css (original)
+++ jifty/trunk/share/web/static/css/base.css Wed Feb 15 22:02:42 2006
@@ -4,48 +4,6 @@
body.calpopup {
}
-#info-wrapper, #content-wrapper {
- margin-top: 20px;
-}
-
-#info-wrapper {
- width: 20%;
- float: left;
- clear: left;
-}
-
-#content-wrapper {
- float: right;
- width: 78%;
-}
-
-#info {
- margin-top: 0.5em;
- padding: 0.2em;
-}
-
-#content, #info {
- font-size: 1.1em;
-}
-
-
-#sidebar span.user {
- font-weight: bold;
-}
-
-#sidebar h2 {
- border: none;
- background: none;
- padding: 0;
- padding-top: 4px;
-}
-
-
-div#sidebar textarea {
- width: 180px;
- font-size: 80%;
-}
-
ul.menu {
font-size: 1.3em;
line-height: 1.5em;
@@ -127,10 +85,6 @@
}
-div#salutation {
- float: right;
-}
-
ul.menu {
display: block;
@@ -138,5 +92,4 @@
h1.title {
border-bottom: 1px solid black;
-
}
More information about the Jifty-commit
mailing list