Project

General

Profile

Howto add a logo to your Redmine banner » History » Version 1

Aaron Johnson, 2010-05-27 23:50

1 1 Aaron Johnson
h1. Howto add a logo to your Redmine banner
2
3
You can very easily add a logo to your Redmine banner by modifying your base.rhtml file.
4
Big thanks to "Chris Miller":/users/758 for showing me how to accomplish this :)
5
6
*Edit your base.rhtml file*
7
8
Example:<pre>
9
nano /opt/redmine/app/views/layouts/base.rhtml</pre>
10
11
Find this line:<pre>
12
    <h1><%= page_header_title %></h1></pre>
13
14
And change it to:<pre>
15
     <!--<h1><%= page_header_title %></h1>--></pre>
16
17
Add this line directly below:<pre>
18
     <img src="/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/></pre>
19
20
Now it should look like this:<pre>
21
    </div>
22
23
     <!--<h1><%= page_header_title %></h1>-->
24
     <img src="/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/>
25
26
    <% if display_main_menu?(@project) %></pre>
27
28
*Upload your logo*
29
30
Example using the scp command:<pre>
31
scp logo.png root@example.com:/opt/redmine/public/images</pre>
32
33
You probably should chown the uploaded logo:<pre>
34
chown redmine:redmine /opt/redmine/public/images/logo.png</pre>
35
36
*Restart your web server*
37
38
Examples:<pre>/etc/init.d/apache2 restart</pre><pre>/etc/init.d/httpd restart</pre><pre>/etc/init.d/nginx restart</pre>