Code

Updated fai branch freeze grey out
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jul 2007 13:16:39 +0000 (13:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Jul 2007 13:16:39 +0000 (13:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6782 594d385d-05f5-0310-b6e9-bd551577e9d8

html/images/branch_small_grey.png [new file with mode: 0644]
html/images/freeze.png [new file with mode: 0644]
html/images/freeze_grey.png [new file with mode: 0644]
plugins/admin/fai/branch_selector.tpl
plugins/admin/fai/class_faiManagement.inc

diff --git a/html/images/branch_small_grey.png b/html/images/branch_small_grey.png
new file mode 100644 (file)
index 0000000..85dedaf
Binary files /dev/null and b/html/images/branch_small_grey.png differ
diff --git a/html/images/freeze.png b/html/images/freeze.png
new file mode 100644 (file)
index 0000000..04a05c1
Binary files /dev/null and b/html/images/freeze.png differ
diff --git a/html/images/freeze_grey.png b/html/images/freeze_grey.png
new file mode 100644 (file)
index 0000000..65fa982
Binary files /dev/null and b/html/images/freeze_grey.png differ
index 2211b034718bc83793094e5b1cc3141b3b123150..2285737e5567c3d9c0f318292b0bad55dfc4ea08 100644 (file)
@@ -1,4 +1,4 @@
-<br> 
+<br>
  <div class="contentboxh" style="border-bottom:1px solid #B0B0B0;">
     <p class="contentboxh"><img src="{$branchimage}" align="right" alt="[F]">{t}Branches{/t}</p>
    </div>
         <table summary="" style="width:100%;">
      <tr>
       <td>
+    {if $allow_create}
+        <input type="image" align="middle" value="branch" name="branch_branch" src="images/branch_small.png">
+        &nbsp;
+        {t}Create new branch{/t}
+        <br>
+        <input type="image" align="middle" value="freeze" name="freeze_branch" src="images/freeze.png">
+    {else}
+        <img src="images/branch_small_grey.png" alt='{t}Branch{/t}' class='center'>
+        &nbsp;
+        {t}Create new branch{/t}
+        <br>
+        <img src="images/freeze_grey.png" alt='{t}Freeze{/t}' class='center'>
+    {/if}
+    &nbsp;
+    {t}Create new locked branch{/t}
 
-        {if $allow_create}
-               <input type="image" align="middle" value="branch" name="branch_branch" src="images/branch_small.png" class="center" />
-               &nbsp;
-               {t}Create new branch{/t}
-               <br>
-               <input type="image" align="middle" value="freeze" name="freeze_branch" src="images/closedlock.png" class="center" />
-               &nbsp;
-               {t}Create new locked branch{/t}
-       {/if}
     {if $selectedBranch != "main" && $allow_remove}
-               <br>
-               <input type="image" align="middle" value="delete" name="remove_branch" src="images/edittrash.png" />
-               &nbsp;
-               {t}Delete current release{/t}
+    <br>
+        <input type="image" align="middle" value="delete" name="remove_branch" src="images/edittrash.png">
+    &nbsp;
+    {t}Delete current release{/t}
     {/if}
       </td>
      </tr>
index a991b1d8def8aa7b11eac491875ef908410d06d1..86fb0c4c99075015cc5383b7b7ca0afa9f194393 100644 (file)
@@ -420,7 +420,6 @@ class faiManagement extends plugin
         new log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
       }
     }
-  }
 
 
     /****************