[yast-devel] Re: [yast-commit] <web-client> master : Added new status icons (image map + css)
Robert Lihm wrote:
ref: refs/heads/master commit 488a63e7d8f4b04b1d8e1d9ea243b3a03b7dd13b Author: Robert Lihm <rlihm@lihmedia.org> Date: Mon Jul 20 11:09:45 2009 +0200
Added new status icons (image map + css) --- .gitignore | 10 +------ .../views/patch_updates/.__patch_summary.html.erb | Bin 4096 -> 0 bytes .../views/patch_updates/_patch_summary.html.erb | 4 +++ webclient/app/views/layouts/main.rhtml | 6 +--- .../public/stylesheets/images/status-imagemap.png | Bin 0 -> 1963 bytes webclient/public/stylesheets/style.css | 27 ++++++++++++++++++++ 6 files changed, 34 insertions(+), 13 deletions(-)
diff --git a/.gitignore b/.gitignore index fbe5592..913ada8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ -# ignore package directory -package/ *~ -\#*\# -.\#* -*.bak -package -locale -coverage/ \ No newline at end of file +._* +diff.diff diff --git a/plugins/patch_updates/app/views/patch_updates/.__patch_summary.html.erb b/plugins/patch_updates/app/views/patch_updates/.__patch_summary.html.erb deleted file mode 100644 index bc723d2..0000000 Binary files a/plugins/patch_updates/app/views/patch_updates/.__patch_summary.html.erb and /dev/null differ diff --git a/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb b/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb index 58c9aa1..0d67f4d 100644 --- a/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb +++ b/plugins/patch_updates/app/views/patch_updates/_patch_summary.html.erb @@ -6,12 +6,16 @@ <% link_to "patch_updates" do %> <% if patch[:security]+patch[:important] > 0 %> <img src="/images/button_critical.png" alt="System need update"/> + <div class="status-icon error"></div> <% elsif patch[:optional] %> <img src="/images/button_warning.png" alt="System contains any update" /> + <div class="status-icon warning"></div> <% else %> <img src="/images/button_ok.png" alt="No updates available"/> + <div class="status-icon ok"></div> <% end %>
+ <% any_update = false %> <% if patch[:security] > 0 %> <%= _("Security Updates: #{patch[:security]} ") %> diff --git a/webclient/app/views/layouts/main.rhtml b/webclient/app/views/layouts/main.rhtml index 0b5b68b..693dbb6 100644 --- a/webclient/app/views/layouts/main.rhtml +++ b/webclient/app/views/layouts/main.rhtml @@ -69,11 +69,7 @@ </div>
<%= @content_for_layout %> - </div>
<div id="footer" class=""> - <div class="copy">© 2009 Novell, Inc.</div> - </div> - </body> -</html> \ No newline at end of file + <div class="copy">© 2009 Novell, Inc.</di \ No newline at end of file
^^^^^^^ Please take attention during editing files. I recommend run at least test for time as it contain tidy validation of page (duncan's hudson when it will be correctly setted also catch it). To all - try also use tidy validator, it catch problematic things in html code and prevent accident commits. -- Josef Reidinger YaST team maintainer of perl-Bootloader, YaST2-Repair, webyast modules language and time -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Josef Reidinger