ref: refs/heads/master
commit 59afa57e7ab95b5135b1bc7b8b2168a1c59d6013
Author: Stefan Schubert
Date: Fri Jul 24 13:57:04 2009 +0200
improved layout
---
.../permissions/app/views/permissions/index.rhtml | 38 ++++++++++----------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/plugins/permissions/app/views/permissions/index.rhtml b/plugins/permissions/app/views/permissions/index.rhtml
index 1febec9..226dfe4 100644
--- a/plugins/permissions/app/views/permissions/index.rhtml
+++ b/plugins/permissions/app/views/permissions/index.rhtml
@@ -52,8 +52,10 @@
<% form_tag '/permissions/search' do %>
<p><label for="user"><%=_("User")%></label>
>
- <%= submit_tag _("Search"), :disabled=> !@right_get_permissions, :onclick=>"Element.show('progress')"%>
- <a href="/" class="button"><%=_("Back")%></a>
+ <%= submit_tag _("Search"), :disabled=> !@right_get_permissions, :onclick=>"Element.show('progress')", :class => 'button'%>
+ <% if @current_user.blank? %>
+ <a href="/" class="button"><%=_("Back")%></a>
+ <% end %>
<% end %>
<br>
<br>
@@ -65,12 +67,12 @@
<col>
</colgroup>
<tr>
- <th><%=_("Revoked Permissions")%></th>
- <th><%=_("Granted Permissions")%></th>
+ <th><%=_("Revoked Permissions")%></th>
+ <th><%=_("Granted Permissions")%></th>
</tr>
<tr>
- <td valign="top">
- <body>
+ <td valign="top">
+ <body>
<div id="revoketree"></div>
<ul class="tree" style="margin-left: 15px;">
<% last_level = 0 %>
@@ -107,10 +109,10 @@
<% end %>
<% end %>
</ul>
- </body>
- </td>
- <td valign="top">
- <body>
+ </body>
+ </td>
+ <td valign="top">
+ <body>
<div id="granttree"></div>
<ul class="tree" style="margin-left: 15px;">
<% last_level = 0 %>
@@ -147,17 +149,15 @@
<% end %>
<% end %>
</ul>
- </body>
- </td>
- <td valign="top">
- <body>
- <div id="setpermission"></div>
- <%= submit_tag _("Set"), :disabled=> !@right_set_permissions, :onclick=>"Element.show('progress')"%>
- <a href="/" class="button"><%=_("Back")%></a>
</body>
- </td>
- </tr>
+ </td>
+
+ </tr>
</table>
+ <br style='clear: both'>
+ <br>
+ <%= submit_tag _("Set"), :disabled=> !@right_set_permissions, :class => 'button' %>
+ <a href="/" class="button"><%=_("Back")%></a>
<% end %>
<% end %>
</div>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org