Search: Limit the number of results

[?]
Feb 22, 2013, 3:41 PM
WUCOEIFANBM3WXZ2IWEITZ6FKBKXASVWH2LCYRXB4C22H5ADLWVAC

Dependencies

  • [2] K22TMPH5 Make the info tables less compressed
  • [3] LCLXI7PT Search: Mark disabled projects/jobsets/jobs
  • [4] UICHT2PS Add a search feature
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/lib/Hydra/Controller/Root.pm at line 312
    [4.294]
    [4.294]
    $c->stash->{limit} = 500;
  • edit in src/lib/Hydra/Controller/Root.pm at line 339
    [3.338]
    [3.338]
    , rows => $c->stash->{limit} + 1
  • replacement in src/root/search.tt at line 46
    [4.2156][4.2156:2202]()
    <p>The following jobs match your query:</p>
    [4.2156]
    [4.2202]
    <p>The following jobs match your query:[% IF jobs.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
  • edit in src/root/static/css/hydra.css at line 46
    [2.550]
    /* Missing in bootstrap 2.0.2 */
    .text-warning {
    color: #c09853;
    }