I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Patching Redmine files manually

This is the advanced option, see the main Wiki page for the common option.

Manual patching means, that you will need to update these files manually after each Redmine/ChiliProject update.

Patching app/views/layouts/base.html.erb

This is the base layout file, which is used for all pages. The plugin patches this file to fix Meta description and keywords.

Preferably copy app/views/layouts/base.html.erb from the Redmine/ChiliProject root directory into the plugin’s root directory (overriding the file, which comes with the plugin).

In this file replace:

<meta name="description" content="<%= Redmine::Info.app_name %>" />
<meta name="keywords" content="issue,bug,tracker" />

With:

<meta name="description" content="<%= h meta_description %>" />
<meta name="keywords" content="<%= h meta_keywords %>" />

Patching app/views/messages/show.html.erb

This is the view file for forum topic pages (which is used to display a topic). The plugin adds the :view_messages_show_topic_bottom hook to this file.

Preferably copy app/views/messages/show.html.erb from the Redmine/ChiliProject root directory into the plugin’s root directory (overriding the file, which comes with the plugin).

In this file after:

<div class="wiki">
<%= textilizable(@topic, :content) %>
</div>

Add:

<%= call_hook(:view_messages_show_topic_bottom, :topic => @topic) %>

Patching app/views/news/show.html.erb

This is the view file for news pages (which is used to display a single news). The plugin adds the :view_news_show_left hook to this file.

Preferably copy app/views/news/show.html.erb from the Redmine/ChiliProject root directory into the plugin’s root directory (overriding the file, which comes with the plugin).

In this file after:

<div class="wiki">
<%= textilizable(@news, :description) %>
</div>

Add:

<%= call_hook(:view_news_show_left, :news => @news) %>

Patching app/views/wiki/_content.html.erb

This is the view file for Wiki pages (which is used to display a single Wiki page). The plugin adds the :view_wiki_show_left hook to this file.

Preferably copy app/views/wiki/_content.html.erb from the Redmine/ChiliProject root directory into the plugin’s root directory (overriding the file, which comes with the plugin).

Add:

<%= call_hook(:view_wiki_show_left, :page => content.page) %>

At the end of this file.

Terms of use | Privacy policy