Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Announcement: Add localisation for menu entry and use ck-editor

Henriette Dinger4efd6040ffc5
diff --git a/app/views/announcements/edit.html.erb b/app/views/announcements/edit.html.erb
index d9026f18323..82384f0c9b6 100644
--- a/app/views/announcements/edit.html.erb
+++ b/app/views/announcements/edit.html.erb
@@ -8,7 +8,12 @@
:url => {:action => :update},
:html => {:method => :put} do |f|%>
<div class="form--field">
- <%= f.text_area :text, :cols => 80, :rows => 5, label: t(:label_text), container_class: '-wide' %>
+ <%= f.text_area :text,
+ :cols => 80,
+ :rows => 5,
+ label: t(:label_text),
+ container_class: '-xxwide',
+ with_text_formatting: true %>
</div>
<div class="form--field">
<%= f.text_field :show_until, label: t('announcements.show_until'), container_class: '-xslim', class: '-augmented-datepicker' %>
diff --git a/config/initializers/menus.rb b/config/initializers/menus.rb
index b917a30bfe2..7681b9cbc16 100644
--- a/config/initializers/menus.rb
+++ b/config/initializers/menus.rb
@@ -239,7 +239,7 @@ Redmine::MenuManager.map :admin_menu do |menu|
menu.push :announcements,
{ controller: '/announcements', action: 'edit' },
- caption: 'Announcement',
+ caption: :label_announcement,
icon: 'icon2 icon-news'
menu.push :plugins,