ref: refs/heads/master
commit cc2b0d458ffeae0fd7ea95001cbc25baa0c61fc2
Author: Robert Lihm
Date: Thu Jul 16 17:32:12 2009 +0200
Added basic styles for service list
---
webclient/app/views/hosts/index.html.erb | 20 +++++++++-----------
webclient/public/stylesheets/style.css | 20 ++++++++++++++++++++
2 files changed, 29 insertions(+), 11 deletions(-)
diff --git a/webclient/app/views/hosts/index.html.erb b/webclient/app/views/hosts/index.html.erb
index 9031be7..495dd3d 100644
--- a/webclient/app/views/hosts/index.html.erb
+++ b/webclient/app/views/hosts/index.html.erb
@@ -3,9 +3,8 @@
<div class="services-list">
<label for="services-list">Please choose a service:</label>
- <ul>
+ <ul class="list-2level-inline">
<% for host in @hosts %>
-
<li>
<ul>
<li>
@@ -27,16 +26,15 @@
</li>
</ul>
</li>
-
<% end %>
-
</ul>
-
- <%= link_to _('Add'), new_host_path, :class => "button" %>
- <!--
- FIXME may be add remove and edit buttons and get rid of the icons above
- <input class="button disabled" disabled="true" type="submit" value="Remove" id="remove-printer"/>
- <input class="button disabled" disabled="true" type="submit" value="Edit" id="edit-printer"/>
- -->
+ <p>
+ <%= link_to _('Add'), new_host_path, :class => "button" %>
+ </p>
+ <!--
+ FIXME may be add remove and edit buttons and get rid of the icons above
+ <input class="button disabled" disabled="true" type="submit" value="Remove" id="remove-printer"/>
+ <input class="button disabled" disabled="true" type="submit" value="Edit" id="edit-printer"/>
+ -->
</div>
<!--host list -->
\ No newline at end of file
diff --git a/webclient/public/stylesheets/style.css b/webclient/public/stylesheets/style.css
index 75af6f2..c9f3cbf 100644
--- a/webclient/public/stylesheets/style.css
+++ b/webclient/public/stylesheets/style.css
@@ -174,6 +174,26 @@ img {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
+
+
+ul.list-2level-inline,
+ul.list-2level-inline ul {
+ list-style: none outside;
+ margin: 0;
+ padding: 0;
+ overflow: hidden;
+}
+ .list-2level-inline ul {
+
+ }
+ .list-2level-inline ul li {
+ float: left;
+ margin-right: 1em;
+ }
+
+ .list-2level-inline + p {
+ clear: left;
+ }
/* == Helper Styles ======================================================= */
.grey-bg {
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org