Branch: refs/heads/master
  Home:   https://github.com/NixOS/hydra
  Commit: 90e0ba2a7a457c58a95179c04c311901af4a658b
      
https://github.com/NixOS/hydra/commit/90e0ba2a7a457c58a95179c04c311901af4a658b
  Author: Rob Vermaas <rob.verm...@gmail.com>
  Date:   2012-04-17 (Tue, 17 Apr 2012)

  Changed paths:
    M src/root/jobset.tt
    M src/root/topbar.tt

  Log Message:
  -----------
  Revert changeset 4399683fa0e9abb64f63affc7caca7f77abea1b7, make jobset 
options available to project members as well


diff --git a/src/root/jobset.tt b/src/root/jobset.tt
index 7520521..66f2bad 100644
--- a/src/root/jobset.tt
+++ b/src/root/jobset.tt
@@ -130,12 +130,6 @@
                <div id="tabs-setup" class="tab-pane [% IF edit %]active[% END 
%]">
                        <h2>Information</h2>
                        
-                       [% IF !edit && c.user_exists %]
-                            <p>
-                                [ <a href="[% c.uri_for('/jobset' project.name 
jobset.name 'edit') %]">Edit</a> | <a href="[% c.uri_for('/jobset' project.name 
jobset.name 'clone') %]">Clone</a> ]
-                            </p>
-                       [% END %]
-
                        <table class="layoutTable">
                          [% IF edit %]
                          <tr>
diff --git a/src/root/topbar.tt b/src/root/topbar.tt
index 5a7a067..6c82212 100644
--- a/src/root/topbar.tt
+++ b/src/root/topbar.tt
@@ -83,7 +83,7 @@
         title = "Errors" %]
       <li class="divider"></li>
       [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name jobset.name 
'channel' 'latest') title = "Channel (latest)" %]
-      [% IF c.check_user_roles('admin') %]
+      [% IF c.user_exists %]
           <li class="divider"></li>
           [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name 
jobset.name 'clone') title="Clone jobset" %]
           [% INCLUDE menuItem uri = c.uri_for('/jobset' project.name 
jobset.name 'edit') title="Edit jobset" %]


================================================================

_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to