ref: refs/heads/master
commit f4bab558719009734656ae9531b3bc21814b4617
Author: Robert Lihm
Date: Tue Nov 3 16:54:16 2009 +0100
moved title above plugin-content
---
plugins/network/app/views/network/index.html.erb | 5 ++---
.../systemtime/app/views/systemtime/index.rhtml | 4 ++--
webclient/public/javascripts/script.js | 4 ++--
webclient/public/stylesheets/style.css | 3 ++-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/plugins/network/app/views/network/index.html.erb b/plugins/network/app/views/network/index.html.erb
index f5d432d..aa29aca 100644
--- a/plugins/network/app/views/network/index.html.erb
+++ b/plugins/network/app/views/network/index.html.erb
@@ -58,10 +58,9 @@
};
<% end %>
<% end %>
-
-<div class='plugin-content'>
<div class='plugin-icon'><img src='/icons/yast-network.png' alt=''/></div>
<h2><%=_("Network")%></h2>
+<div class='plugin-content'>
<% form_tag("/network", :method => "get") do %>
<!-- (collection, value, text, selected) -->
@@ -87,7 +86,7 @@
<!-- ~/svn/web-client/plugins/systemtime/app/views/systemtime/index.rhtml -->
<ul class="tab-nav">
-
+ <!-- javascript adds tabs here -->
</ul>
<input type="hidden" id="interface" name="interface" value="<%= @iface %>"/>
diff --git a/plugins/systemtime/app/views/systemtime/index.rhtml b/plugins/systemtime/app/views/systemtime/index.rhtml
index c637c7c..431ce67 100644
--- a/plugins/systemtime/app/views/systemtime/index.rhtml
+++ b/plugins/systemtime/app/views/systemtime/index.rhtml
@@ -45,10 +45,10 @@
<% end -%>
<% end %>
-
<div class='plugin-icon'><img src='/icons/yast-ntp-client.png' alt="time module"/></div>
+ <h2><%=_("Time")%></h2>
+
<div class='plugin-content'>
- <h2><%=_("Time")%></h2>
<% form_tag '/systemtime/update', {:class => 'container', :onsubmit => "submitTime();"} do %>
<% #TODO tooltip for form <div> _("Table for settings timezone for target machine.") </div>
%>
diff --git a/webclient/public/javascripts/script.js b/webclient/public/javascripts/script.js
index 0d1d3a0..4decb8c 100644
--- a/webclient/public/javascripts/script.js
+++ b/webclient/public/javascripts/script.js
@@ -19,7 +19,7 @@ $(document).ready(function() {
$('.tab-form fieldset legend').each(function(index) {
var tabTitle = $(this).html(); // get string from legent to have a tab-title
var tabID = tabTitle.toLowerCase().replace(' ', '_'); // create id compatibel string
- $('.tab-nav').append('<li><a href="#' + tabID + '">' + tabTitle + '</a></li>'); // make tab bar
+ $('.tab-nav').append('<li><a class="' + tabID + '" href="#' + tabID + '">' + tabTitle + '</a></li>'); // make tab bar
$(this).parent('fieldset').attr('id', tabID); // set IDs in tabs
$('.tab-form fieldset:first').show(); //show 1st fieldset
});
@@ -30,7 +30,7 @@ $(document).ready(function() {
$(this).closest('.tab-nav').find('a').removeClass('selected'); // remove old selection
var curTab = $(this).attr('href'); // get current tab
$(curTab).show().siblings('fieldset').hide(); // show current and hide others
- $(this).addClass('selected').siblings(); // add class selected to current tab
+ $(this).addClass('selected'); // add class selected to current tab
return false;
});
};
diff --git a/webclient/public/stylesheets/style.css b/webclient/public/stylesheets/style.css
index 924845d..a703092 100644
--- a/webclient/public/stylesheets/style.css
+++ b/webclient/public/stylesheets/style.css
@@ -528,11 +528,12 @@ input[type="submit"] {
.plugin-content {
float: left;
width: 90%;
-/* padding-bottom: 5em;*/
border-color: #ddd #ccc #bbb;
border-style: solid;
border-width: 1px;
+ clear: left;
+
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-khtml-border-radius: 5px;
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org