Move more actions from the top bar

[?]
Oct 2, 2013, 11:17 PM
D7PL2VWUCRIFGFPFXTB466NIUYU4FECAQPHF4TDFVMOK23VEHDEAC

Dependencies

  • [2] HU5DPGCV There is only one channel, so drop the "(latest)" suffix
  • [3] N4ODPYP7 Job page: Remove channel tab
  • [4] 2G63HKCH Fix some wellformedness issues
  • [5] JIJDYWPY Remove the Build menu from the top bar
  • [6] Z2E5PAYY Move Hide/Unhide links for project to toplevel menu.
  • [7] TLJC6BJ3 Add a menu item for deleting jobsets
  • [8] JY7BXXOP Split viewing and editing a project
  • [9] 7ZQAHJQM Fix indentation
  • [10] Q4VDOA76 Replace last 5 builds on jobset page with last 5 evaluations. Moved hide/unhide and evaluate options to jobset topmenu.
  • [11] BIVZGPUT Optimise clickable rows
  • [12] 3PNG7NIB Remove trailing whitespace
  • [13] PVIRRARJ Turn hiding/unhiding a jobset into a checkbox
  • [14] TSJHDJVI Fix hide/unhide links.
  • [15] ZRRPBEI4 Make jobset deletion consistent with project deletion
  • [16] I4K2UPCW Tweaks
  • [17] J5UVLXOK * Start of a basic Catalyst web interface.
  • [18] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)
  • [19] IHU3IMC6 Revert changeset 4399683fa0e9abb64f63affc7caca7f77abea1b7, make jobset options available to project members as well
  • [20] OR5SJ42Y Show releases in a tab on the project page
  • [21] 2DTJNAMX Allow project members to create jobsets, regression introduced by bootstrap make-over. Currently all logged in users see these options, however, only on performing the action the privileges are checked. Need to change that in the future.
  • [22] XTKCALUA Make "Add to release" a modal dialog
  • [23] SPHE6E75 Allow manually scheduling disabled jobsets for evaluation
  • [24] GEL2WHSU Move channel link to top menu of Project and Jobset.
  • [25] A6XVP6FE Make the hide/unhide actions a checkbox in the project settings
  • [26] 4JS4DWHD All/recent builds -> Latest builds
  • [27] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [28] YG6VGK4F "Evaluate" command: push the jobset to the front of the eval queue
  • [29] NRSKJPP4 makeLink -> menuItem
  • [*] 2GUAKGTB Fix indentation of build.tt
  • [*] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that
  • [*] OX6NYJDV Split viewing and editing a jobset
  • [*] TFK74CQR Put job status on a separate tab
  • [*] 7YBYT2LQ
  • [*] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website

Change contents

  • edit in src/root/build.tt at line 103
    [5.1217]
    [31.1530]
  • replacement in src/root/build.tt at line 611
    [5.2109][5.2109:2186]()
    <a href="#" class="btn btn-primary clode" data-dismiss="modal">Close</a>
    [5.2109]
    [5.2186]
    <a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
  • edit in src/root/jobset.tt at line 45
    [33.6589]
    [34.54]
    [% IF c.user_exists %]
    <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
    Actions
    <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
    [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'edit') title="Edit configuration" %]
    [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'clone') title="Clone this jobset" %]
    [% INCLUDE menuItem uri = "javascript:confirmEvaluateJobset()" title="Evaluate this jobset" %]
    </ul>
    </li>
    [% END %]
  • edit in src/root/jobset.tt at line 164
    [32.14908]
    [32.14925]
    <script>
    function confirmEvaluateJobset() {
    bootbox.confirm(
    'Are you sure you want to force evaluation of this jobset?',
    function(c) {
    if (!c) return;
    $.post("[% HTML.escape(c.uri_for('/api/push', { jobsets = project.name _ ':' _ jobset.name, force = "1" })) %]")
    .done(function(data) {
    if (data.error)
    bootbox.alert("Unable to schedule the jobset for evaluation: " + data.error);
    else
    bootbox.alert("The jobset has been scheduled for evaluation.");
    })
    .fail(function() { bootbox.alert("Server request failed!"); });
    });
    return;
    };
    </script>
  • edit in src/root/project.tt at line 5
    [6.2566]
    [6.2566]
    [% IF c.user_exists %]
    <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
    Actions
    <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
    [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit configuration" %]
    [% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create jobset" %]
    [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'create-release') title = "Create release" %]
    </ul>
    </li>
    [% END %]
  • edit in src/root/project.tt at line 154
    [6.1068][6.1068:1083]()
    [% END %]
  • edit in src/root/project.tt at line 155
    [6.1084][6.1084:1261]()
    [% IF c.user_exists %]
    <p><a class="btn" href="[% c.uri_for('/project' project.name 'create-release') %]">
    <i class="icon-plus"></i> Create a release
    </a></p>
  • edit in src/root/topbar.tt at line 37
    [6.11892][6.2678:2710]()
    <li class="divider"></li>
  • edit in src/root/topbar.tt at line 38
    [2.142][6.0:29](),[6.116][6.0:29](),[6.29][6.536:570](),[6.570][6.90:182](),[6.1079][6.183:323](),[6.280][6.12219:12235](),[6.323][6.12219:12235](),[6.1079][6.12219:12235](),[6.12219][6.12219:12235]()
    [% IF c.user_exists %]
    <li class="divider"></li>
    [% INCLUDE menuItem uri = c.uri_for('/project' project.name 'edit') title="Edit" %]
    [% INCLUDE menuItem uri = c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) title = "Create jobset" %]
    [% END %]
  • edit in src/root/topbar.tt at line 57
    [6.13133][6.2839:2871]()
    <li class="divider"></li>
  • edit in src/root/topbar.tt at line 58
    [2.261][6.0:29](),[6.244][6.0:29](),[6.29][6.1080:1114](),[6.1114][6.324:427](),[6.6553][6.6553:6658](),[6.6658][6.47:274](),[6.274][4.4143:4272](),[6.277][6.377:929](),[4.4272][6.377:929](),[6.377][6.377:929](),[6.929][6.13438:13454](),[6.1888][6.13438:13454](),[6.3520][6.13438:13454](),[6.13438][6.13438:13454]()
    [% IF c.user_exists %]
    <li class="divider"></li>
    [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'edit') title="Edit" %]
    [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 'clone') title="Clone" %]
    <script>
    function confirmEvaluateJobset() {
    bootbox.confirm(
    'Are you sure you want to force evaluation of this jobset?',
    function(c) {
    if (!c) return;
    $.post("[% HTML.escape(c.uri_for('/api/push', { jobsets = project.name _ ':' _ jobset.name, force = "1" })) %]")
    .done(function(data) {
    if (data.error)
    bootbox.alert("Unable to schedule the jobset for evaluation: " + data.error);
    else
    bootbox.alert("The jobset has been scheduled for evaluation.");
    })
    .fail(function() { bootbox.alert("Server request failed!"); });
    });
    return;
    };
    </script>
    [% INCLUDE menuItem title="Evaluate" uri = "javascript:confirmEvaluateJobset()" %]
    [% END %]
  • edit in src/root/topbar.tt at line 74
    [6.14173][3.369:401]()
    <li class="divider"></li>