Scott Seago
2009-May-29 04:09 UTC
[Ovirt-devel] [PATCH server] fixed UI update bug -- ignore task_types when it doesn't exist
Signed-off-by: Scott Seago <sseago at redhat.com> --- src/app/views/task/_show.rhtml | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/app/views/task/_show.rhtml b/src/app/views/task/_show.rhtml index f4e001d..ff7d434 100644 --- a/src/app/views/task/_show.rhtml +++ b/src/app/views/task/_show.rhtml @@ -75,7 +75,9 @@ <img src="images/jumbo_find.png" alt="find" width="145" height="145"> <div class="no-grid-items-text"> <h2>There are no tasks that match this filter.</h2> - <p>Type: <strong><%= task_types.select {|type| type[1]==task_type}[0][0] %></strong></p> + <%if task_types %> + <p>Type: <strong><%= task_types.select {|type| type[1]==task_type}[0][0] %></strong></p> + <% end %> <p>State: <strong><%= task_states.select {|state| state[1]==task_state}[0][0] %></strong></p><br /> <p>Choose another filter to display tasks.</p> </div> -- 1.6.0.6
Jason Guiditta
2009-May-29 16:47 UTC
[Ovirt-devel] [PATCH server] fixed UI update bug -- ignore task_types when it doesn't exist
ACK On Fri, May 29, 2009 at 12:09 AM, Scott Seago <sseago at redhat.com> wrote:> > Signed-off-by: Scott Seago <sseago at redhat.com> > --- > src/app/views/task/_show.rhtml | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/src/app/views/task/_show.rhtml > b/src/app/views/task/_show.rhtml > index f4e001d..ff7d434 100644 > --- a/src/app/views/task/_show.rhtml > +++ b/src/app/views/task/_show.rhtml > @@ -75,7 +75,9 @@ > <img src="images/jumbo_find.png" alt="find" width="145" > height="145"> > <div class="no-grid-items-text"> > <h2>There are no tasks that match this filter.</h2> > - <p>Type: <strong><%= task_types.select {|type| > type[1]==task_type}[0][0] %></strong></p> > + <%if task_types %> > + <p>Type: <strong><%= task_types.select {|type| > type[1]==task_type}[0][0] %></strong></p> > + <% end %> > <p>State: <strong><%= task_states.select {|state| > state[1]==task_state}[0][0] %></strong></p><br /> > <p>Choose another filter to display tasks.</p> > </div> > -- > 1.6.0.6 > > _______________________________________________ > Ovirt-devel mailing list > Ovirt-devel at redhat.com > https://www.redhat.com/mailman/listinfo/ovirt-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090529/5db26407/attachment.htm>
Maybe Matching Threads
- [PATCH server] Updated look and feel for empty grid views
- Newbie - ActiveRecord relationships
- collection.build or collection.create gives "ArgumentError: wrong number of arguments (1 for 0)"
- rails render_to_string problem
- [PATCH] virtio-blk: make the queue depth configurable