Project

General

Profile

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

Aaron Johnson, 2010-05-27 23:55

1 2 Aaron Johnson
h1. HowTo add a logo to your Redmine banner
2 1 Aaron Johnson
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 3 Aaron Johnson
Note: This has been tested using the Squeejee Theme and the Classic Theme.
7
8 1 Aaron Johnson
*Edit your base.rhtml file*
9
10
Example:<pre>
11
nano /opt/redmine/app/views/layouts/base.rhtml</pre>
12
13
Find this line:<pre>
14
    <h1><%= page_header_title %></h1></pre>
15
16
And change it to:<pre>
17
     <!--<h1><%= page_header_title %></h1>--></pre>
18
19
Add this line directly below:<pre>
20
     <img src="/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/></pre>
21
22
Now it should look like this:<pre>
23
    </div>
24
25
     <!--<h1><%= page_header_title %></h1>-->
26
     <img src="/images/logo.png" style="top-margin: 15px; left-margin: 15px;"/>
27
28
    <% if display_main_menu?(@project) %></pre>
29
30
*Upload your logo*
31
32
Example using the scp command:<pre>
33
scp logo.png root@example.com:/opt/redmine/public/images</pre>
34
35
You probably should chown the uploaded logo:<pre>
36
chown redmine:redmine /opt/redmine/public/images/logo.png</pre>
37
38
*Restart your web server*
39
40
Examples:<pre>/etc/init.d/apache2 restart</pre><pre>/etc/init.d/httpd restart</pre><pre>/etc/init.d/nginx restart</pre>