ref: refs/heads/master
commit ff48bac2b98b76a57f9f13256d9a8bae96614251
Author: Stefan Schubert
Date: Fri Sep 4 13:57:01 2009 +0200
using image_tag instead of img; Robert has to move it to css again
---
webclient/app/views/controlpanel/index.rhtml | 10 +++++-----
webclient/app/views/controlpanel/show_all.rhtml | 4 ++--
webclient/app/views/hosts/edit.html.erb | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/webclient/app/views/controlpanel/index.rhtml b/webclient/app/views/controlpanel/index.rhtml
index 0f5aac6..7829daa 100644
--- a/webclient/app/views/controlpanel/index.rhtml
+++ b/webclient/app/views/controlpanel/index.rhtml
@@ -36,11 +36,11 @@
</div>
<% end %>
- <h3><img src="/images/monitoring.png" height="23" width="23" border="0" /> <%= _("Status") %></h3>
+ <h3><%= image_tag("/images/monitoring.png", :height=>"23", :width=>"23", :border="0") %> <%= _("Status") %></h3>
<div id="status_patches">
<% if ActionController::Routing.possible_controllers.include?("patch_updates") %>
- <img src="/images/working.gif" height="32" width="32" border="0" /> <%= _("Loading patch information") %>
+ <%= image_tag("/images/working.gif", :height=>"32", :width=>"32", :border=>"0") %> <%= _("Loading patch information") %>
<% else %>
<%= _("Patch plugin is not installed.") %>
<% end %>
@@ -48,7 +48,7 @@
<br/>
<div id="status_status">
<% if ActionController::Routing.possible_controllers.include?("status") %>
- <img src="/images/working.gif" height="32" width="32" border="0" /> <%= _("Loading system information") %>
+ <%= image_tag("/images/working.gif", :height=>"32", :width=>"32", :border=>"0") %> <%= _("Loading system information") %>
<% else %>
<%= _("Status plugin is not installed.") %>
<% end %>
@@ -58,7 +58,7 @@
<div id="favorites">
- <h3><img src="/images/yast-config.png" height="23" width="23" border="0" /> <%= _("Configuration") %></h3>
+ <h3><%= image_tag("/images/yast-config.png", :height=>"23", :width=>"23", :border=>"0") %> <%= _("Configuration") %></h3>
<% line_counter = 0 %>
<% shortcuts_counter = 0 %>
@@ -73,7 +73,7 @@
<div class="highlight-bg">
<% end %>
<% link_to (data['url']) do %>
- <img src="<%= data['icon'] %>"/>
+ <%= image_tag(data['icon']) %>
<p>
<%= data['title'] %>
</p>
diff --git a/webclient/app/views/controlpanel/show_all.rhtml b/webclient/app/views/controlpanel/show_all.rhtml
index 185b0e7..8e6bcdd 100644
--- a/webclient/app/views/controlpanel/show_all.rhtml
+++ b/webclient/app/views/controlpanel/show_all.rhtml
@@ -1,4 +1,4 @@
-<h2><img src="/images/yast-config.png" height="23" width="23" border="0" /> <%= _("Configuration") %></h2>
+<h2><%= image_tag("/images/yast-config.png", height=>"23", width=>"23", border=>"0") %> <%= _("Configuration") %></h2>
<% @shortcut_groups.each do |name, shortcuts| %>
<% line_counter = 0 %>
@@ -15,7 +15,7 @@
<% end %>
<% link_to (data['url']) do %>
- <img src="<%= data['icon'] %>"/>
+ <%= image_tag(data['icon']) %>
<p>
<%= data['title'] %>
</p>
diff --git a/webclient/app/views/hosts/edit.html.erb b/webclient/app/views/hosts/edit.html.erb
index 0f952df..7d2adc7 100644
--- a/webclient/app/views/hosts/edit.html.erb
+++ b/webclient/app/views/hosts/edit.html.erb
@@ -17,8 +17,8 @@ $(document).ready(function() {
<%= f.error_messages %>
<div class="table">
- <img src="/images/bg-th-left.gif" width="8" height="7" class="left" />
- <img src="/images/bg-th-right.gif" width="7" height="7" class="right" />
+ <%= image_tag("/images/bg-th-left.gif", :width=>"8", :height=>"7", :class=>"left") %>
+ <%= image_tag("/images/bg-th-right.gif", :width="7", :height="7", :class="right") %>
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th class="full" colspan="2"><%=_("YaST-Web-Service")%></th>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org