Machine status page now looks much better and more consistent with rest of Hydra

[?]
Apr 12, 2012, 7:42 PM
FFEH62DEVPZZXGRZR5IYOQIP7MZVGRMFAYCY7DDZCPOC7ZUL6D2QC

Dependencies

  • [2] NVEFBXAM hydra: order machines by enabled/disabled, add green and red color for enabled/disabled
  • [3] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [4] SMCOU72F hydra: add some admin for adding/enabling/etc build machines
  • [5] ZWCTAZGL added newsitems, added some admin options to clear various caches.

Change contents

  • edit in src/root/admin.tt at line 3
    [3.8411][3.8411:8427]()
    <h1>Admin</h1>
  • replacement in src/root/admin.tt at line 4
    [3.9392][3.9451:9467]()
    <h2>Status</h2>
    [3.9392]
    [3.9392]
    <h2>Machine status</h2>
  • edit in src/root/admin.tt at line 6
    [3.9393]
    [3.9468]
    <table class="table table-condensed table-striped">
  • edit in src/root/admin.tt at line 8
    [3.9496][3.9496:9525]()
    <table style="width: 40em;">
  • replacement in src/root/admin.tt at line 10
    [3.9550][2.52:158]()
    <th colspan="5" style="background-color: [% IF m.enabled == 1 %]lime[% ELSE %]red[% END %];">
    [3.9550]
    [3.9579]
    <th colspan="5">
  • replacement in src/root/admin.tt at line 12
    [3.9619][3.9619:9731]()
    [% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'disable' ) content='-' %]
    [3.9619]
    [3.9731]
    <a class="btn btn-success btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'disable' ) %]">Running</a>
  • replacement in src/root/admin.tt at line 14
    [3.9758][3.9758:9896]()
    [% INCLUDE maybeLink uri = c.uri_for('/admin/machine' m.hostname 'enable' ) content='+' %]
    [% END %]
    [3.9758]
    [3.9896]
    <a class="btn btn-danger btn-mini" href="[% c.uri_for('/admin/machine' m.hostname 'enable' ) %]">Stopped</a>
    [% END %]
  • edit in src/root/admin.tt at line 38
    [3.10926]
    [3.10926]
    [% END %]
  • edit in src/root/admin.tt at line 41
    [3.10936][3.10936:10946]()
    [% END %]