Klaus KXXmpf write:
> ref: refs/heads/master
> commit 22a84f82905d5659e1104fb881aba5598e690f5e
> Author: Klaus Kأ¤mpf <[email protected]>
> Date:   Thu Oct 15 15:44:08 2009 +0200
> 
>     Get reasonable HTML representation
> ---
>  plugins/language/app/models/language.rb           |    2 +-
>  plugins/language/app/views/language/show.html.erb |   11 ++++++++++-
>  2 files changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/plugins/language/app/models/language.rb
>  b/plugins/language/app/models/language.rb index 65ab1f1..9b56b82 100644
> --- a/plugins/language/app/models/language.rb
> +++ b/plugins/language/app/models/language.rb
> @@ -46,7 +46,7 @@ class Language
>    end
> 
>    # Getter for available static field
> -  def self.available
> +  def available

Hi, if you change class method to instance method, then please at least ensure 
that you doesn't break tests. (I fixed it)

>      @@available
>    end
> 
> diff --git a/plugins/language/app/views/language/show.html.erb
>  b/plugins/language/app/views/language/show.html.erb index 8fc40f8..8e37a72
>  100644
> --- a/plugins/language/app/views/language/show.html.erb
> +++ b/plugins/language/app/views/language/show.html.erb
> @@ -1 +1,10 @@
> -<%= @language.to_xml -%>
> \ No newline at end of file
> +Locale (user): <%= @language.language -%><br/>
> +Locale (root): <%= @language.rootlocale -%><br/>
> +UTF-8?: <%= @language.utf8 -%><br/>
> +<p/>
> +Available:
> +<ul>
> +<% @language.available.each do |k,v| -%>
> +  <li><%= "#{k}: #{v.inspect}" -%></li>
> +<% end -%>
> +</ul>
> 

-- 
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, webyast modules language and time
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to