Hide hidden jobsets for project admins by default

[?]
Oct 27, 2016, 2:46 PM
2CFO2MHSLCE4SKY5N3ROLIOBEQAFR6WRYLGGJ5AP3HZVDEC6YGWAC

Dependencies

  • [2] AJVCB6K6 Fix a "Argument isn't numeric" warning if there are not jobsets
  • [3] ZB3JV52W Add a "My jobsets" tab to the dashboard
  • [4] 34O5UJ63 Remove unnecessary join against releases table
  • [5] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)
  • [6] KSBB33RE Add a dashboard
  • [7] 5CV7VJHP Doh
  • [8] JY7BXXOP Split viewing and editing a project
  • [9] 3PNG7NIB Remove trailing whitespace
  • [10] PZL3SZM3 Give every page a consistent title
  • [11] XAJFR6SR Add a chart to the job pages showing the closure size over time
  • [12] 2VBQRQ2Q Fix some XML well-formedness problems
  • [*] FPK5LF53 * Put the project-related actions in a separate controller. Put the
  • [*] IK53RV4V
  • [*] 7YBYT2LQ
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] MCCHPWHE Indicate disabled/hidden projects/jobsets in the overviews
  • [*] SBMOICGV Evil CSS hackery to prevent link targets from being under the navbar

Change contents

  • edit in src/lib/Hydra/Controller/Project.pm at line 16
    [4.74]
    [14.1712]
    $c->stash->{isProjectOwner} = isProjectOwner($c, $c->stash->{project});
  • replacement in src/root/common.tt at line 514
    [3.1179][3.1179:1190]()
    <tr>
    [3.1179]
    [3.1190]
    <tr class="[% IF j.hidden && !showHidden %] hidden-jobset [% END %] [% IF !j.enabled %] disabled-jobset [% END %]" >
  • replacement in src/root/dashboard-my-jobsets-tab.tt at line 10
    [3.3607][3.3607:3658]()
    [% INCLUDE renderJobsetOverview showProject=1 %]
    [3.3607]
    [3.3658]
    [% INCLUDE renderJobsetOverview showProject=1 showHidden=1 %]
  • edit in src/root/project.tt at line 28
    [5.2812]
    [5.33133]
    <script type="text/javascript">
    $(document).ready(function() {
    $('#show-hidden').on('click', function (e) {
    var show = !$(this).hasClass('active');
    if (show)
    $('tr.hidden-jobset').show();
    else
    $('tr.hidden-jobset').hide();
    });
    $('#show-disabled').on('click', function (e) {
    var show = !$(this).hasClass('active');
    if (show)
    $('tr.disabled-jobset').show();
    else
    $('tr.disabled-jobset').hide();
    });
    });
    </script>
  • replacement in src/root/project.tt at line 51
    [2.29][5.2901:2954](),[5.2901][5.2901:2954]()
    <p>This project has the following jobsets:</p>
    [2.29]
    [3.3931]
    <p>This project has the following jobsets:
    <button id="show-disabled" type="button" class="btn btn-small pull-right active" data-toggle="button">Show disabled jobsets</button>
    [% IF isProjectOwner %]
    <button id="show-hidden" type="button" class="btn btn-small pull-right" data-toggle="button">Show hidden jobsets</button>
    [% END %]
    </p>
  • edit in src/root/project.tt at line 61
    [5.4105][5.35855:35856](),[5.5714][5.35855:35856](),[5.35855][5.35855:35856]()
  • edit in src/root/static/css/hydra.css at line 48
    [18.523]
    [19.784]
    }
    tr.hidden-jobset {
    display: none;