app/views/interpreter/translations/index.html.haml in interpreter-0.0.3 vs app/views/interpreter/translations/index.html.haml in interpreter-0.0.4

- old
+ new

@@ -1,16 +1,28 @@ -%h1 Translations -#translations - .header - .key Key - .value Value - %br.clearfloat - .body - - @translations.each do |t| - .translation - .key= t.key - .value= t.value - %br.clearfloat +%h1= link_to 'Translations', interpreter_translations_url +%p= @search_notice -%h2 Add Translation -= render :partial => "form" +#search_translations + = form_tag search_interpreter_translations_path do + .field + = text_field_tag :query + .actions + = submit_tag "Search" + +%h3 Categories +#categories + - @categories.each do |c| + = link_to c.capitalize, category_interpreter_translations_path(c) + +%p= link_to "New Translation", new_interpreter_translation_path + +#translations + - @translations.each do |t| + .translation{:id => t.id} + .key= t.id + .value= t.value + .links + = link_to 'Show', interpreter_translation_path(t.key.gsub('.','-')) + = link_to 'Remove', interpreter_translation_path(t.key.gsub('.','-')), :method => :delete + +%p= link_to "New Translation", new_interpreter_translation_path