fixes translation bug causing new elements to have faulty titles

pull/6827/head
jwollert 13 years ago
parent 9185e7137e
commit a32e5d23cc
  1. 2
      app/models/my_projects_overview.rb
  2. 2
      app/views/my_projects_overviews/blocks/_textilizable.rhtml

@ -61,7 +61,7 @@ class MyProjectsOverview < ActiveRecord::Base
def new_custom_element
idx = custom_elements.any? ? custom_elements.sort.last.first.next : "a"
[idx, l(:label_custom_text), "h3. #{l(:info_custom_text)}"]
[idx, l(:label_custom_element), "h3. #{l(:info_custom_text)}"]
end
def elements

@ -1,2 +1,2 @@
<h2 class="page-layout-only"><%= block_title || l(:label_custom_text) %></h2>
<h2 class="page-layout-only"><%= block_title || l(:label_custom_element) %></h2>
<%= textilizable(textile, :object => @overview) %>

Loading…
Cancel
Save