HowTo add a logo to your Redmine banner¶
You can very easily add a logo to your Redmine banner by modifying your base.html.erb file.
Big thanks to Chris Miller for showing me how to accomplish this :)
Note: This has been tested using the Squeejee Theme and the Classic Theme.
Note2: if you used apache2 passenger module to install redmine,the location of redmine should be /usr/share/redmine instead of /opt/redmine
Edit your base.html.erb file¶
Example:
Find this line:
Add this line directly above:
<img src="<%= Redmine::Utils.relative_url_root %>/images/logoscts.png" style="margin-top: 15px; margin-left: 15px;"/>The ruby statement <%= Redmine::Utils.relative_url_root %> will produce the relative URI for your redmine installation.
Now it should look like this:
</div>
<img src="<%= Redmine::Utils.relative_url_root %>/images/logoscts.png" style="margin-top: 15px; margin-left: 15px;"/>
<h1><%= page_header_title %></h1>
<% if display_main_menu?(@project) %>
Upload your logo¶
Example using the scp command:
You probably should chown the uploaded logo:
Restart your web server¶
Examples: