Redmine-4.1.1在标题前加公司标志等LOGO图片

环境:

  • Ubuntu20.04.2LTS
  • Redmine-4.1.1

需要更改的文件

~/redmine-4.1.1/app/views/layouts /base.html.erb

改以下一行

 <h1><%= page_header_title %></h1>


如改为下面的内容:

<div style="float:left;">
  <img src="logo.png" height="32" width="64"> </img>
</div>
<div style="float:left">
  <h1 style="background-color:lightblue33;color:red33">
    <font style="color:green">o</font>
    <font style="color:blue">o</font>
    <font style="color:red">o</font>
    <%= page_header_title %>
    <font style="color:green">o</font>
    <font style="color:blue">o</font>
    <font style="color:red">o</font>
  </h1>
</div>


LOGO图片

大小可以任意,此处设置为32x64px。LOGO文件位于:

~/redmine-4.1.1/public/logo.png

各种主题时的效果

  • Purplemine2

  • 其它

另:Windows Bitnami-Redmine环境下的修改方法

要修改的'base.html.erb'文件位于Y:\Bitnami_redmine-2.6.0-0\apps\redmine\htdocs\app\views\layouts

WWW目录在 Y:\\Bitnami_redmine-2.6.0-0\\apps\\redmine\\htdocs\\public\ , logo文件可放在这儿。

修改方法相同: 如将

<h1><%= page\_header\_title %></h1>

修改为:

<img src="imglogo.png" height="32" width="64"> </img> </img><h1>sz::<%= page\_header\_title %></h1>

修改后效果:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章